	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_getaddrinfo_async_cancel_stress
_test_getaddrinfo_async_cancel_stress:  ## @test_getaddrinfo_async_cancel_stress
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_event_base_new
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_evdns_base_new
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	$2130706433, %edi               ## imm = 0x7F000001
	callq	_htonl
	movl	%eax, -80(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, %r15
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_tt_abort_perror
LBB0_2:
	movq	%r15, %rdi
	callq	_evutil_make_socket_nonblocking
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_tt_abort_perror
LBB0_4:
	movq	_gaic_server_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_evdns_add_server_port_with_base
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_getsockname
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_tt_abort_perror
LBB0_6:
	movl	-44(%rbp), %edx
	leaq	-104(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_evdns_base_nameserver_sockaddr_add
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gaic_launch
	decl	%ebx
	jne	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_event_base_dispatch
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_evdns_base_free
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_evdns_close_server_port
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_event_base_free
LBB0_14:
	testq	%r15, %r15
	js	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_evutil_closesocket
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

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

	.comm	_gaic_server_cb,4,2             ## @gaic_server_cb
L_.str.2:                               ## @.str.2
	.asciz	"getsockname"

	.no_dead_strip	_test_getaddrinfo_async_cancel_stress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_getaddrinfo_async_cancel_stress
_test_getaddrinfo_async_cancel_stress:  ; @test_getaddrinfo_async_cancel_stress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	bl	_event_base_new
	mov	x19, x0
	mov	w1, #0
	bl	_evdns_base_new
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	w21, [sp, #56]
	str	xzr, [sp, #48]
	mov	w0, #1
	movk	w0, #32512, lsl #16
	bl	_htonl
	str	w0, [sp, #40]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tt_abort_perror
LBB0_2:
	mov	x0, x21
	bl	_evutil_make_socket_nonblocking
	mov	w23, #24
	add	x1, sp, #40
	mov	x0, x21
	mov	w2, #24
	bl	_bind
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tt_abort_perror
LBB0_4:
Lloh10:
	adrp	x8, _gaic_server_cb@GOTPAGE
Lloh11:
	ldr	x8, [x8, _gaic_server_cb@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x4, x19
	bl	_evdns_add_server_port_with_base
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w23, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x21
	bl	_getsockname
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tt_abort_perror
LBB0_6:
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	mov	x0, x20
	mov	w3, #0
	bl	_evdns_base_nameserver_sockaddr_add
	mov	w23, #1000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gaic_launch
	subs	w23, w23, #1
	b.ne	LBB0_7
; %bb.8:
	mov	x0, x19
	bl	_event_base_dispatch
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #1
	bl	_evdns_base_free
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_evdns_close_server_port
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_event_base_free
LBB0_14:
	tbnz	x21, #63, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_evutil_closesocket
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

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

	.comm	_gaic_server_cb,4,2             ; @gaic_server_cb
l_.str.2:                               ; @.str.2
	.asciz	"getsockname"

	.no_dead_strip	_test_getaddrinfo_async_cancel_stress
.subsections_via_symbols
