	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_states_v1
_nat64lsn_states_v1:                    ## @nat64lsn_states_v1
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$31, (%rdx)
	jbe	LBB0_13
## %bb.1:
	movq	%rdx, %r15
	movq	8(%rdx), %rbx
	movq	8(%rbx), %rax
	movq	_IPFW_TLV_OBJDATA@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.2:
	cmpq	$24, 16(%rbx)
	jne	LBB0_13
## %bb.3:
	movq	%rdi, %r14
	movq	24(%rbx), %r13
	movq	%r13, -48(%rbp)
	testq	%r13, %r13
	je	LBB0_7
## %bb.4:
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_7
## %bb.5:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_7
## %bb.6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_13
LBB0_7:
	movq	_LAST_IDX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_IPFW_UH_RLOCK
	movq	%r14, %rdi
	callq	_CHAIN_TO_SRV
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_nat64lsn_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	testq	%r13, %r13
	jne	LBB0_11
## %bb.10:
	movq	_NAT64_MIN_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	%r13, -48(%rbp)
LBB0_11:
	cmpq	(%rax), %r13
	jge	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	cmpq	8(%rax), %r13
	jg	LBB0_12
## %bb.18:
	movq	_NAT64_MIN_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jl	LBB0_12
## %bb.19:
	cmpq	$47, (%r15)
	ja	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_21:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_ipfw_get_sopt_space
	movq	(%r12), %rcx
	movq	%rcx, 8(%rax)
	movq	$40, 16(%rax)
	leaq	24(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, 24(%rax)
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, 32(%rax)
	movq	%rbx, %rdi
	callq	_CALLOUT_LOCK
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	movl	$48, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_ipfw_get_sopt_space
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, 16(%rcx)
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, (%rax)
	xorl	%r12d, %r12d
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testl	%r12d, %r12d
	jne	LBB0_39
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nat64lsn_get_pg_byidx
	movq	%r13, %rsi
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	$0, -52(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	leaq	-52(%rbp), %r8
	callq	_nat64lsn_export_states_v1
	testl	%eax, %eax
	jne	LBB0_38
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addl	%eax, (%r12)
	movslq	-52(%rbp), %rax
	addl	%eax, -76(%rbp)                 ## 4-byte Folded Spill
	leaq	(,%rax,4), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addq	%rcx, 16(%rdx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-48(%rbp), %rdi
	callq	_htonl
	movl	%eax, 16(%r12)
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdx
	callq	_nat64lsn_next_pgidx
	cmpl	$1, %eax
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%r12d, %r12d
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_23
LBB0_34:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, (%r12)
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rax, (%r15)
	jae	LBB0_22
## %bb.36:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_23
LBB0_37:                                ##   in Loop: Header=BB0_24 Depth=1
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testl	%r12d, %r12d
	je	LBB0_24
	jmp	LBB0_39
LBB0_38:
	movl	%eax, %r12d
LBB0_39:
	movq	%rbx, %rdi
	callq	_CALLOUT_UNLOCK
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
	movq	-48(%rbp), %rax
	xorl	%ecx, %ecx
	movq	_LAST_IDX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovel	%ecx, %r12d
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	cmovgl	%ecx, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPFW_TLV_OBJDATA,8,3           ## @IPFW_TLV_OBJDATA
	.comm	_IPPROTO_ICMP,8,3               ## @IPPROTO_ICMP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_LAST_IDX,8,3                   ## @LAST_IDX
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NAT64_MIN_PORT,8,3             ## @NAT64_MIN_PORT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nat64lsn_states_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64lsn_states_v1
_nat64lsn_states_v1:                    ; @nat64lsn_states_v1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x2]
	cmp	x8, #31
	b.ls	LBB0_11
; %bb.1:
	mov	x20, x2
	ldr	x21, [x2, #8]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x23, _IPFW_TLV_OBJDATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPFW_TLV_OBJDATA@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x21, #16]
	cmp	x8, #24
	b.ne	LBB0_11
; %bb.3:
	ldr	x24, [x21, #24]
Lloh2:
	adrp	x8, _IPPROTO_ICMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPPROTO_ICMP@GOTPAGEOFF]
	str	x24, [sp, #8]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh7:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	ldr	x10, [x10]
	cmp	x24, #0
	ccmp	x24, x8, #4, ne
	ccmp	x24, x9, #4, ne
	ccmp	x24, x10, #4, ne
	b.ne	LBB0_11
; %bb.4:
Lloh11:
	adrp	x26, _LAST_IDX@GOTPAGE
Lloh12:
	ldr	x26, [x26, _LAST_IDX@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x24, x8
	b.eq	LBB0_11
; %bb.5:
	mov	x19, x0
	bl	_IPFW_UH_RLOCK
	mov	x0, x19
	bl	_CHAIN_TO_SRV
	ldp	w2, w1, [x21]
	bl	_nat64lsn_find
	cbz	x0, LBB0_14
; %bb.6:
	mov	x21, x0
	cbnz	x24, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _NAT64_MIN_PORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NAT64_MIN_PORT@GOTPAGEOFF]
Lloh15:
	ldr	x24, [x8]
	str	x24, [sp, #8]
LBB0_8:
	ldr	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x21, #8]
Lloh16:
	adrp	x9, _NAT64_MIN_PORT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NAT64_MIN_PORT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x24, x8
	ccmp	x24, x9, #8, le
	b.ge	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
LBB0_11:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
Lloh21:
	adrp	x8, _ENOENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
	ldr	x8, [x20]
	cmp	x8, #47
	b.hi	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	mov	w27, #48
	mov	x0, x20
	mov	w1, #48
	bl	_ipfw_get_sopt_space
	mov	x22, x0
	ldr	x8, [x23]
	mov	w9, #40
	stp	x8, x9, [x0, #8]
	mov	x23, x0
	str	wzr, [x23, #24]!
	str	x24, [x0, #32]
	mov	x0, x21
	bl	_CALLOUT_LOCK
	mov	w28, #0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x23, #8]
	cbnz	w24, LBB0_35
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_nat64lsn_get_pg_byidx
	mov	x25, x0
	cbz	x0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	str	wzr, [sp, #4]
	add	x1, sp, #8
	add	x4, sp, #4
	mov	x0, x21
	mov	x2, x25
	mov	x3, x20
	bl	_nat64lsn_export_states_v1
	cbnz	w0, LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x23]
	add	w8, w9, w8
	str	w8, [x23]
	ldrsw	x8, [sp, #4]
	add	w28, w8, w28
	lsl	x8, x8, #2
	ldr	x9, [x22, #16]
	add	x9, x8, x9
	str	x9, [x22, #16]
	add	x27, x8, x27
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [sp, #8]
	bl	_htonl
	str	w0, [x23, #16]
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x25
	bl	_nat64lsn_next_pgidx
	cmp	w0, #1
	b.eq	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_31
LBB0_28:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x23]
	cbz	w8, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x27, x27, #24
	ldr	x8, [x20]
	cmp	x8, x27
	b.hs	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_31:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w24, [x8]
	b	LBB0_19
LBB0_32:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #0
	cbz	w24, LBB0_20
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x23, #8]
	mov	x0, x20
	mov	w1, #24
	bl	_ipfw_get_sopt_space
	mov	x23, x0
	mov	w24, #0
	ldr	x8, [x22, #16]
	add	x8, x8, #24
	str	x8, [x22, #16]
	str	wzr, [x0]
	b	LBB0_19
LBB0_34:
	mov	x24, x0
LBB0_35:
	mov	x0, x21
	bl	_CALLOUT_UNLOCK
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	ccmp	w28, #0, #0, ne
	csel	w0, wzr, w24, gt
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPFW_TLV_OBJDATA,8,3           ; @IPFW_TLV_OBJDATA
	.comm	_IPPROTO_ICMP,8,3               ; @IPPROTO_ICMP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_LAST_IDX,8,3                   ; @LAST_IDX
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NAT64_MIN_PORT,8,3             ; @NAT64_MIN_PORT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nat64lsn_states_v1
.subsections_via_symbols
