Last active
June 28, 2024 02:36
-
-
Save LiamGallagher737/e6ff77b0cec089215e094064a7b15975 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.file "main.aaccb3f0a8cfdec6-cgu.0" | |
.section ".text._ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E","ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E,@function | |
_ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E: | |
movq %rsi, %rax | |
retq | |
.Lfunc_end0: | |
.size _ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E, .Lfunc_end0-_ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E | |
.section .text._ZN4main8syscalls5write17h6d89d465c6ef6b6bE,"ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4main8syscalls5write17h6d89d465c6ef6b6bE,@function | |
_ZN4main8syscalls5write17h6d89d465c6ef6b6bE: | |
subq $24, %rsp | |
movq %rdi, 8(%rsp) | |
movq 8(%rsp), %rdi | |
movl $1, %eax | |
#APP | |
syscall | |
#NO_APP | |
movq %rax, 16(%rsp) | |
movq 16(%rsp), %rax | |
addq $24, %rsp | |
retq | |
.Lfunc_end1: | |
.size _ZN4main8syscalls5write17h6d89d465c6ef6b6bE, .Lfunc_end1-_ZN4main8syscalls5write17h6d89d465c6ef6b6bE | |
.section .text._ZN4main8syscalls4exit17hab37beeb3ef0c691E,"ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4main8syscalls4exit17hab37beeb3ef0c691E,@function | |
_ZN4main8syscalls4exit17hab37beeb3ef0c691E: | |
pushq %rax | |
movl $60, %eax | |
#APP | |
syscall | |
#NO_APP | |
movq %rax, (%rsp) | |
movq (%rsp), %rax | |
popq %rcx | |
retq | |
.Lfunc_end2: | |
.size _ZN4main8syscalls4exit17hab37beeb3ef0c691E, .Lfunc_end2-_ZN4main8syscalls4exit17hab37beeb3ef0c691E | |
.section .text._start,"ax",@progbits | |
.globl _start | |
.p2align 4, 0x90 | |
.type _start,@function | |
_start: | |
subq $24, %rsp | |
#APP | |
movq %rsp, %r8 | |
#NO_APP | |
#APP | |
movq %r8, %rax | |
#NO_APP | |
movq %rax, 16(%rsp) | |
movq 16(%rsp), %rax | |
movq %rax, %rcx | |
addq $24, %rcx | |
movq %rcx, 8(%rsp) | |
cmpq $2, 24(%rax) | |
jb .LBB3_2 | |
.LBB3_1: | |
movq 8(%rsp), %rax | |
movq 16(%rax), %rdi | |
callq _ZN4main4main17h41a55d5959f76482E | |
movq %rax, %rdi | |
callq _ZN4main8syscalls4exit17hab37beeb3ef0c691E | |
addq $24, %rsp | |
retq | |
.LBB3_2: | |
leaq .L__unnamed_1(%rip), %rdi | |
movl $44, %esi | |
callq _ZN4main7println17h8fb7c9cc49d30e19E | |
movl $1, %edi | |
callq _ZN4main8syscalls4exit17hab37beeb3ef0c691E | |
jmp .LBB3_1 | |
.Lfunc_end3: | |
.size _start, .Lfunc_end3-_start | |
.section .text._ZN4main4main17h41a55d5959f76482E,"ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4main4main17h41a55d5959f76482E,@function | |
_ZN4main4main17h41a55d5959f76482E: | |
subq $40, %rsp | |
movq %rdi, 8(%rsp) | |
movb (%rdi), %al | |
movb %al, 23(%rsp) | |
movq $0, 24(%rsp) | |
.LBB4_1: | |
cmpb $0, 23(%rsp) | |
jne .LBB4_3 | |
leaq .L__unnamed_2(%rip), %rdi | |
xorl %eax, %eax | |
movl %eax, %esi | |
callq _ZN4main7println17h8fb7c9cc49d30e19E | |
xorl %eax, %eax | |
addq $40, %rsp | |
retq | |
.LBB4_3: | |
movq $1, 32(%rsp) | |
movq 32(%rsp), %rdi | |
leaq 23(%rsp), %rsi | |
movl $1, %edx | |
callq _ZN4main8syscalls5write17h6d89d465c6ef6b6bE | |
movq 8(%rsp), %rax | |
movq 24(%rsp), %rcx | |
addq $1, %rcx | |
movq %rcx, 24(%rsp) | |
movq 24(%rsp), %rcx | |
movb (%rax,%rcx), %al | |
movb %al, 23(%rsp) | |
jmp .LBB4_1 | |
.Lfunc_end4: | |
.size _ZN4main4main17h41a55d5959f76482E, .Lfunc_end4-_ZN4main4main17h41a55d5959f76482E | |
.section .text._ZN4main5print17h82a0e423eb1ed4b9E,"ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4main5print17h82a0e423eb1ed4b9E,@function | |
_ZN4main5print17h82a0e423eb1ed4b9E: | |
subq $24, %rsp | |
movq %rdi, 8(%rsp) | |
movq $1, 16(%rsp) | |
callq _ZN4core3str21_$LT$impl$u20$str$GT$3len17h24816ebde8d1c373E | |
movq 8(%rsp), %rsi | |
movq %rax, %rdx | |
movq 16(%rsp), %rdi | |
callq _ZN4main8syscalls5write17h6d89d465c6ef6b6bE | |
addq $24, %rsp | |
retq | |
.Lfunc_end5: | |
.size _ZN4main5print17h82a0e423eb1ed4b9E, .Lfunc_end5-_ZN4main5print17h82a0e423eb1ed4b9E | |
.section .text._ZN4main7println17h8fb7c9cc49d30e19E,"ax",@progbits | |
.p2align 4, 0x90 | |
.type _ZN4main7println17h8fb7c9cc49d30e19E,@function | |
_ZN4main7println17h8fb7c9cc49d30e19E: | |
pushq %rax | |
callq _ZN4main5print17h82a0e423eb1ed4b9E | |
movq $1, (%rsp) | |
movq (%rsp), %rdi | |
leaq .L__unnamed_3(%rip), %rsi | |
movl $1, %edx | |
callq _ZN4main8syscalls5write17h6d89d465c6ef6b6bE | |
popq %rcx | |
retq | |
.Lfunc_end6: | |
.size _ZN4main7println17h8fb7c9cc49d30e19E, .Lfunc_end6-_ZN4main7println17h8fb7c9cc49d30e19E | |
.section .text.rust_begin_unwind,"ax",@progbits | |
.hidden rust_begin_unwind | |
.globl rust_begin_unwind | |
.p2align 4, 0x90 | |
.type rust_begin_unwind,@function | |
rust_begin_unwind: | |
pushq %rax | |
movq $1, (%rsp) | |
movq (%rsp), %rdi | |
leaq .L__unnamed_4(%rip), %rsi | |
movl $6, %edx | |
callq _ZN4main8syscalls5write17h6d89d465c6ef6b6bE | |
movl $1, %edi | |
callq _ZN4main8syscalls4exit17hab37beeb3ef0c691E | |
.LBB7_1: | |
jmp .LBB7_1 | |
.Lfunc_end7: | |
.size rust_begin_unwind, .Lfunc_end7-rust_begin_unwind | |
.type .L__unnamed_1,@object | |
.section .rodata..L__unnamed_1,"a",@progbits | |
.L__unnamed_1: | |
.ascii "ERROR: Must have a url argument - curl [url]" | |
.size .L__unnamed_1, 44 | |
.type .L__unnamed_2,@object | |
.section .rodata..L__unnamed_2,"a",@progbits | |
.L__unnamed_2: | |
.size .L__unnamed_2, 0 | |
.type .L__unnamed_3,@object | |
.section .rodata..L__unnamed_3,"a",@progbits | |
.L__unnamed_3: | |
.byte 10 | |
.size .L__unnamed_3, 1 | |
.type .L__unnamed_4,@object | |
.section .rodata..L__unnamed_4,"a",@progbits | |
.L__unnamed_4: | |
.ascii "ERROR\n" | |
.size .L__unnamed_4, 6 | |
.ident "rustc version 1.74.0 (79e9716c9 2023-11-13)" | |
.section ".note.GNU-stack","",@progbits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment