	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_ipv6_ptr
_handle_ipv6_ptr:                       ## @handle_ipv6_ptr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	8(%rax), %rax
	movslq	%esi, %r15
	movq	(%rax,%r15,8), %r13
	movq	$0, -56(%rbp)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	48(%rbx), %rdi
	movl	-48(%rbp), %esi
	callq	_ptr_to_ipv6
	movq	_module_wait_module@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	8(%r13), %rdx
	movq	(%r13), %rcx
	leaq	-48(%rbp), %rdi
	movl	$128, %esi
	movl	$8, %r8d
	callq	_addr_in_common
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.2:
	leaq	48(%rbx), %r14
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movups	(%r14), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	40(%rbx), %edi
	movq	_MAX_PTR_QNAME_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regional_alloc
	movq	%rax, -80(%rbp)
	movq	_module_error@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movl	-48(%rbp), %edi
	movq	(%r13), %rsi
	callq	_extract_ipv4
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ipv4_to_ptr
	movl	%eax, -72(%rbp)
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_fptr_whitelist_modenv_attach_sub
	movl	%eax, %edi
	callq	_fptr_ok
	movq	32(%rbx), %rax
	movl	24(%rbx), %edx
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax
	movq	_module_wait_subquery@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r15d, (%rax)
	movq	_module_state_initial@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rax), %rdx
	movl	%ecx, (%rdx,%r15,4)
	movq	8(%rax), %rax
	movq	$0, (%rax,%r15,8)
LBB0_6:
	movl	(%r12), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_module_wait_module,4,2         ## @module_wait_module
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dns64: rewrite PTR record"

	.comm	_MAX_PTR_QNAME_IPV4,4,2         ## @MAX_PTR_QNAME_IPV4
	.comm	_module_error,4,2               ## @module_error
	.comm	_module_state_initial,4,2       ## @module_state_initial
	.comm	_module_wait_subquery,4,2       ## @module_wait_subquery
	.no_dead_strip	_handle_ipv6_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_ipv6_ptr
_handle_ipv6_ptr:                       ; @handle_ipv6_ptr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8, #8]
	ldr	x22, [x8, w1, sxtw #3]
	str	xzr, [sp, #40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x21, x20
	ldr	x0, [x21, #48]!
	ldr	w1, [sp, #8]
	bl	_ptr_to_ipv6
	cbz	w0, LBB0_7
; %bb.1:
	add	x2, x22, #8
	ldr	x3, [x22]
	add	x0, sp, #8
	mov	w1, #128
	mov	w4, #8
	bl	_addr_in_common
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldr	q0, [x21]
	str	q0, [sp, #16]
	ldr	w0, [x20, #40]
Lloh8:
	adrp	x8, _MAX_PTR_QNAME_IPV4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_PTR_QNAME_IPV4@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_regional_alloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	w0, [sp, #8]
	ldr	x1, [x22]
	bl	_extract_ipv4
	mov	x1, x21
	bl	_ipv4_to_ptr
	str	w0, [sp, #24]
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
	bl	_fptr_whitelist_modenv_attach_sub
	bl	_fptr_ok
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	w2, [x20, #24]
	add	x1, sp, #16
	add	x5, sp, #40
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	blr	x8
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_6
; %bb.5:
	sxtw	x9, w19
	str	w19, [x8]
Lloh11:
	adrp	x10, _module_state_initial@GOTPAGE
Lloh12:
	ldr	x10, [x10, _module_state_initial@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	x11, [x8, #16]
	str	w10, [x11, x9, lsl #2]
	ldr	x8, [x8, #8]
	str	xzr, [x8, x9, lsl #3]
LBB0_6:
Lloh14:
	adrp	x8, _module_wait_subquery@GOTPAGE
Lloh15:
	ldr	x8, [x8, _module_wait_subquery@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _module_wait_module@GOTPAGE
Lloh17:
	ldr	x8, [x8, _module_wait_module@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _module_error@GOTPAGE
Lloh19:
	ldr	x8, [x8, _module_error@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_module_wait_module,4,2         ; @module_wait_module
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dns64: rewrite PTR record"

	.comm	_MAX_PTR_QNAME_IPV4,4,2         ; @MAX_PTR_QNAME_IPV4
	.comm	_module_error,4,2               ; @module_error
	.comm	_module_state_initial,4,2       ; @module_state_initial
	.comm	_module_wait_subquery,4,2       ; @module_wait_subquery
	.no_dead_strip	_handle_ipv6_ptr
.subsections_via_symbols
