	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_manip_pkt
_udp_manip_pkt:                         ## @udp_manip_pkt
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	%esi, %r13d
	movl	(%rax,%r13), %r12d
	leal	(%rbx,%r12,4), %esi
	addl	$16, %esi
	callq	_skb_make_writable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leal	(%rbx,%r12,4), %eax
	movl	%eax, %ebx
	movq	8(%r14), %rax
	addq	%rax, %r13
	addq	%rax, %rbx
	movq	_IP_NAT_MANIP_SRC@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.3:
	addq	$8, %r13
	leaq	12(%r15), %rax
	addq	$8, %r15
	leaq	12(%rbx), %r12
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	addq	$4, %r13
	leaq	4(%r15), %rax
	leaq	8(%rbx), %r12
LBB0_5:
	movl	(%r15), %r15d
	movl	(%rax), %ecx
	movl	(%r13), %edx
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %r8d
	callq	_inet_proto_csum_replace4
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_inet_proto_csum_replace2
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_CSUM_MANGLED_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_9:
	movl	%r15d, (%r12)
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_NAT_MANIP_SRC,4,2           ## @IP_NAT_MANIP_SRC
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_CSUM_MANGLED_0,8,3             ## @CSUM_MANGLED_0
	.no_dead_strip	_udp_manip_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_manip_pkt
_udp_manip_pkt:                         ; @udp_manip_pkt
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
	mov	w23, w1
	ldr	w8, [x8, x23]
	add	w20, w1, w8, lsl #2
	add	w1, w20, #16
	bl	_skb_make_writable
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	add	x9, x8, x23
Lloh0:
	adrp	x10, _IP_NAT_MANIP_SRC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IP_NAT_MANIP_SRC@GOTPAGEOFF]
	add	x20, x8, w20, uxtw
Lloh2:
	ldr	w8, [x10]
	cmp	w8, w22
	add	x8, x9, #4
	add	x10, x21, #4
	add	x11, x20, #8
	add	x9, x9, #8
	add	x12, x21, #12
	add	x13, x21, #8
	add	x14, x20, #12
	csel	x8, x8, x9, ne
	csel	x9, x10, x12, ne
	csel	x22, x11, x14, ne
	csel	x10, x21, x13, ne
	ldr	w21, [x10]
	ldr	w3, [x9]
	ldr	w2, [x8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_inet_proto_csum_replace4
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	mov	w4, #0
	bl	_inet_proto_csum_replace2
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _CSUM_MANGLED_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSUM_MANGLED_0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_5:
	str	w21, [x22]
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_NAT_MANIP_SRC,4,2           ; @IP_NAT_MANIP_SRC
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_CSUM_MANGLED_0,8,3             ; @CSUM_MANGLED_0
	.no_dead_strip	_udp_manip_pkt
.subsections_via_symbols
