	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	callq	_usage
LBB0_2:
	movq	8(%r14), %rbx
	cmpb	$45, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	callq	_usage
LBB0_4:
	movsbl	1(%rbx), %eax
	cmpl	$98, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$113, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$114, %eax
	jne	LBB0_10
## %bb.7:
	movq	_HTTP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_11
LBB0_8:
	movq	_HTTP_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_11
LBB0_9:
	movq	_HTTP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_11
LBB0_10:
	movq	(%r14), %rdi
	callq	_usage
                                        ## implicit-def: $r13d
LBB0_11:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r15, %rdi
	callq	_ftell
	cmpq	$-1, %rax
	je	LBB0_19
## %bb.13:
	movq	%rax, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_fread
	cmpq	%rbx, %rax
	jne	LBB0_16
## %bb.14:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_on_message_begin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_on_url@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_on_header_field@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_on_header_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_on_headers_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_on_body@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_on_message_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_http_parser_init
	movq	%r14, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_http_parser_execute
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_free
	cmpq	%rbx, %r14
	jne	LBB0_17
## %bb.15:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_21
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_HTTP_PARSER_ERRNO
	movl	%eax, %edi
	callq	_http_errno_description
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_HTTP_PARSER_ERRNO
	movl	%eax, %edi
	callq	_http_errno_name
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_21
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
LBB0_20:
	callq	_perror
LBB0_21:
	movq	%r15, %rdi
	callq	_fclose
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_RESPONSE,4,2              ## @HTTP_RESPONSE
	.comm	_HTTP_REQUEST,4,2               ## @HTTP_REQUEST
	.comm	_HTTP_BOTH,4,2                  ## @HTTP_BOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fopen"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.2:                               ## @.str.2
	.asciz	"ftell"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"couldn't read entire file\n"

	.comm	_on_message_begin,4,2           ## @on_message_begin
	.comm	_on_url,4,2                     ## @on_url
	.comm	_on_header_field,4,2            ## @on_header_field
	.comm	_on_header_value,4,2            ## @on_header_value
	.comm	_on_headers_complete,4,2        ## @on_headers_complete
	.comm	_on_body,4,2                    ## @on_body
	.comm	_on_message_complete,4,2        ## @on_message_complete
L_.str.4:                               ## @.str.4
	.asciz	"Error: %s (%s)\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
.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, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_usage
LBB0_2:
	ldr	x20, [x19, #8]
	ldrb	w8, [x20]
	cmp	w8, #45
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_usage
LBB0_4:
	ldrsb	w8, [x20, #1]
	cmp	w8, #98
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #113
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #114
	b.ne	LBB0_10
; %bb.7:
Lloh0:
	adrp	x8, _HTTP_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _HTTP_BOTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTTP_BOTH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _HTTP_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTTP_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19]
	bl	_usage
                                        ; implicit-def: $w20
LBB0_11:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.12:
Lloh11:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	mov	x0, x19
	bl	_ftell
	cmn	x0, #1
	b.eq	LBB0_19
; %bb.13:
	mov	x21, x0
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	bl	_fread
	cmp	x0, x21
	b.ne	LBB0_16
; %bb.14:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh17:
	adrp	x8, _on_message_begin@GOTPAGE
Lloh18:
	ldr	x8, [x8, _on_message_begin@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh20:
	adrp	x8, _on_url@GOTPAGE
Lloh21:
	ldr	x8, [x8, _on_url@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _on_header_field@GOTPAGE
Lloh24:
	ldr	x9, [x9, _on_header_field@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
Lloh26:
	adrp	x8, _on_header_value@GOTPAGE
Lloh27:
	ldr	x8, [x8, _on_header_value@GOTPAGEOFF]
Lloh28:
	adrp	x9, _on_headers_complete@GOTPAGE
Lloh29:
	ldr	x9, [x9, _on_headers_complete@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh32:
	adrp	x8, _on_body@GOTPAGE
Lloh33:
	ldr	x8, [x8, _on_body@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _on_message_complete@GOTPAGE
Lloh36:
	ldr	x9, [x9, _on_message_complete@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
	add	x0, sp, #28
	mov	x1, x20
	bl	_http_parser_init
	add	x0, sp, #28
	add	x1, sp, #32
	mov	x2, x22
	mov	x3, x21
	bl	_http_parser_execute
	mov	x20, x0
	mov	x0, x22
	bl	_free
	cmp	x20, x21
	b.ne	LBB0_17
; %bb.15:
Lloh38:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	bl	_free
	b	LBB0_21
LBB0_17:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w20, [x8]
	add	x0, sp, #28
	bl	_HTTP_PARSER_ERRNO
	bl	_http_errno_description
	mov	x21, x0
	add	x0, sp, #28
	bl	_HTTP_PARSER_ERRNO
	bl	_http_errno_name
	stp	x21, x0, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	b	LBB0_21
LBB0_18:
Lloh50:
	adrp	x0, l_.str.1@PAGE
Lloh51:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:
	bl	_perror
LBB0_21:
	mov	x0, x19
	bl	_fclose
Lloh54:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_RESPONSE,4,2              ; @HTTP_RESPONSE
	.comm	_HTTP_REQUEST,4,2               ; @HTTP_REQUEST
	.comm	_HTTP_BOTH,4,2                  ; @HTTP_BOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fopen"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.2:                               ; @.str.2
	.asciz	"ftell"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"couldn't read entire file\n"

	.comm	_on_message_begin,4,2           ; @on_message_begin
	.comm	_on_url,4,2                     ; @on_url
	.comm	_on_header_field,4,2            ; @on_header_field
	.comm	_on_header_value,4,2            ; @on_header_value
	.comm	_on_headers_complete,4,2        ; @on_headers_complete
	.comm	_on_body,4,2                    ; @on_body
	.comm	_on_message_complete,4,2        ; @on_message_complete
l_.str.4:                               ; @.str.4
	.asciz	"Error: %s (%s)\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
.subsections_via_symbols
