	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_dnat_handler
_tcp_dnat_handler:                      ## @tcp_dnat_handler
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ip_hdrlen
	movl	%eax, %r13d
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	16(%r13), %esi
	movq	%rbx, %rdi
	callq	_skb_make_writable
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 40(%r14)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ip_vs_app_pkt_in
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	%r13d, %r15d
	movq	%rbx, %rdi
	callq	_skb_network_header
	movq	%rax, %r12
	movl	28(%r14), %r9d
	movl	%r9d, 8(%rax,%r15)
	addq	%r15, %r12
	movq	8(%rbx), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	subl	%r13d, %edi
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	36(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$12, %r14
	callq	_htons
	movl	%eax, %r13d
	movl	(%rbx), %edi
	subl	%r15d, %edi
	callq	_htons
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_tcp_partial_csum_update
	jmp	LBB0_11
LBB0_7:
	cmpq	$0, 40(%r14)
	je	LBB0_8
## %bb.10:
	movq	$0, (%r12)
	movl	(%rbx), %edx
	subl	%r15d, %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_skb_checksum
	movl	%eax, 16(%rbx)
	movl	20(%r14), %edi
	movl	8(%r14), %ecx
	movl	12(%r14), %esi
	movl	(%rbx), %edx
	subl	%r15d, %edx
	movl	%eax, %r8d
	callq	_csum_tcpudp_magic
	movq	%rax, (%r12)
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_11:
	movl	$1, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rdi
	leaq	36(%r14), %rdx
	movl	32(%r14), %r8d
	addq	$12, %r14
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_tcp_fast_csum_update
	movq	8(%rbx), %rax
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_CHECKSUM_COMPLETE,8,3          ## @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.comm	_CHECKSUM_UNNECESSARY,8,3       ## @CHECKSUM_UNNECESSARY
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.no_dead_strip	_tcp_dnat_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_dnat_handler
_tcp_dnat_handler:                      ; @tcp_dnat_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ip_hdrlen
	mov	x22, x0
	ldr	w24, [x19]
	add	w1, w0, #16
	mov	x0, x19
	bl	_skb_make_writable
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	mov	x1, x19
	mov	x2, x21
	blr	x8
	cbz	w0, LBB0_13
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_ip_vs_app_pkt_in
	cbz	w0, LBB0_13
LBB0_5:
	mov	w23, w22
	mov	x0, x19
	bl	_skb_network_header
	add	x21, x0, x23
	ldr	w5, [x20, #28]
	str	w5, [x21, #8]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	sub	w0, w24, w22
	add	x22, x20, #36
	ldr	x24, [x20], #12
	bl	_htons
	mov	x25, x0
	ldr	w8, [x19]
	sub	w0, w8, w23
	bl	_htons
	mov	x5, x0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x25
	bl	_tcp_partial_csum_update
	b	LBB0_12
LBB0_7:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x21]
	ldr	w8, [x19]
	sub	w2, w8, w23
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_skb_checksum
	mov	x4, x0
	str	w0, [x19, #16]
	ldr	w0, [x20, #20]
	ldr	w8, [x19]
	sub	w2, w8, w23
	ldp	w3, w1, [x20, #8]
	bl	_csum_tcpudp_magic
	str	x0, [x21]
Lloh3:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	x0, [x20]
	add	x2, x20, #36
	add	x3, x20, #12
	ldr	w4, [x20, #32]
	mov	x1, x21
	bl	_tcp_fast_csum_update
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _CHECKSUM_COMPLETE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHECKSUM_COMPLETE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh8:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_CHECKSUM_COMPLETE,8,3          ; @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.comm	_CHECKSUM_UNNECESSARY,8,3       ; @CHECKSUM_UNNECESSARY
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.no_dead_strip	_tcp_dnat_handler
.subsections_via_symbols
