	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_get_addr_test
_http_get_addr_test:                    ## @http_get_addr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -28(%rbp)
	movl	(%rdi), %esi
	leaq	-28(%rbp), %rdi
	xorl	%edx, %edx
	callq	_http_setup
	movq	%rax, %r14
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r15), %eax
	movq	_exit_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %edi
	movl	-28(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_evhttp_connection_base_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tt_assert
	movq	_http_request_get_addr_on_close@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_evhttp_connection_set_closecb
	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	_EVHTTP_REQ_GET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_evhttp_make_request
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	_tt_abort_msg
LBB0_2:
	movl	(%r15), %edi
	callq	_event_base_dispatch
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_http_request_get_addr_on_close
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_evhttp_connection_free
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_evhttp_free
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,8,3                    ## @test_ok
	.comm	_exit_base,4,2                  ## @exit_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

	.comm	_http_request_done,4,2          ## @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ## @BASIC_REQUEST_BODY
	.comm	_EVHTTP_REQ_GET,4,2             ## @EVHTTP_REQ_GET
L_.str.1:                               ## @.str.1
	.asciz	"/test"

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

	.no_dead_strip	_http_get_addr_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_get_addr_test
_http_get_addr_test:                    ; @http_get_addr_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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	x8, _test_ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _exit_base@GOTPAGE
Lloh4:
	ldr	x9, [x9, _exit_base@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldr	w0, [x20]
	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	x21, x0
	bl	_tt_assert
Lloh8:
	adrp	x1, _http_request_get_addr_on_close@GOTPAGE
Lloh9:
	ldr	x1, [x1, _http_request_get_addr_on_close@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x20
	bl	_evhttp_connection_set_closecb
Lloh10:
	adrp	x8, _http_request_done@GOTPAGE
Lloh11:
	ldr	x8, [x8, _http_request_done@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _BASIC_REQUEST_BODY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BASIC_REQUEST_BODY@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	bl	_evhttp_request_new
	mov	x1, x0
Lloh16:
	adrp	x8, _EVHTTP_REQ_GET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVHTTP_REQ_GET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_evhttp_make_request
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tt_abort_msg
LBB0_2:
	ldr	w0, [x20]
	bl	_event_base_dispatch
	mov	x0, x21
	mov	x1, #0
	bl	_http_request_get_addr_on_close
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_evhttp_connection_free
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_evhttp_free
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,8,3                    ; @test_ok
	.comm	_exit_base,4,2                  ; @exit_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

	.comm	_http_request_done,4,2          ; @http_request_done
	.comm	_BASIC_REQUEST_BODY,8,3         ; @BASIC_REQUEST_BODY
	.comm	_EVHTTP_REQ_GET,4,2             ; @EVHTTP_REQ_GET
l_.str.1:                               ; @.str.1
	.asciz	"/test"

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

	.no_dead_strip	_http_get_addr_test
.subsections_via_symbols
