	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_dns_callback
_generic_dns_callback:                  ## @generic_dns_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%edi, (%r9)
	movb	%sil, 4(%r9)
	movl	%edx, 8(%r9)
	movl	%ecx, 12(%r9)
	movq	_DNS_IPv4_A@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jne	LBB0_2
## %bb.1:
	shll	$2, %edx
	testl	%edx, %edx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_2:
	movq	_DNS_IPv6_AAAA@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jne	LBB0_4
## %bb.3:
	shll	$4, %edx
	testl	%edx, %edx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_4:
	movq	_DNS_PTR@GOTPCREL(%rip), %rax
	cmpb	%sil, (%rax)
	jne	LBB0_13
## %bb.5:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %edx
	incl	%edx
	testl	%edx, %edx
	je	LBB0_9
LBB0_7:
	movslq	%edx, %rax
	movq	%rax, 16(%rbx)
	cmpq	$256, %rax                      ## imm = 0x100
	movl	$256, %edx                      ## imm = 0x100
	cmovbq	%rax, %rdx
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	24(%rbx), %rax
LBB0_8:
	movq	%rax, 32(%rbx)
LBB0_9:
	movq	_n_replies_left@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_12
## %bb.10:
	movq	_exit_port@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:
	callq	_evdns_close_server_port
	movq	$0, (%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	_exit_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_13:
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DNS_IPv4_A,1,0                 ## @DNS_IPv4_A
	.comm	_DNS_IPv6_AAAA,1,0              ## @DNS_IPv6_AAAA
	.comm	_DNS_PTR,1,0                    ## @DNS_PTR
	.comm	_n_replies_left,8,3             ## @n_replies_left
	.comm	_exit_port,8,3                  ## @exit_port
	.comm	_exit_base,4,2                  ## @exit_base
	.no_dead_strip	_generic_dns_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_dns_callback
_generic_dns_callback:                  ; @generic_dns_callback
	.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
	mov	x19, x5
	mov	x20, x4
	and	w8, w1, #0xff
	str	w0, [x5]
	strb	w1, [x5, #4]
	stp	w2, w3, [x5, #8]
Lloh0:
	adrp	x9, _DNS_IPv4_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DNS_IPv4_A@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	lsl	w8, w2, #2
	cbnz	w8, LBB0_6
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x9, _DNS_IPv6_AAAA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DNS_IPv6_AAAA@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.3:
	lsl	w8, w2, #4
	cbnz	w8, LBB0_6
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x9, _DNS_PTR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DNS_PTR@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	cbz	w8, LBB0_8
LBB0_6:
	sxtw	x8, w8
	str	x8, [x19, #16]
	mov	w9, #256
	cmp	x8, #256
	csel	x2, x8, x9, lo
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #24]
LBB0_7:
	str	x8, [x19, #32]
LBB0_8:
Lloh6:
	adrp	x8, _n_replies_left@GOTPAGE
Lloh7:
	ldr	x8, [x8, _n_replies_left@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_11
; %bb.9:
Lloh8:
	adrp	x19, _exit_port@GOTPAGE
Lloh9:
	ldr	x19, [x19, _exit_port@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.10:
	bl	_evdns_close_server_port
	str	xzr, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh10:
	adrp	x8, _exit_base@GOTPAGE
Lloh11:
	ldr	x8, [x8, _exit_base@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_base_loopexit
LBB0_13:
	mov	x8, #0
	str	xzr, [x19, #16]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DNS_IPv4_A,1,0                 ; @DNS_IPv4_A
	.comm	_DNS_IPv6_AAAA,1,0              ; @DNS_IPv6_AAAA
	.comm	_DNS_PTR,1,0                    ; @DNS_PTR
	.comm	_n_replies_left,8,3             ; @n_replies_left
	.comm	_exit_port,8,3                  ; @exit_port
	.comm	_exit_base,4,2                  ; @exit_base
	.no_dead_strip	_generic_dns_callback
.subsections_via_symbols
