	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%rdi), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	_http@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r15), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_request_empty_done@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_evhttp_request_new
	movq	%rax, %r12
	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), %r13
	leaq	L_.str.6(%rip), %rdx
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_evhttp_add_header
	movq	%r12, %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	%r12, %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	%r12, %rdi
	callq	_evhttp_request_get_output_headers
	movl	%eax, %edi
	movq	%r13, %rsi
	leaq	L_.str.6(%rip), %rdx
	callq	_evhttp_add_header
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r14, %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	(%r13), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %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	%r14, %rdi
	callq	_evhttp_connection_free_on_completion
	movl	(%r15), %edi
	callq	_event_base_dispatch
	movq	_http@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_TAILQ_FIRST
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_evhttp_free
LBB0_6:
	addq	$8, %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
	.comm	_http,8,3                       ## @http
	.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	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _test_ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	ldr	w1, [x0]
	add	x0, sp, #12
	mov	w2, #0
	bl	_http_setup
Lloh3:
	adrp	x8, _http@GOTPAGE
Lloh4:
	ldr	x8, [x8, _http@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	ldr	w0, [x19]
	ldr	w3, [sp, #12]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_evhttp_connection_base_new
	mov	x20, x0
	bl	_tt_assert
Lloh8:
	adrp	x21, _http_request_empty_done@GOTPAGE
Lloh9:
	ldr	x21, [x21, _http_request_empty_done@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_evhttp_request_new
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_evhttp_request_new
	mov	x21, x0
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
Lloh14:
	adrp	x25, l_.str.3@PAGE
Lloh15:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh16:
	adrp	x26, l_.str.4@PAGE
Lloh17:
	add	x26, x26, l_.str.4@PAGEOFF
	mov	x1, x25
	mov	x2, x26
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
Lloh18:
	adrp	x27, l_.str.5@PAGE
Lloh19:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh20:
	adrp	x28, l_.str.6@PAGE
Lloh21:
	add	x28, x28, l_.str.6@PAGEOFF
	mov	x1, x27
	mov	x2, x28
	bl	_evhttp_add_header
	mov	x0, x21
	bl	_evhttp_request_get_output_headers
	mov	x1, x23
	mov	x2, x24
	bl	_evhttp_add_header
	mov	x0, x21
	bl	_evhttp_request_get_output_headers
	mov	x1, x25
	mov	x2, x26
	bl	_evhttp_add_header
	mov	x0, x21
	bl	_evhttp_request_get_output_headers
	mov	x1, x27
	mov	x2, x28
	bl	_evhttp_add_header
Lloh22:
	adrp	x23, _EVHTTP_REQ_GET@GOTPAGE
Lloh23:
	ldr	x23, [x23, _EVHTTP_REQ_GET@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh24:
	adrp	x3, l_.str.7@PAGE
Lloh25:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w2, [x23]
Lloh28:
	adrp	x3, l_.str.7@PAGE
Lloh29:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_tt_abort_msg
LBB0_4:
	mov	x0, x20
	bl	_evhttp_connection_free_on_completion
	ldr	w0, [x19]
	bl	_event_base_dispatch
Lloh32:
	adrp	x19, _http@GOTPAGE
Lloh33:
	ldr	x19, [x19, _http@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_TAILQ_FIRST
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	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	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,8,3                    ; @test_ok
	.comm	_http,8,3                       ; @http
	.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
