	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_readcb
_http_readcb:                           ## @http_readcb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_BASIC_REQUEST_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_bufferevent_get_input
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_evbuffer_contains
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_evhttp_request_new
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_bufferevent_get_input
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_evhttp_parse_firstline_
	movq	_ALL_DATA_READ@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_bufferevent_get_input
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_evhttp_parse_headers_
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:
	cmpl	$1, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_evhttp_request_get_input_headers
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_test_ok@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	movq	%r15, %rdi
	callq	_evhttp_request_free
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bufferevent_disable
	movq	_exit_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	testq	%r14, %r14
	je	LBB0_10
LBB0_8:
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_BASIC_REQUEST_BODY,8,3         ## @BASIC_REQUEST_BODY
	.comm	_ALL_DATA_READ,4,2              ## @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Content-Type"

	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_exit_base,8,3                  ## @exit_base
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"No way to exit loop!\n"

	.no_dead_strip	_http_readcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_readcb
_http_readcb:                           ; @http_readcb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _BASIC_REQUEST_BODY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASIC_REQUEST_BODY@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_bufferevent_get_input
	mov	x1, x21
	bl	_evbuffer_contains
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, #0
	mov	x1, #0
	bl	_evhttp_request_new
	mov	x21, x0
	mov	x0, x20
	bl	_bufferevent_get_input
	mov	x1, x0
	mov	x0, x21
	bl	_evhttp_parse_firstline_
Lloh3:
	adrp	x22, _ALL_DATA_READ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ALL_DATA_READ@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_bufferevent_get_input
	mov	x1, x0
	mov	x0, x21
	bl	_evhttp_parse_headers_
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_evhttp_request_get_input_headers
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _test_ok@GOTPAGE
Lloh8:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	x0, x21
	bl	_evhttp_request_free
Lloh9:
	adrp	x8, _EV_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bufferevent_disable
Lloh12:
	adrp	x8, _exit_base@GOTPAGE
Lloh13:
	ldr	x8, [x8, _exit_base@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	cbz	x19, LBB0_10
LBB0_8:
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_event_base_loopexit
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BASIC_REQUEST_BODY,8,3         ; @BASIC_REQUEST_BODY
	.comm	_ALL_DATA_READ,4,2              ; @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Content-Type"

	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_exit_base,8,3                  ; @exit_base
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"No way to exit loop!\n"

	.no_dead_strip	_http_readcb
.subsections_via_symbols
