	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_postrequest_done          ## -- Begin function http_postrequest_done
	.p2align	4, 0x90
_http_postrequest_done:                 ## @http_postrequest_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_BASIC_REQUEST_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	_evhttp_request_get_response_code
	movq	_HTTP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %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_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	callq	_evbuffer_get_length
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rax, %r12
	jne	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_evbuffer_datacmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	callq	_evbuffer_get_length
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strlen
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_BASIC_REQUEST_BODY,8,3         ## @BASIC_REQUEST_BODY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAILED (timeout)\n"

	.comm	_HTTP_OK,8,3                    ## @HTTP_OK
L_.str.1:                               ## @.str.1
	.asciz	"FAILED (response code)\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"FAILED (content type)\n"

L_.str.4:                               ## @.str.4
	.asciz	"FAILED (length %lu vs %lu)\n"

L_.str.5:                               ## @.str.5
	.asciz	"FAILED (data)\n"

	.comm	_test_ok,4,2                    ## @test_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_http_postrequest_done          ; -- Begin function http_postrequest_done
	.p2align	2
_http_postrequest_done:                 ; @http_postrequest_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BASIC_REQUEST_BODY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASIC_REQUEST_BODY@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_evhttp_request_get_response_code
Lloh3:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_evhttp_request_get_input_headers
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_evhttp_request_get_input_buffer
	bl	_evbuffer_get_length
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	cmp	x22, x0
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_evhttp_request_get_input_buffer
	mov	x1, x20
	bl	_evbuffer_datacmp
	cbnz	x0, LBB0_10
; %bb.5:
Lloh8:
	adrp	x8, _test_ok@GOTPAGE
Lloh9:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_event_base_loopexit
LBB0_6:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_evhttp_request_get_input_buffer
	bl	_evbuffer_get_length
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	stp	x21, x0, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BASIC_REQUEST_BODY,8,3         ; @BASIC_REQUEST_BODY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAILED (timeout)\n"

	.comm	_HTTP_OK,8,3                    ; @HTTP_OK
l_.str.1:                               ; @.str.1
	.asciz	"FAILED (response code)\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"FAILED (content type)\n"

l_.str.4:                               ; @.str.4
	.asciz	"FAILED (length %lu vs %lu)\n"

l_.str.5:                               ; @.str.5
	.asciz	"FAILED (data)\n"

	.comm	_test_ok,4,2                    ; @test_ok
.subsections_via_symbols
