	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_connection_test_
_http_connection_test_:                 ## @http_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
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	16(%rbp), %r12d
	movl	$0, -44(%rbp)
	movl	%r8d, %eax
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_HTTP_BIND_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%r12d, %edx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_HTTP_BIND_SSL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	%eax, %edx
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rdi
	callq	_http_setup
	movq	%rax, %rcx
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	movq	%rbx, %r14
	movq	%rcx, %rbx
	callq	_tt_skip
	movq	%rbx, %rcx
	movq	%r14, %rbx
LBB0_7:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edi
	callq	_tt_assert
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_tt_skip
	jmp	LBB0_10
LBB0_9:
	movq	(%r15), %rdi
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_evhttp_connection_base_new
	movq	%rax, %r14
LBB0_10:
	movl	%r14d, %edi
	callq	_tt_assert
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_evhttp_connection_set_family
	movq	%r14, %rdi
	callq	_evhttp_connection_get_base
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_tt_assert
	movq	(%r15), %rax
	movq	_exit_base@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_evhttp_connection_get_server
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	movq	_http_request_done@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_BASIC_REQUEST_BODY@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.11:
	movq	(%r15), %rdi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_tt_assert
	movl	$0, (%rbx)
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
LBB0_13:
	movq	_EVHTTP_REQ_GET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
	callq	_tt_abort_msg
LBB0_15:
	movq	(%r15), %rdi
	callq	_event_base_dispatch
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_http_request_empty_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_evhttp_request_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_evhttp_request_get_output_headers
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	movl	%eax, %edi
	callq	_evhttp_add_header
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.9(%rip), %rdi
	callq	_tt_abort_msg
LBB0_17:
	movq	(%r15), %rdi
	callq	_event_base_dispatch
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_evhttp_connection_free
LBB0_19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_evhttp_free
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_BIND_IPV6,4,2             ## @HTTP_BIND_IPV6
	.comm	_HTTP_BIND_SSL,4,2              ## @HTTP_BIND_SSL
	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_exit_base,8,3                  ## @exit_base
	.comm	_http_request_done,4,2          ## @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ## @BASIC_REQUEST_BODY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Host"

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

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

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

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

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

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

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

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

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

	.comm	_BEV_OPT_DEFER_CALLBACKS,4,2    ## @BEV_OPT_DEFER_CALLBACKS
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ## @BUFFEREVENT_SSL_CONNECTING
	.no_dead_strip	_http_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_connection_test_
_http_connection_test_:                 ; @http_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	x25, x6
	mov	x23, x5
	mov	x26, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _HTTP_BIND_IPV6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_BIND_IPV6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HTTP_BIND_SSL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HTTP_BIND_SSL@GOTPAGEOFF]
	cmp	w4, #0
	csel	w8, w8, wzr, ne
Lloh5:
	ldr	w9, [x9]
	cmp	w6, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
	ldr	x1, [x0]
	add	x0, sp, #12
	bl	_http_setup
	mov	x20, x0
Lloh6:
	adrp	x27, _test_ok@GOTPAGE
Lloh7:
	ldr	x27, [x27, _test_ok@GOTPAGEOFF]
	str	wzr, [x27]
	cbz	w26, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
; %bb.2:
	bl	_tt_skip
LBB0_3:
	mov	x0, x20
	bl	_tt_assert
	cbz	w25, LBB0_5
; %bb.4:
	bl	_tt_skip
	mov	x21, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	x1, x24
	mov	x2, x21
	bl	_evhttp_connection_base_new
	mov	x21, x0
LBB0_6:
	mov	x0, x21
	bl	_tt_assert
	mov	x0, x21
	mov	x1, x23
	bl	_evhttp_connection_set_family
	mov	x0, x21
	bl	_evhttp_connection_get_base
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, eq
	bl	_tt_assert
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _exit_base@GOTPAGE
Lloh9:
	ldr	x9, [x9, _exit_base@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
	mov	x0, x21
	bl	_evhttp_connection_get_server
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
Lloh11:
	adrp	x25, _http_request_done@GOTPAGE
Lloh12:
	ldr	x25, [x25, _http_request_done@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh13:
	adrp	x26, _BASIC_REQUEST_BODY@GOTPAGE
Lloh14:
	ldr	x26, [x26, _BASIC_REQUEST_BODY@GOTPAGEOFF]
	ldr	x1, [x26]
	bl	_evhttp_request_new
	mov	x23, x0
	bl	_evhttp_request_get_output_headers
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_evhttp_add_header
Lloh19:
	adrp	x24, _EVHTTP_REQ_GET@GOTPAGE
Lloh20:
	ldr	x24, [x24, _EVHTTP_REQ_GET@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_evhttp_make_request
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.7:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	ldr	w0, [x27]
	bl	_tt_assert
	str	wzr, [x27]
	ldr	w0, [x25]
	ldr	x1, [x26]
	bl	_evhttp_request_new
	mov	x23, x0
	bl	_evhttp_request_get_output_headers
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_evhttp_add_header
	cbnz	w22, LBB0_9
; %bb.8:
	mov	x0, x23
	bl	_evhttp_request_get_output_headers
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_evhttp_add_header
LBB0_9:
	ldr	w2, [x24]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_tt_abort_msg
LBB0_11:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	str	wzr, [x27]
Lloh35:
	adrp	x8, _http_request_empty_done@GOTPAGE
Lloh36:
	ldr	x8, [x8, _http_request_empty_done@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_evhttp_request_new
	mov	x22, x0
	bl	_evhttp_request_get_output_headers
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh40:
	adrp	x2, l_.str.8@PAGE
Lloh41:
	add	x2, x2, l_.str.8@PAGEOFF
	bl	_evhttp_add_header
	ldr	w2, [x24]
Lloh42:
	adrp	x3, l_.str.2@PAGE
Lloh43:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh44:
	adrp	x0, l_.str.9@PAGE
Lloh45:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_tt_abort_msg
LBB0_13:
	ldr	x0, [x19]
	bl	_event_base_dispatch
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_evhttp_connection_free
LBB0_15:
	cbz	x20, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_evhttp_free
LBB0_17:
	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
LBB0_18:
Lloh46:
	adrp	x8, _stdout@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_BIND_IPV6,4,2             ; @HTTP_BIND_IPV6
	.comm	_HTTP_BIND_SSL,4,2              ; @HTTP_BIND_SSL
	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_exit_base,8,3                  ; @exit_base
	.comm	_http_request_done,4,2          ; @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ; @BASIC_REQUEST_BODY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Host"

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

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

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

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

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

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

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

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

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

	.comm	_BEV_OPT_DEFER_CALLBACKS,4,2    ; @BEV_OPT_DEFER_CALLBACKS
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ; @BUFFEREVENT_SSL_CONNECTING
	.no_dead_strip	_http_connection_test_
.subsections_via_symbols
