	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_get_rx_data_size
_sky2_get_rx_data_size:                 ## @sky2_get_rx_data_size
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addq	(%rax), %rdi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	$8, %esi
	callq	_roundup
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	%eax, %r13d
	shrq	%cl, %r13
	movl	%r13d, (%r14)
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpq	%r13, %rax
	setl	%dil
	callq	_BUG_ON
	movl	(%r14), %eax
	movb	(%r12), %cl
	shll	%cl, %eax
	subl	%eax, %ebx
	movq	_copybreak@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovbel	%eax, %ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	cmovbel	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_copybreak,4,2                  ## @copybreak
	.no_dead_strip	_sky2_get_rx_data_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_get_rx_data_size
_sky2_get_rx_data_size:                 ; @sky2_get_rx_data_size
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ETH_HLEN@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x0, x8, x10
	mov	w1, #8
	bl	_roundup
	mov	x20, x0
Lloh5:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w9, w0
	lsr	x23, x9, x8
	str	w23, [x19]
	bl	_ARRAY_SIZE
	cmp	x0, x23
	cset	w0, lt
	bl	_BUG_ON
	ldr	w8, [x19]
	ldr	w9, [x22]
	lsl	w8, w8, w9
Lloh7:
	adrp	x9, _copybreak@GOTPAGE
Lloh8:
	ldr	x9, [x9, _copybreak@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sub	w8, w20, w8
	cmp	w8, w9
	csel	w8, w8, w9, hi
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w0, w8, w9, hi
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_copybreak,4,2                  ; @copybreak
	.no_dead_strip	_sky2_get_rx_data_size
.subsections_via_symbols
