	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nat64clat_config
_nat64clat_config:                      ## @nat64clat_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	$48, (%rdx)
	jne	LBB0_17
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	movl	$48, %esi
	callq	_ipfw_get_sopt_space
	movq	%rax, %r13
	movl	8(%rax), %edi
	callq	_ipfw_check_object_name_generic
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	(%r13), %rax
	movq	_IPFW_MAX_SETS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_17
## %bb.3:
	leaq	16(%r13), %r12
	movq	%r14, %rdi
	callq	_CHAIN_TO_SRV
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_IPFW_UH_RLOCK
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	movq	%r15, %rdi
	callq	_nat64clat_find
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_nat64clat_export_config
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
	jmp	LBB0_31
LBB0_6:
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	movq	%r15, %rdi
	callq	_nat64clat_find
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	movq	%rax, %r15
	movq	(%r12), %rsi
	cmpq	(%rax), %rsi
	jne	LBB0_10
## %bb.8:
	leaq	40(%r13), %rdi
	leaq	24(%r15), %rsi
	callq	_IN6_ARE_ADDR_EQUAL
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	(%r12), %rsi
LBB0_10:
	movq	%r13, %rdi
	addq	$40, %rdi
	callq	_nat64_check_prefix6
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	_NAT64_PLATPFX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movq	24(%r13), %rsi
	cmpq	8(%r15), %rsi
	jne	LBB0_15
## %bb.13:
	leaq	20(%r12), %rdi
	movq	%r15, %rsi
	addq	$20, %rsi
	callq	_IN6_ARE_ADDR_EQUAL
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:
	movq	24(%r13), %rsi
LBB0_15:
	addq	$20, %r12
	movq	%r12, %rdi
	callq	_nat64_check_prefix6
	testq	%rax, %rax
	je	LBB0_23
LBB0_16:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, %rdi
	callq	_IPFW_UH_RUNLOCK
	jmp	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_22:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_23:
	movq	_NAT64_CLATPFX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_24:
	testl	%ebx, %ebx
	je	LBB0_30
## %bb.25:
	movq	%r14, %rdi
	callq	_IPFW_WLOCK
	movq	_NAT64_PLATPFX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_27
## %bb.26:
	movl	40(%r13), %eax
	movl	%eax, 24(%r15)
	movq	16(%r13), %rax
	movq	%rax, (%r15)
LBB0_27:
	movq	_NAT64_CLATPFX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_29
## %bb.28:
	movl	36(%r13), %eax
	movl	%eax, 20(%r15)
	movq	24(%r13), %rax
	movq	%rax, 8(%r15)
LBB0_29:
	movq	%r14, %rdi
	callq	_IPFW_WUNLOCK
LBB0_30:
	movq	_NAT64CLAT_FLAGSMASK@GOTPCREL(%rip), %rax
	movl	16(%r15), %ecx
	movl	32(%r13), %edx
	xorl	%ecx, %edx
	andl	(%rax), %edx
	xorl	%ecx, %edx
	movl	%edx, 16(%r15)
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_31:
	xorl	%eax, %eax
	jmp	LBB0_19
	.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	_NAT64_PLATPFX,4,2              ## @NAT64_PLATPFX
	.comm	_NAT64_CLATPFX,4,2              ## @NAT64_CLATPFX
	.comm	_NAT64CLAT_FLAGSMASK,4,2        ## @NAT64CLAT_FLAGSMASK
	.no_dead_strip	_nat64clat_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nat64clat_config
_nat64clat_config:                      ; @nat64clat_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, #48
	b.ne	LBB0_21
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	mov	x0, x2
	mov	w1, #48
	bl	_ipfw_get_sopt_space
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_ipfw_check_object_name_generic
	cbnz	x0, LBB0_21
; %bb.2:
	ldr	x8, [x20]
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_21
; %bb.3:
	add	x22, x20, #16
	mov	x0, x19
	bl	_CHAIN_TO_SRV
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	bl	_IPFW_UH_RLOCK
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x23
	bl	_nat64clat_find
	cbz	x0, LBB0_10
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_nat64clat_export_config
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
	b	LBB0_32
LBB0_6:
	bl	_IPFW_UH_WLOCK
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x23
	bl	_nat64clat_find
	cbz	x0, LBB0_11
; %bb.7:
	mov	x21, x0
	ldr	x1, [x22]
	ldr	x8, [x0]
	cmp	x1, x8
	b.ne	LBB0_14
; %bb.8:
	add	x0, x20, #40
	add	x1, x21, #24
	bl	_IN6_ARE_ADDR_EQUAL
	cbz	w0, LBB0_13
; %bb.9:
	mov	w23, #0
	b	LBB0_16
LBB0_10:
	mov	x0, x19
	bl	_IPFW_UH_RUNLOCK
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_12:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_22
LBB0_13:
	ldr	x1, [x22]
LBB0_14:
	add	x0, x20, #40
	bl	_nat64_check_prefix6
	cbnz	x0, LBB0_20
; %bb.15:
Lloh8:
	adrp	x8, _NAT64_PLATPFX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAT64_PLATPFX@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
LBB0_16:
	ldr	x1, [x20, #24]
	ldr	x8, [x21, #8]
	cmp	x1, x8
	b.ne	LBB0_19
; %bb.17:
	add	x0, x22, #20
	add	x1, x21, #20
	bl	_IN6_ARE_ADDR_EQUAL
	cbnz	w0, LBB0_25
; %bb.18:
	ldr	x1, [x20, #24]
LBB0_19:
	add	x0, x22, #20
	bl	_nat64_check_prefix6
	cbz	x0, LBB0_24
LBB0_20:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_21:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
LBB0_23:
	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_24:
Lloh13:
	adrp	x8, _NAT64_CLATPFX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NAT64_CLATPFX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_25:
	cbz	w23, LBB0_31
; %bb.26:
	mov	x0, x19
	bl	_IPFW_WLOCK
Lloh16:
	adrp	x8, _NAT64_PLATPFX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NAT64_PLATPFX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_28
; %bb.27:
	ldr	w8, [x20, #40]
	str	w8, [x21, #24]
	ldr	x8, [x20, #16]
	str	x8, [x21]
LBB0_28:
Lloh19:
	adrp	x8, _NAT64_CLATPFX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NAT64_CLATPFX@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_30
; %bb.29:
	ldr	w8, [x20, #36]
	str	w8, [x21, #20]
	ldr	x8, [x20, #24]
	str	x8, [x21, #8]
LBB0_30:
	mov	x0, x19
	bl	_IPFW_WUNLOCK
LBB0_31:
Lloh22:
	adrp	x8, _NAT64CLAT_FLAGSMASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NAT64CLAT_FLAGSMASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	bic	w9, w9, w8
	ldr	w10, [x20, #32]
	and	w8, w10, w8
	orr	w8, w8, w9
	str	w8, [x21, #16]
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_32:
	mov	w0, #0
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_NAT64_PLATPFX,4,2              ; @NAT64_PLATPFX
	.comm	_NAT64_CLATPFX,4,2              ; @NAT64_CLATPFX
	.comm	_NAT64CLAT_FLAGSMASK,4,2        ; @NAT64CLAT_FLAGSMASK
	.no_dead_strip	_nat64clat_config
.subsections_via_symbols
