	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_chunked_errorcb
_http_chunked_errorcb:                  ## @http_chunked_errorcb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	_test_ok@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_22
## %bb.1:
	movl	$-1, (%r13)
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_22
## %bb.2:
	movq	%rdi, %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_evhttp_request_new
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_evhttp_parse_firstline_
	movq	_ALL_DATA_READ@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_20
## %bb.3:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_evhttp_parse_headers_
	cmpl	(%rbx), %eax
	jne	LBB0_20
## %bb.4:
	movq	%r14, %rdi
	callq	_evhttp_request_get_input_headers
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_20:
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_evhttp_request_free
LBB0_22:
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_evhttp_request_get_input_headers
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_free
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_20
## %bb.10:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$13, %esi
	callq	_evbuffer_pullup
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	movl	$13, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.11:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$15, %esi
	callq	_evbuffer_drain
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.13:
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$18, %esi
	callq	_evbuffer_pullup
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	movl	$18, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$20, %esi
	callq	_evbuffer_drain
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, %rbx
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_free
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_20
## %bb.16:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$8, %esi
	callq	_evbuffer_pullup
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movl	$10, %esi
	callq	_evbuffer_drain
	movq	%r15, %rdi
	callq	_bufferevent_get_input
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	%rax, %r15
	leaq	L_.str.10(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	testq	%rbx, %rbx
	jne	LBB0_20
## %bb.19:
	movl	$2, (%r13)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_BEV_EVENT_EOF,2,1              ## @BEV_EVENT_EOF
	.comm	_ALL_DATA_READ,4,2              ## @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transfer-Encoding"

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

L_.str.2:                               ## @.str.2
	.asciz	"Connection"

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

	.comm	_EVBUFFER_EOL_CRLF,4,2          ## @EVBUFFER_EOL_CRLF
L_.str.4:                               ## @.str.4
	.asciz	"d"

L_.str.5:                               ## @.str.5
	.asciz	"This is funny"

L_.str.6:                               ## @.str.6
	.asciz	"12"

L_.str.7:                               ## @.str.7
	.asciz	"but not hilarious."

L_.str.8:                               ## @.str.8
	.asciz	"8"

L_.str.9:                               ## @.str.9
	.asciz	"bwv 1052."

L_.str.10:                              ## @.str.10
	.asciz	"0"

	.no_dead_strip	_http_chunked_errorcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_chunked_errorcb
_http_chunked_errorcb:                  ; @http_chunked_errorcb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
Lloh0:
	adrp	x24, _test_ok@GOTPAGE
Lloh1:
	ldr	x24, [x24, _test_ok@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_8
; %bb.1:
	and	w8, w1, #0xffff
	mov	w9, #-1
	str	w9, [x24]
Lloh2:
	adrp	x9, _BEV_EVENT_EOF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BEV_EVENT_EOF@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	mov	x21, x0
	mov	x0, #0
	mov	x1, #0
	bl	_evhttp_request_new
	mov	x20, x0
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	x1, x0
	mov	x0, x20
	bl	_evhttp_parse_firstline_
Lloh4:
	adrp	x22, _ALL_DATA_READ@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ALL_DATA_READ@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	x1, x0
	mov	x0, x20
	bl	_evhttp_parse_headers_
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_evhttp_request_get_input_headers
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_9
LBB0_6:
	cbz	x20, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_evhttp_request_free
LBB0_8:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_event_base_loopexit
LBB0_9:
	mov	x0, x20
	bl	_evhttp_request_get_input_headers
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_6
; %bb.10:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.11:
	mov	x0, x21
	bl	_bufferevent_get_input
Lloh14:
	adrp	x25, _EVBUFFER_EOL_CRLF@GOTPAGE
Lloh15:
	ldr	x25, [x25, _EVBUFFER_EOL_CRLF@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_6
; %bb.12:
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	mov	x23, x0
	mov	x0, x22
	bl	_free
	cbnz	x23, LBB0_6
; %bb.13:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #13
	bl	_evbuffer_pullup
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #13
	bl	_strncmp
	cbnz	x0, LBB0_6
; %bb.14:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #15
	bl	_evbuffer_drain
	mov	x0, x21
	bl	_bufferevent_get_input
	ldr	w2, [x25]
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_6
; %bb.15:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.16:
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #18
	bl	_evbuffer_pullup
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #18
	bl	_strncmp
	cbnz	x0, LBB0_6
; %bb.17:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #20
	bl	_evbuffer_drain
	mov	x0, x21
	bl	_bufferevent_get_input
	ldr	w2, [x25]
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_6
; %bb.18:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	mov	x23, x0
	mov	x0, x22
	bl	_free
	cbnz	x23, LBB0_6
; %bb.19:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #8
	bl	_evbuffer_pullup
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_6
; %bb.20:
	mov	x0, x21
	bl	_bufferevent_get_input
	mov	w1, #10
	bl	_evbuffer_drain
	mov	x0, x21
	bl	_bufferevent_get_input
	ldr	w2, [x25]
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_6
; %bb.21:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	mov	x22, x0
	mov	x0, x21
	bl	_free
	cbnz	x22, LBB0_6
; %bb.22:
	mov	w8, #2
	str	w8, [x24]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_BEV_EVENT_EOF,2,1              ; @BEV_EVENT_EOF
	.comm	_ALL_DATA_READ,4,2              ; @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transfer-Encoding"

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

l_.str.2:                               ; @.str.2
	.asciz	"Connection"

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

	.comm	_EVBUFFER_EOL_CRLF,4,2          ; @EVBUFFER_EOL_CRLF
l_.str.4:                               ; @.str.4
	.asciz	"d"

l_.str.5:                               ; @.str.5
	.asciz	"This is funny"

l_.str.6:                               ; @.str.6
	.asciz	"12"

l_.str.7:                               ; @.str.7
	.asciz	"but not hilarious."

l_.str.8:                               ; @.str.8
	.asciz	"8"

l_.str.9:                               ; @.str.9
	.asciz	"bwv 1052."

l_.str.10:                              ; @.str.10
	.asciz	"0"

	.no_dead_strip	_http_chunked_errorcb
.subsections_via_symbols
