	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nat64_extract_ip4              ## -- Begin function nat64_extract_ip4
	.p2align	4, 0x90
_nat64_extract_ip4:                     ## @nat64_extract_ip4
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	leal	-32(%r14), %eax
	roll	$29, %eax
	xorl	%ebx, %ebx
	cmpl	$8, %eax
	ja	LBB0_22
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	(%rdi), %rax
	cmpl	$0, 12(%rax)
	jne	LBB0_4
## %bb.3:
	cmpl	$0, 8(%rax)
	jne	LBB0_4
	jmp	LBB0_19
LBB0_5:
	movq	(%rdi), %r15
	cmpl	$0, 12(%r15)
	jne	LBB0_4
## %bb.6:
	movl	8(%r15), %ebx
	movl	$-16711681, %edi                ## imm = 0xFF00FFFF
	jmp	LBB0_7
LBB0_8:
	movq	(%rdi), %r15
	cmpl	$0, 12(%r15)
	jne	LBB0_4
## %bb.9:
	movl	8(%r15), %ebx
	movl	$-16776961, %edi                ## imm = 0xFF0000FF
LBB0_7:
	callq	_htonl
	testl	%ebx, %eax
	jne	LBB0_4
	jmp	LBB0_13
LBB0_10:
	movq	(%rdi), %r15
	cmpl	$0, 12(%r15)
	jne	LBB0_4
## %bb.11:
	movq	8(%rdi), %rax
	cmpl	$0, 32(%rax)
	jne	LBB0_4
## %bb.12:
	movl	8(%r15), %ebx
LBB0_13:
	movl	4(%r15), %eax
	leal	31(%r14), %ecx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ecx
	andl	$224, %ecx
	subl	%ecx, %r14d
	movl	%r14d, %ecx
	shll	%cl, %eax
	movb	$24, %cl
	subb	%r14b, %cl
	sarl	%cl, %ebx
	orl	%eax, %ebx
	jmp	LBB0_20
LBB0_14:
	movq	8(%rdi), %rax
	cmpl	$0, 32(%rax)
	jne	LBB0_4
## %bb.15:
	movq	(%rdi), %r14
	movl	12(%r14), %ebx
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	callq	_htonl
	testl	%ebx, %eax
	je	LBB0_16
LBB0_4:
	movq	_DP_GENERIC@GOTPCREL(%rip), %rax
	movq	_DP_DROPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPRINTF
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	(%rdi), %rax
LBB0_19:
	leal	31(%r14), %ecx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ecx
	sarl	$5, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ebx
LBB0_20:
	movl	%ebx, %edi
	callq	_nat64_check_ip4
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_DP_GENERIC@GOTPCREL(%rip), %rax
	movq	_DP_DROPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DPRINTF
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_16:
	movl	8(%r14), %eax
	shll	$8, %eax
	sarl	$24, %ebx
	orl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_DP_GENERIC,4,2                 ## @DP_GENERIC
	.comm	_DP_DROPS,4,2                   ## @DP_DROPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid destination address: %08x"

L_.str.1:                               ## @.str.1
	.asciz	"invalid IPv4-embedded IPv6 address"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nat64_extract_ip4              ; -- Begin function nat64_extract_ip4
	.p2align	2
_nat64_extract_ip4:                     ; @nat64_extract_ip4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w20, #0
	sub	w8, w1, #32
	ror	w8, w8, #3
	cmp	w8, #8
	b.hi	LBB0_17
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x0]
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_15
; %bb.3:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_15
	b	LBB0_19
LBB0_4:
	ldr	x20, [x0]
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_15
; %bb.5:
	ldr	w21, [x20, #8]
	mov	w0, #-16711681
	b	LBB0_8
LBB0_6:
	ldr	x20, [x0]
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_15
; %bb.7:
	ldr	w21, [x20, #8]
	mov	w0, #-16776961
LBB0_8:
	bl	_htonl
	tst	w0, w21
	b.ne	LBB0_15
	b	LBB0_12
LBB0_9:
	ldr	x20, [x0]
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_15
; %bb.10:
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_15
; %bb.11:
	ldr	w21, [x20, #8]
LBB0_12:
	ldr	w8, [x20, #4]
	negs	w9, w19
	and	w9, w9, #0x1f
	and	w10, w19, #0x1f
	csneg	w9, w10, w9, mi
	lsl	w8, w8, w9
	mov	w10, #24
	sub	w9, w10, w9
	asr	w9, w21, w9
	orr	w20, w9, w8
	b	LBB0_20
LBB0_13:
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_15
; %bb.14:
	ldr	x19, [x0]
	ldr	w20, [x19, #12]
	mov	w0, #16777215
	bl	_htonl
	tst	w0, w20
	b.eq	LBB0_22
LBB0_15:
Lloh2:
	adrp	x8, _DP_GENERIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_GENERIC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DP_DROPS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DP_DROPS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_DPRINTF
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
	ldr	x8, [x0]
LBB0_19:
	add	w9, w19, #31
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w9, w9, #5
	ldr	w20, [x8, w9, sxtw #2]
LBB0_20:
	mov	x0, x20
	bl	_nat64_check_ip4
	cbz	x0, LBB0_17
; %bb.21:
Lloh10:
	adrp	x8, _DP_GENERIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DP_GENERIC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DP_DROPS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DP_DROPS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_22:
	ldr	w8, [x19, #8]
	asr	w9, w20, #24
	orr	w20, w9, w8, lsl #8
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_DP_GENERIC,4,2                 ; @DP_GENERIC
	.comm	_DP_DROPS,4,2                   ; @DP_DROPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid destination address: %08x"

l_.str.1:                               ; @.str.1
	.asciz	"invalid IPv4-embedded IPv6 address"

.subsections_via_symbols
