	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_make_local_copy
_pkt_make_local_copy:                   ## @pkt_make_local_copy
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	addq	$8, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	%r13d, (%rbx)
	setne	%dil
	callq	_BUG_ON
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rcx), %r13d
	xorl	%eax, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	setge	%al
	movl	$0, %ecx
	cmovgel	%ecx, %r13d
	addl	%r14d, %eax
	incq	%r12
	movslq	(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx), %rdi
	movq	8(%r15), %rcx
	movl	%eax, %r14d
	cmpq	(%rcx,%r14,8), %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmap_atomic
	movslq	(%rbx), %r15
	addq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_page_address
	movslq	%r13d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %rdi
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rsi
	callq	_memcpy
	movq	_KM_USER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_kunmap_atomic
	movq	_CD_FRAMESIZE@GOTPCREL(%rip), %rcx
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rax, -8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KM_USER0,4,2                   ## @KM_USER0
	.comm	_CD_FRAMESIZE,8,3               ## @CD_FRAMESIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_pkt_make_local_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_make_local_copy
_pkt_make_local_copy:                   ; @pkt_make_local_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	w8, #0
	mov	w23, #0
	add	x22, x1, #8
Lloh0:
	adrp	x24, _CD_FRAMESIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CD_FRAMESIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _KM_USER0@GOTPAGE
Lloh5:
	ldr	x26, [x26, _KM_USER0@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	cset	w0, ne
	bl	_BUG_ON
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	add	w8, w23, w8
	cmp	w8, w9
	csel	w23, w8, wzr, lt
	cinc	w8, w27, ge
	add	x21, x21, #1
	ldrsw	x9, [x19]
	add	x22, x22, #16
	cmp	x21, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x22, #-8]
	ldr	x9, [x19, #8]
	mov	w27, w8
	ldr	x8, [x9, w8, uxtw #3]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	bl	_kmap_atomic
	ldrsw	x8, [x22]
	add	x20, x0, x8
	ldr	x8, [x19, #8]
	lsl	x28, x27, #3
	ldr	x0, [x8, x28]
	bl	_page_address
	add	x0, x0, w23, sxtw
	ldr	x2, [x24]
	mov	x1, x20
	bl	_memcpy
	ldr	w1, [x26]
	mov	x0, x20
	bl	_kunmap_atomic
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x28]
	stur	x8, [x22, #-8]
	str	w23, [x22]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KM_USER0,4,2                   ; @KM_USER0
	.comm	_CD_FRAMESIZE,8,3               ; @CD_FRAMESIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_pkt_make_local_copy
.subsections_via_symbols
