	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_autofree_connection_test
_http_autofree_connection_test:         ## @http_autofree_connection_test
	.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
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movl	(%rdi), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r12), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_request_empty_done@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%r12), %esi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movl	(%r14), %edi
	movl	(%r12), %esi
	callq	_evhttp_request_new
	movq	%rax, %r13
	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_headers
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	%rbx, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.5(%rip), %r14
	leaq	L_.str.6(%rip), %rdx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_evhttp_add_header
	movq	%r13, %rdi
	callq	_evhttp_request_get_output_headers
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_evhttp_add_header
	movq	%r13, %rdi
	callq	_evhttp_request_get_output_headers
	movl	%eax, %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_evhttp_add_header
	movq	%r13, %rdi
	callq	_evhttp_request_get_output_headers
	movl	%eax, %edi
	movq	%r14, %rsi
	leaq	L_.str.6(%rip), %rdx
	callq	_evhttp_add_header
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.8(%rip), %rdi
	callq	_tt_abort_msg
LBB0_2:
	movl	(%r14), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.8(%rip), %rdi
	callq	_tt_abort_msg
LBB0_4:
	movq	%r15, %rdi
	callq	_evhttp_connection_free_on_completion
	movl	(%r12), %edi
	callq	_event_base_dispatch
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_evhttp_free
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,8,3                    ## @test_ok
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_http_request_empty_done,4,2    ## @http_request_empty_done
L_.str.1:                               ## @.str.1
	.asciz	"Host"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Empty"

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

	.comm	_EVHTTP_REQ_GET,4,2             ## @EVHTTP_REQ_GET
L_.str.7:                               ## @.str.7
	.asciz	"/test"

L_.str.8:                               ## @.str.8
	.asciz	"couldn't make request"

	.no_dead_strip	_http_autofree_connection_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_autofree_connection_test
_http_autofree_connection_test:         ; @http_autofree_connection_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w1, [x0]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
	str	x0, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _test_ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	ldr	w0, [x20]
	ldr	w3, [sp, #12]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_evhttp_connection_base_new
	mov	x21, x0
	bl	_tt_assert
Lloh5:
	adrp	x19, _http_request_empty_done@GOTPAGE
Lloh6:
	ldr	x19, [x19, _http_request_empty_done@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_evhttp_request_new
	mov	x23, x0
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_evhttp_request_new
	mov	x22, x0
	mov	x0, x23
	bl	_evhttp_request_get_output_headers
Lloh7:
	adrp	x24, l_.str.1@PAGE
Lloh8:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh9:
	adrp	x25, l_.str.2@PAGE
Lloh10:
	add	x25, x25, l_.str.2@PAGEOFF
	mov	x1, x24
	mov	x2, x25
	bl	_evhttp_add_header
	mov	x0, x23
	bl	_evhttp_request_get_output_headers
Lloh11:
	adrp	x26, l_.str.3@PAGE
Lloh12:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh13:
	adrp	x27, l_.str.4@PAGE
Lloh14:
	add	x27, x27, l_.str.4@PAGEOFF
	mov	x1, x26
	mov	x2, x27
	bl	_evhttp_add_header
	mov	x0, x23
	bl	_evhttp_request_get_output_headers
Lloh15:
	adrp	x28, l_.str.5@PAGE
Lloh16:
	add	x28, x28, l_.str.5@PAGEOFF
Lloh17:
	adrp	x19, l_.str.6@PAGE
Lloh18:
	add	x19, x19, l_.str.6@PAGEOFF
	mov	x1, x28
	mov	x2, x19
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
	mov	x1, x24
	mov	x2, x25
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
	mov	x1, x26
	mov	x2, x27
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
	mov	x1, x28
	mov	x2, x19
	bl	_evhttp_add_header
Lloh19:
	adrp	x19, _EVHTTP_REQ_GET@GOTPAGE
Lloh20:
	ldr	x19, [x19, _EVHTTP_REQ_GET@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh21:
	adrp	x3, l_.str.7@PAGE
Lloh22:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh23:
	adrp	x0, l_.str.8@PAGE
Lloh24:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w2, [x19]
Lloh25:
	adrp	x3, l_.str.7@PAGE
Lloh26:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh27:
	adrp	x0, l_.str.8@PAGE
Lloh28:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_tt_abort_msg
LBB0_4:
	mov	x0, x21
	bl	_evhttp_connection_free_on_completion
	ldr	w0, [x20]
	bl	_event_base_dispatch
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	bl	_TAILQ_FIRST
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_evhttp_free
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,8,3                    ; @test_ok
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_http_request_empty_done,4,2    ; @http_request_empty_done
l_.str.1:                               ; @.str.1
	.asciz	"Host"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Empty"

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

	.comm	_EVHTTP_REQ_GET,4,2             ; @EVHTTP_REQ_GET
l_.str.7:                               ; @.str.7
	.asciz	"/test"

l_.str.8:                               ; @.str.8
	.asciz	"couldn't make request"

	.no_dead_strip	_http_autofree_connection_test
.subsections_via_symbols
