	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gai_cb
_gai_cb:                                ## @gai_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, (%rdx)
	movq	%rsi, 8(%rdx)
	movq	_n_gai_results_pending@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	-1(%rax), %rdi
	movq	%rdi, (%rbx)
	cmpq	$1, %rax
	jg	LBB0_3
## %bb.1:
	movq	_exit_base_on_no_pending_results@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_event_base_loopexit
	movq	(%rbx), %rdi
LBB0_3:
	addq	$8, %rsp
	cmpq	$899, %rdi                      ## imm = 0x383
	jg	LBB0_4
## %bb.5:
	popq	%rbx
	popq	%rbp
	jmp	_TT_BLATHER                     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_n_gai_results_pending,8,3      ## @n_gai_results_pending
	.comm	_exit_base_on_no_pending_results,8,3 ## @exit_base_on_no_pending_results
	.no_dead_strip	_gai_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gai_cb
_gai_cb:                                ; @gai_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	w0, [x2]
	str	x1, [x2, #8]
Lloh0:
	adrp	x19, _n_gai_results_pending@GOTPAGE
Lloh1:
	ldr	x19, [x19, _n_gai_results_pending@GOTPAGEOFF]
	ldr	x8, [x19]
	subs	x0, x8, #1
	str	x0, [x19]
Lloh2:
	adrp	x8, _exit_base_on_no_pending_results@GOTPAGE
Lloh3:
	ldr	x8, [x8, _exit_base_on_no_pending_results@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, le
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x8
	mov	x1, #0
	bl	_event_base_loopexit
	ldr	x0, [x19]
LBB0_2:
	cmp	x0, #899
	b.gt	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TT_BLATHER
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_n_gai_results_pending,8,3      ; @n_gai_results_pending
	.comm	_exit_base_on_no_pending_results,8,3 ; @exit_base_on_no_pending_results
	.no_dead_strip	_gai_cb
.subsections_via_symbols
