	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function page_to_skb
_page_to_skb:                           ## @page_to_skb
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -80(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_page_address
	movq	%rax, %r12
	movq	_GOOD_COPY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_napi_alloc_skb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_2:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r13d
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	addq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_vnet_hdr
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ebx
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_5:
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	subl	%ebx, %r15d
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	addl	$4, %r14d
	addq	$4, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_skb_tailroom
	movl	%r15d, %ebx
	cmpl	%eax, %r15d
	jbe	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_skb_tailroom
	movl	%eax, %ebx
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_skb_put_data
	movl	%r15d, %r12d
	subl	%ebx, %r12d
	addl	%ebx, %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.8:
	cmpl	%ebx, %r15d
	jne	LBB0_12
## %bb.9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_page
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_10:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	imull	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %r12d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_net_dbg_ratelimited
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_1
LBB0_12:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_skb_add_rx_frag
	jmp	LBB0_2
LBB0_13:
	xorl	%edi, %edi
	cmpl	(%r13), %r14d
	setae	%dil
	callq	_BUG_ON
	cmpl	%ebx, %r15d
	jne	LBB0_15
## %bb.14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_15:
	movl	(%r13), %edi
	subl	%r14d, %edi
	movl	%r12d, %esi
	callq	_min
	movl	%eax, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_skb_add_rx_frag
	movq	(%rbx), %rbx
	subl	%r15d, %r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_19
## %bb.16:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_min
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_skb_add_rx_frag
	movq	(%rbx), %rbx
	subl	%r13d, %r12d
	jne	LBB0_17
## %bb.18:
	movq	%r14, %r13
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.20:
	movq	%rbx, %rsi
	callq	_give_pages
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GOOD_COPY_LEN,4,2              ## @GOOD_COPY_LEN
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: too much data\n"

	.no_dead_strip	_page_to_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function page_to_skb
_page_to_skb:                           ; @page_to_skb
	.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
	mov	x26, x6
	mov	x22, x5
	mov	x25, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x2
	bl	_page_address
	mov	x27, x0
Lloh0:
	adrp	x8, _GOOD_COPY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GOOD_COPY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_napi_alloc_skb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	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
LBB0_3:
	add	x27, x27, w24, uxtw
	mov	x0, x19
	bl	_skb_vnet_hdr
	ldr	w28, [x23]
	cbz	w26, LBB0_5
; %bb.4:
	mov	x1, x27
	mov	x2, x28
	bl	_memcpy
LBB0_5:
	sub	w28, w25, w28
	add	w25, w24, #4
	add	x24, x27, #4
	mov	x0, x19
	bl	_skb_tailroom
	mov	x26, x28
	cmp	w28, w0
	b.ls	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_skb_tailroom
	mov	x26, x0
LBB0_7:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x26
	bl	_skb_put_data
	sub	w24, w28, w26
	add	w25, w25, w26
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_10
; %bb.8:
	cmp	w28, w26
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x20
	bl	_put_page
	b	LBB0_2
LBB0_10:
Lloh3:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x27]
	mul	w8, w9, w8
	cmp	w24, w8
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_net_dbg_ratelimited
	mov	x0, x19
	bl	_dev_kfree_skb
	b	LBB0_1
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x25
	mov	x4, x24
	mov	x5, x22
	bl	_skb_add_rx_frag
	b	LBB0_2
LBB0_13:
	ldr	w8, [x27]
	cmp	w25, w8
	cset	w0, hs
	bl	_BUG_ON
	cmp	w28, w26
	b.eq	LBB0_16
; %bb.14:
	ldr	w8, [x27]
	sub	w0, w8, w25
	mov	x1, x24
	bl	_min
	mov	x23, x0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w1, [x0]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x25
	mov	x4, x23
	mov	x5, x22
	bl	_skb_add_rx_frag
	ldr	x20, [x20]
	subs	w23, w24, w23
	b.eq	LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	mov	x1, x23
	bl	_min
	mov	x24, x0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w1, [x0]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x24
	mov	x5, x22
	bl	_skb_add_rx_frag
	ldr	x20, [x20]
	subs	w23, w23, w24
	b.ne	LBB0_15
LBB0_16:
	cbz	x20, LBB0_2
; %bb.17:
	mov	x0, x21
	mov	x1, x20
	bl	_give_pages
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GOOD_COPY_LEN,4,2              ; @GOOD_COPY_LEN
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: too much data\n"

	.no_dead_strip	_page_to_skb
.subsections_via_symbols
