	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_connection_async_test
_http_connection_async_test:            ## @http_connection_async_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -120(%rbp)
	movl	$0, -116(%rbp)
	movq	(%rdi), %rax
	movq	_exit_base@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%rdi), %rdi
	movq	_search_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-116(%rbp), %rsi
	callq	_regress_dnsserver
	movq	%rax, %rdi
	callq	_tt_assert
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	_evdns_base_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_tt_assert
	movl	-116(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_evutil_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evdns_base_nameserver_ip_add
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%r12), %rsi
	leaq	-120(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	_http@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rdi
	movl	-120(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rsi
	callq	_evhttp_connection_base_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_request_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BASIC_REQUEST_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.1:
	movq	(%r12), %rdi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_tt_assert
	movq	$0, (%rbx)
	movq	_http_request_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BASIC_REQUEST_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	%rbx, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.7(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.8(%rip), %rdi
	callq	_tt_abort_msg
LBB0_3:
	movq	(%r12), %rdi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_http_request_empty_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.9(%rip), %rsi
	leaq	L_.str.10(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.11(%rip), %rdi
	callq	_tt_abort_msg
LBB0_5:
	movq	(%r12), %rdi
	callq	_event_base_dispatch
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_evhttp_connection_free
LBB0_7:
	movq	_http@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_evhttp_free
LBB0_9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_evdns_base_free
LBB0_11:
	xorl	%eax, %eax
	callq	_regress_clean_dnsserver
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_exit_base,8,3                  ## @exit_base
	.comm	_search_table,4,2               ## @search_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1:%d"

	.comm	_test_ok,8,3                    ## @test_ok
	.comm	_http,8,3                       ## @http
L_.str.1:                               ## @.str.1
	.asciz	"127.0.0.1"

	.comm	_http_request_done,4,2          ## @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ## @BASIC_REQUEST_BODY
L_.str.2:                               ## @.str.2
	.asciz	"Host"

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

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

	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"FAILED\n"

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

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

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

	.comm	_http_request_empty_done,4,2    ## @http_request_empty_done
L_.str.9:                               ## @.str.9
	.asciz	"Empty"

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

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

	.no_dead_strip	_http_connection_async_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_connection_async_test
_http_connection_async_test:            ; @http_connection_async_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	xzr, [sp]
Lloh3:
	adrp	x8, _exit_base@GOTPAGE
Lloh4:
	ldr	x8, [x8, _exit_base@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh5:
	str	x9, [x8]
	ldr	x0, [x0]
Lloh6:
	adrp	x8, _search_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _search_table@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_regress_dnsserver
	bl	_tt_assert
	ldr	x0, [x19]
	mov	w1, #0
	bl	_evdns_base_new
	mov	x20, x0
	bl	_tt_assert
	ldr	w3, [sp]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_evutil_snprintf
	add	x1, sp, #8
	mov	x0, x20
	bl	_evdns_base_nameserver_ip_add
Lloh11:
	adrp	x24, _test_ok@GOTPAGE
Lloh12:
	ldr	x24, [x24, _test_ok@GOTPAGEOFF]
	str	xzr, [x24]
	ldr	x1, [x19]
	add	x0, sp, #4
	mov	w2, #0
	bl	_http_setup
Lloh13:
	adrp	x23, _http@GOTPAGE
Lloh14:
	ldr	x23, [x23, _http@GOTPAGEOFF]
	str	x0, [x23]
	ldr	x0, [x19]
	ldr	w3, [sp, #4]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_evhttp_connection_base_new
	mov	x21, x0
	bl	_tt_assert
Lloh17:
	adrp	x26, _http_request_done@GOTPAGE
Lloh18:
	ldr	x26, [x26, _http_request_done@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh19:
	adrp	x27, _BASIC_REQUEST_BODY@GOTPAGE
Lloh20:
	ldr	x27, [x27, _BASIC_REQUEST_BODY@GOTPAGEOFF]
	ldr	x1, [x27]
	bl	_evhttp_request_new
	mov	x22, x0
	bl	_evhttp_request_get_output_headers
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_evhttp_add_header
Lloh25:
	adrp	x25, _EVHTTP_REQ_GET@GOTPAGE
Lloh26:
	ldr	x25, [x25, _EVHTTP_REQ_GET@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh27:
	adrp	x3, l_.str.4@PAGE
Lloh28:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.1:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	ldr	x0, [x24]
	bl	_tt_assert
	str	xzr, [x24]
	ldr	w0, [x26]
	ldr	x1, [x27]
	bl	_evhttp_request_new
	mov	x22, x0
	bl	_evhttp_request_get_output_headers
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh31:
	adrp	x2, l_.str.3@PAGE
Lloh32:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_evhttp_add_header
	mov	x0, x22
	bl	_evhttp_request_get_output_headers
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh35:
	adrp	x2, l_.str.7@PAGE
Lloh36:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_evhttp_add_header
	ldr	w2, [x25]
Lloh37:
	adrp	x3, l_.str.4@PAGE
Lloh38:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh39:
	adrp	x0, l_.str.8@PAGE
Lloh40:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_tt_abort_msg
LBB0_3:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	str	xzr, [x24]
Lloh41:
	adrp	x8, _http_request_empty_done@GOTPAGE
Lloh42:
	ldr	x8, [x8, _http_request_empty_done@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_evhttp_request_new
	mov	x22, x0
	bl	_evhttp_request_get_output_headers
Lloh44:
	adrp	x1, l_.str.9@PAGE
Lloh45:
	add	x1, x1, l_.str.9@PAGEOFF
Lloh46:
	adrp	x2, l_.str.10@PAGE
Lloh47:
	add	x2, x2, l_.str.10@PAGEOFF
	bl	_evhttp_add_header
	ldr	w2, [x25]
Lloh48:
	adrp	x3, l_.str.4@PAGE
Lloh49:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh50:
	adrp	x0, l_.str.11@PAGE
Lloh51:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_tt_abort_msg
LBB0_5:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	cbz	x21, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_evhttp_connection_free
LBB0_7:
	ldr	x0, [x23]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_evhttp_free
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	bl	_evdns_base_free
LBB0_11:
	bl	_regress_clean_dnsserver
	ldr	x8, [sp, #72]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
Lloh55:
	adrp	x8, _stdout@GOTPAGE
Lloh56:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x1, l_.str.5@PAGE
Lloh59:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_exit_base,8,3                  ; @exit_base
	.comm	_search_table,4,2               ; @search_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1:%d"

	.comm	_test_ok,8,3                    ; @test_ok
	.comm	_http,8,3                       ; @http
l_.str.1:                               ; @.str.1
	.asciz	"127.0.0.1"

	.comm	_http_request_done,4,2          ; @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ; @BASIC_REQUEST_BODY
l_.str.2:                               ; @.str.2
	.asciz	"Host"

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

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

	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"FAILED\n"

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

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

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

	.comm	_http_request_empty_done,4,2    ; @http_request_empty_done
l_.str.9:                               ; @.str.9
	.asciz	"Empty"

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

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

	.no_dead_strip	_http_connection_async_test
.subsections_via_symbols
