	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_request_done
_http_request_done:                     ## @http_request_done
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_evhttp_request_get_response_code
	movq	_HTTP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_headers
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	callq	_evbuffer_get_length
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_evbuffer_datacmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_exit_base@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_EVUTIL_ASSERT
	movl	(%rbx), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_OK,8,3                    ## @HTTP_OK
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAILED\n"

L_.str.1:                               ## @.str.1
	.asciz	"Content-Type"

	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_exit_base,4,2                  ## @exit_base
	.no_dead_strip	_http_request_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_request_done
_http_request_done:                     ; @http_request_done
	.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
	bl	_evhttp_request_get_response_code
Lloh0:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_evhttp_request_get_input_headers
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_evhttp_request_get_input_buffer
	bl	_evbuffer_get_length
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_evhttp_request_get_input_buffer
	mov	x1, x19
	bl	_evbuffer_datacmp
	cbnz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _test_ok@GOTPAGE
Lloh6:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
Lloh8:
	adrp	x19, _exit_base@GOTPAGE
Lloh9:
	ldr	x19, [x19, _exit_base@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_EVUTIL_ASSERT
	ldr	w0, [x19]
	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_5:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_OK,8,3                    ; @HTTP_OK
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAILED\n"

l_.str.1:                               ; @.str.1
	.asciz	"Content-Type"

	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_exit_base,4,2                  ; @exit_base
	.no_dead_strip	_http_request_done
.subsections_via_symbols
