	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STDOUT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_EXEC_MSG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_EXEC_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_write
	movq	_AF_INET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -184(%rbp)
	movl	$80, %edi
	callq	_HTONS
	movl	%eax, -188(%rbp)
	movq	8(%r15), %rdi
	callq	_inet_addr
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, -192(%rbp)
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_open
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	cmpl	$-1, %r14d
	je	LBB0_2
## %bb.1:
	cmpl	$-1, %r12d
	jne	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	___exit
LBB0_3:
	leaq	-192(%rbp), %rsi
	movl	%r12d, %edi
	movl	$12, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movl	$2, %edi
	callq	___exit
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	$4, %edx
	callq	_write
	movq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	$11, %edx
	callq	_write
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movl	$6, %edx
	callq	_write
	movq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movl	$23, %edx
	callq	_write
	xorl	%ebx, %ebx
	leaq	-176(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	shll	$8, %ebx
	movsbl	-176(%rbp), %eax
	orl	%eax, %ebx
	cmpl	$218762506, %ebx                ## imm = 0xD0A0D0A
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$4, %edi
	callq	___exit
	jmp	LBB0_8
LBB0_9:
	leaq	-176(%rbp), %rsi
	movl	%r12d, %edi
	movl	$128, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	leaq	-176(%rbp), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	$128, %edx
	callq	_read
	testl	%eax, %eax
	jg	LBB0_11
LBB0_12:
	movl	%r12d, %edi
	callq	_close
	movl	%r14d, %edi
	callq	_close
	movl	(%r13), %edi
	movq	_DOWNLOAD_MSG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_DOWNLOAD_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_write
	movl	$5, %edi
	callq	___exit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT,4,2                     ## @STDOUT
	.comm	_EXEC_MSG,8,3                   ## @EXEC_MSG
	.comm	_EXEC_MSG_LEN,4,2               ## @EXEC_MSG_LEN
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wget_bin"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"GET "

L_.str.2:                               ## @.str.2
	.asciz	" HTTP/1.1\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"Host: "

L_.str.4:                               ## @.str.4
	.asciz	"\r\nConnection: close\r\n\r\n"

	.comm	_DOWNLOAD_MSG,8,3               ## @DOWNLOAD_MSG
	.comm	_DOWNLOAD_MSG_LEN,4,2           ## @DOWNLOAD_MSG_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _STDOUT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STDOUT@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _EXEC_MSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXEC_MSG@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
Lloh8:
	adrp	x8, _EXEC_MSG_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXEC_MSG_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_write
Lloh11:
	adrp	x20, _AF_INET@GOTPAGE
Lloh12:
	ldr	x20, [x20, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp, #16]
	mov	w0, #80
	bl	_HTONS
	str	w0, [sp, #12]
	ldr	x0, [x21, #8]
	bl	_inet_addr
	str	w0, [sp, #8]
Lloh13:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #511
	bl	_open
	mov	x19, x0
	ldr	w0, [x20]
Lloh24:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	cmn	w19, #1
	ccmn	w0, #1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	___exit
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #12
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #2
	bl	___exit
LBB0_4:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_write
	ldr	x22, [x21, #16]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_write
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #11
	bl	_write
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #6
	bl	_write
	ldr	x21, [x21, #24]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_write
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #23
	bl	_write
	mov	w21, #0
	mov	w22, #3338
	movk	w22, #3338, lsl #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w8, [sp, #24]
	orr	w21, w8, w21, lsl #8
	cmp	w21, w22
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #4
	bl	___exit
	b	LBB0_5
LBB0_8:
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #128
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x2, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x19
	bl	_write
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #128
	bl	_read
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_10
LBB0_11:
	mov	x0, x20
	bl	_close
	mov	x0, x19
	bl	_close
	ldr	w0, [x23]
Lloh35:
	adrp	x8, _DOWNLOAD_MSG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DOWNLOAD_MSG@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
Lloh38:
	adrp	x8, _DOWNLOAD_MSG_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DOWNLOAD_MSG_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	bl	_write
	mov	w0, #5
	bl	___exit
	ldur	x8, [x29, #-56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT,4,2                     ; @STDOUT
	.comm	_EXEC_MSG,8,3                   ; @EXEC_MSG
	.comm	_EXEC_MSG_LEN,4,2               ; @EXEC_MSG_LEN
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wget_bin"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"GET "

l_.str.2:                               ; @.str.2
	.asciz	" HTTP/1.1\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"Host: "

l_.str.4:                               ; @.str.4
	.asciz	"\r\nConnection: close\r\n\r\n"

	.comm	_DOWNLOAD_MSG,8,3               ; @DOWNLOAD_MSG
	.comm	_DOWNLOAD_MSG_LEN,4,2           ; @DOWNLOAD_MSG_LEN
.subsections_via_symbols
