	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_lingering_close_test_impl
_http_lingering_close_test_impl:        ## @http_lingering_close_test_impl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	movl	(%rdi), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	%rax, %rbx
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	_EVHTTP_SERVER_LINGERING_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_evhttp_set_flags
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	movq	_http_large_entity_test_done@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_1:
	movq	_http_failed_request_done@GOTPCREL(%rip), %r13
LBB0_3:
	movl	$1572864, %esi                  ## imm = 0x180000
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_evhttp_set_max_body_size
	movl	(%r15), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_evhttp_connection_base_new
	movq	%rax, %r14
	movl	%r14d, %edi
	callq	_tt_assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_connection_set_local_address
	movl	$3145728, %edi                  ## imm = 0x300000
	callq	_malloc
	movq	%rax, %r12
	movl	$3145728, %edx                  ## imm = 0x300000
	movq	%rax, %rdi
	movl	$97, %esi
	callq	_memset
	movb	$0, 3145727(%r12)
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movl	%ebx, %edi
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	%rbx, %rdi
	callq	_evhttp_request_get_output_buffer
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_evbuffer_add_printf
	movq	_EVHTTP_REQ_POST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.5(%rip), %rdi
	callq	_tt_abort_msg
LBB0_5:
	movl	(%r15), %edi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_evhttp_connection_free
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_evhttp_free
LBB0_9:
	movq	%r12, %rdi
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_EVHTTP_SERVER_LINGERING_CLOSE,4,2 ## @EVHTTP_SERVER_LINGERING_CLOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_EVHTTP_REQ_POST,4,2            ## @EVHTTP_REQ_POST
L_.str.4:                               ## @.str.4
	.asciz	"/"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't make request"

	.no_dead_strip	_http_lingering_close_test_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_lingering_close_test_impl
_http_lingering_close_test_impl:        ; @http_lingering_close_test_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w1, [x0]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
	mov	x19, x0
Lloh0:
	adrp	x24, _test_ok@GOTPAGE
Lloh1:
	ldr	x24, [x24, _test_ok@GOTPAGEOFF]
	str	wzr, [x24]
	cbz	w21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EVHTTP_SERVER_LINGERING_CLOSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVHTTP_SERVER_LINGERING_CLOSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_evhttp_set_flags
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
Lloh5:
	adrp	x23, _http_large_entity_test_done@GOTPAGE
Lloh6:
	ldr	x23, [x23, _http_large_entity_test_done@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x23, _http_failed_request_done@GOTPAGE
Lloh8:
	ldr	x23, [x23, _http_failed_request_done@GOTPAGEOFF]
LBB0_3:
	mov	x0, x19
	mov	w1, #1572864
	bl	_evhttp_set_max_body_size
	ldr	w0, [x20]
	ldr	w3, [sp, #12]
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, x22
	bl	_evhttp_connection_base_new
	mov	x21, x0
	bl	_tt_assert
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_connection_set_local_address
	mov	w0, #3145728
	bl	_malloc
	mov	x22, x0
	mov	w1, #97
	mov	w2, #3145728
	bl	_memset
	mov	w8, #3145727
	strb	wzr, [x22, x8]
	ldr	w1, [x20]
	mov	x0, x23
	bl	_evhttp_request_new
	mov	x23, x0
	bl	_tt_assert
	mov	x0, x23
	bl	_evhttp_request_get_output_headers
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_evhttp_add_header
	mov	x0, x23
	bl	_evhttp_request_get_output_buffer
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_evbuffer_add_printf
Lloh17:
	adrp	x8, _EVHTTP_REQ_POST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVHTTP_REQ_POST@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x3, l_.str.4@PAGE
Lloh21:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_tt_abort_msg
LBB0_5:
	ldr	w0, [x20]
	bl	_event_base_dispatch
	mov	w8, #1
	str	w8, [x24]
	cbz	x21, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_evhttp_connection_free
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_evhttp_free
LBB0_9:
	mov	x0, x22
	bl	_free
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_EVHTTP_SERVER_LINGERING_CLOSE,4,2 ; @EVHTTP_SERVER_LINGERING_CLOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_EVHTTP_REQ_POST,4,2            ; @EVHTTP_REQ_POST
l_.str.4:                               ; @.str.4
	.asciz	"/"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't make request"

	.no_dead_strip	_http_lingering_close_test_impl
.subsections_via_symbols
