	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64lsn_config
_nat64lsn_config:                       ## @nat64lsn_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$56, (%rdx)
	jne	LBB0_6
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	movl	$56, %esi
	callq	_ipfw_get_sopt_space
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_ipfw_check_object_name_generic
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	(%r12), %rax
	movq	_IPFW_MAX_SETS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.3:
	movq	%r12, %r14
	addq	$16, %r14
	movq	%r15, %rdi
	callq	_CHAIN_TO_SRV
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_IPFW_UH_RLOCK
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	%r13, %rdi
	callq	_nat64lsn_find
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_nat64lsn_export_config
	movq	%r15, %rdi
	callq	_IPFW_UH_RUNLOCK
	jmp	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_nat64lsn_default_config
	movq	%r15, %rdi
	callq	_IPFW_UH_WLOCK
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	%r13, %rdi
	callq	_nat64lsn_find
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	36(%r14), %ecx
	movl	%ecx, 36(%rax)
	movups	20(%r14), %xmm0
	movups	%xmm0, 20(%rax)
	movups	4(%r14), %xmm0
	movups	%xmm0, 4(%rax)
	movq	_NAT64LSN_FLAGSMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, (%rax)
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_12:
	movq	%r15, %rdi
	callq	_IPFW_UH_RUNLOCK
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_14:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPFW_MAX_SETS,8,3              ## @IPFW_MAX_SETS
	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NAT64LSN_FLAGSMASK,4,2         ## @NAT64LSN_FLAGSMASK
	.no_dead_strip	_nat64lsn_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64lsn_config
_nat64lsn_config:                       ; @nat64lsn_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x2]
	cmp	w8, #56
	b.ne	LBB0_6
; %bb.1:
	mov	x22, x2
	mov	x19, x0
	mov	x0, x2
	mov	w1, #56
	bl	_ipfw_get_sopt_space
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_ipfw_check_object_name_generic
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _IPFW_MAX_SETS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPFW_MAX_SETS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.3:
	add	x20, x21, #16
	mov	x0, x19
	bl	_CHAIN_TO_SRV
	mov	x23, x0
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_IPFW_UH_RLOCK
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	mov	x0, x23
	bl	_nat64lsn_find
	cbz	x0, LBB0_12
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_nat64lsn_export_config
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	bl	_nat64lsn_default_config
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	mov	x0, x23
	bl	_nat64lsn_find
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x20, #36]
	str	w8, [x0, #36]
	ldur	q0, [x20, #20]
	stur	q0, [x0, #20]
	ldur	q0, [x20, #4]
	stur	q0, [x0, #4]
Lloh8:
	adrp	x8, _NAT64LSN_FLAGSMASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAT64LSN_FLAGSMASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x0]
	bic	w9, w10, w9
	str	w9, [x0]
	ldr	w10, [x20]
	ldr	w8, [x8]
	and	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x0]
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_11:
	mov	w0, #0
	b	LBB0_8
LBB0_12:
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_14:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPFW_MAX_SETS,8,3              ; @IPFW_MAX_SETS
	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NAT64LSN_FLAGSMASK,4,2         ; @NAT64LSN_FLAGSMASK
	.no_dead_strip	_nat64lsn_config
.subsections_via_symbols
