	.file	"extr_dns64.c_handle_ipv6_ptr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dns64: rewrite PTR record"
	.text
	.p2align 4
	.type	handle_ipv6_ptr, @function
handle_ipv6_ptr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 8
	movsx	r14, esi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 32[rdi]
	lea	r13, 8[rsp]
	mov	rdi, r13
	mov	rax, QWORD PTR 8[rax]
	mov	r12, QWORD PTR [rax+r14*8]
	mov	QWORD PTR [rsp], 0
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET6[rip]
	mov	rdi, QWORD PTR 48[rbp]
	mov	esi, DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	ptr_to_ipv6@PLT
	test	eax, eax
	jne	.L2
.L14:
	mov	eax, DWORD PTR module_wait_module[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR [r12]
	lea	rdx, 8[r12]
	mov	esi, 128
	mov	rdi, r13
	mov	r8d, 8
	call	addr_in_common@PLT
	cmp	rax, QWORD PTR [r12]
	jne	.L14
	mov	edi, DWORD PTR VERB_ALGO[rip]
	lea	rsi, .LC0[rip]
	call	verbose@PLT
	movdqu	xmm0, XMMWORD PTR 48[rbp]
	mov	edi, DWORD PTR 40[rbp]
	mov	esi, DWORD PTR MAX_PTR_QNAME_IPV4[rip]
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	regional_alloc@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	r13, rax
	test	rax, rax
	je	.L13
	mov	rsi, QWORD PTR [r12]
	mov	edi, DWORD PTR 8[rsp]
	call	extract_ipv4@PLT
	mov	rsi, r13
	mov	edi, eax
	call	ipv4_to_ptr@PLT
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR [rax]
	call	fptr_whitelist_modenv_attach_sub@PLT
	mov	edi, eax
	call	fptr_ok@PLT
	mov	rax, QWORD PTR 32[rbp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, DWORD PTR 24[rbp]
	lea	rsi, 16[rsp]
	mov	r9, rsp
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L7
	mov	rdx, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR module_state_initial[rip]
	mov	DWORD PTR [rax], r14d
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [rdx+r14*4], ecx
	mov	QWORD PTR [rax+r14*8], 0
.L7:
	mov	eax, DWORD PTR module_wait_subquery[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR module_error[rip]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_ipv6_ptr, .-handle_ipv6_ptr
	.comm	module_wait_subquery,4,4
	.comm	module_wait_module,4,4
	.comm	module_state_initial,4,4
	.comm	module_error,4,4
	.comm	VERB_ALGO,4,4
	.comm	MAX_PTR_QNAME_IPV4,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dns64.c_handle_ipv6_ptr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dns64: rewrite PTR record\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_ipv6_ptr, %function
handle_ipv6_ptr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, #0
	mov	r6, r1
	ldr	r2, [r0, #16]
	ldr	r3, .L17
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	ldr	ip, .L17+4
	sub	sp, sp, #32
	mov	r4, r0
	mov	r1, r5
	ldr	r0, [r0, #24]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	ldr	r7, [r2, r6, lsl #2]
	str	r3, [sp, #24]
	str	r5, [sp, #8]
	str	r5, [sp, #20]
	bl	ptr_to_ipv6
	cmp	r0, r5
	bne	.L2
.L14:
	ldr	r3, .L17+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r2, r7
	mov	r1, #8
	ldr	r3, [r2], #4
	add	r0, sp, #20
	str	r1, [sp]
	mov	r1, #128
	bl	addr_in_common
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L14
	ldr	r3, .L17+12
	ldr	r1, .L17+16
	ldr	r0, [r3]
	bl	verbose
	ldr	r1, [r4, #28]
	ldr	r0, [r4, #24]
	ldr	r3, .L17+20
	add	r8, sp, #12
	stm	r8, {r0, r1}
	ldr	r1, [r3]
	ldr	r0, [r4, #20]
	bl	regional_alloc
	cmp	r0, #0
	str	r0, [sp, #12]
	beq	.L13
	ldr	r1, [r7]
	ldr	r0, [sp, #20]
	bl	extract_ipv4
	ldr	r1, [sp, #12]
	bl	ipv4_to_ptr
	ldr	r3, [r4, #16]
	str	r0, [sp, #16]
	ldr	r0, [r3]
	bl	fptr_whitelist_modenv_attach_sub
	bl	fptr_ok
	ldr	r3, [r4, #16]
	add	r2, sp, #8
	str	r5, [sp]
	str	r2, [sp, #4]
	ldr	r7, [r3]
	mov	r1, r8
	mov	r3, r5
	mov	r0, r4
	ldr	r2, [r4, #12]
	blx	r7
	cmp	r0, #0
	beq	.L13
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r2, .L17+24
	ldr	r1, [r3, #8]
	ldr	r0, [r2]
	ldr	r2, [r3, #4]
	str	r6, [r3]
	str	r0, [r1, r6, lsl #2]
	str	r5, [r2, r6, lsl #2]
.L7:
	ldr	r3, .L17+28
	ldr	r0, [r3]
	b	.L1
.L13:
	ldr	r3, .L17+32
	ldr	r0, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	AF_INET6
	.word	.LC1
	.word	module_wait_module
	.word	VERB_ALGO
	.word	.LC0
	.word	MAX_PTR_QNAME_IPV4
	.word	module_state_initial
	.word	module_wait_subquery
	.word	module_error
	.size	handle_ipv6_ptr, .-handle_ipv6_ptr
	.comm	module_wait_subquery,4,4
	.comm	module_wait_module,4,4
	.comm	module_state_initial,4,4
	.comm	module_error,4,4
	.comm	VERB_ALGO,4,4
	.comm	MAX_PTR_QNAME_IPV4,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
