	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_nat                        ## -- Begin function add_nat
	.p2align	4, 0x90
_add_nat:                               ## @add_nat
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r8
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	testq	%r8, %r8
	je	LBB0_7
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movq	%r9, %r14
	testq	%r9, %r9
	je	LBB0_7
## %bb.5:
	movl	24(%rbp), %r9d
	testl	%r9d, %r9d
	je	LBB0_7
## %bb.6:
	movq	%rsi, %rdx
	movq	(%rsi), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.8:
	movq	_PF_RULESET_NAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_prepare_rule
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.9:
	movq	(%rbx), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_satosin
	movq	_pfp@GOTPCREL(%rip), %rdi
	addq	$16, %rdi
	movl	$4, %ebx
	movq	%rax, %rsi
	movl	$4, %edx
	jmp	LBB0_12
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r15d
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_satosin6
	movq	_pfp@GOTPCREL(%rip), %rdi
	addq	$12, %rdi
	movl	$16, %ebx
	movq	%rax, %rsi
	movl	$16, %edx
LBB0_12:
	callq	_memcpy
	movq	_pfp@GOTPCREL(%rip), %r12
	leaq	8(%r12), %rdi
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_dev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_DIOCADDADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.13:
	movq	16(%rbp), %rax
	movq	_pfr@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%r14, (%rcx)
	movq	(%rdx), %rcx
	movq	%rax, 8(%rcx)
	movl	(%rbx), %edi
	movq	_DIOCADDRULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	xorl	%r15d, %r15d
	cmpl	$-1, %eax
	sete	%r15b
	negl	%r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_PF_RULESET_NAT,4,2             ## @PF_RULESET_NAT
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_pfp,24,3                       ## @pfp
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCADDADDR,4,2                ## @DIOCADDADDR
	.comm	_pfr,24,3                       ## @pfr
	.comm	_DIOCADDRULE,4,2                ## @DIOCADDRULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_nat                        ; -- Begin function add_nat
	.p2align	2
_add_nat:                               ; @add_nat
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x4
	mov	x4, x3
	mov	x3, x2
	cbz	x2, LBB0_10
; %bb.2:
	cbz	x4, LBB0_10
; %bb.3:
	cbz	x21, LBB0_10
; %bb.4:
	mov	x20, x5
	cbz	x5, LBB0_10
; %bb.5:
	cbz	w7, LBB0_10
; %bb.6:
	mov	x2, x1
	ldr	x8, [x1]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x19, x6
Lloh0:
	adrp	x8, _PF_RULESET_NAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_RULESET_NAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x5, x7
	bl	_prepare_rule
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.8:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _AF_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x22, _pfp@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pfp@GOTPAGEOFF]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	bl	_satosin
	mov	x1, x0
	add	x0, x22, #16
	mov	w21, #4
	mov	w2, #4
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	_satosin6
	mov	x1, x0
	add	x0, x22, #12
	mov	w21, #16
	mov	w2, #16
LBB0_13:
	bl	_memcpy
	add	x0, x22, #8
	mov	w1, #255
	mov	x2, x21
	bl	_memset
Lloh14:
	adrp	x21, _dev@GOTPAGE
Lloh15:
	ldr	x21, [x21, _dev@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _DIOCADDADDR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIOCADDADDR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.14:
Lloh19:
	adrp	x2, _pfr@GOTPAGE
Lloh20:
	ldr	x2, [x2, _pfr@GOTPAGEOFF]
	ldr	x8, [x2]
	str	x20, [x8]
	ldr	x8, [x2]
	str	x19, [x8, #8]
	ldr	w0, [x21]
Lloh21:
	adrp	x8, _DIOCADDRULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DIOCADDRULE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_ioctl
	cmn	w0, #1
	csetm	w0, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_PF_RULESET_NAT,4,2             ; @PF_RULESET_NAT
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_pfp,24,3                       ; @pfp
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCADDADDR,4,2                ; @DIOCADDADDR
	.comm	_pfr,24,3                       ; @pfr
	.comm	_DIOCADDRULE,4,2                ; @DIOCADDRULE
.subsections_via_symbols
