	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6gmac_rx_fillfifo
_s6gmac_rx_fillfifo:                    ## @s6gmac_rx_fillfifo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	subq	32(%rdi), %rax
	movq	_S6_NUM_RX_SKB@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jae	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_S6_MAX_FRLEN@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rdi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, (%rsi,%rdx,8)
	movl	8(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	(%rcx), %ecx
	movq	(%r15), %r8
	callq	_s6dmac_put_fifo_cache
	movq	16(%rbx), %rax
	subq	32(%rbx), %rax
	cmpq	(%r14), %rax
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_s6dmac_fifo_full
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	addq	$2, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	movq	16(%rbx), %rax
	movq	24(%rbx), %rsi
	leaq	1(%rax), %rdx
	movq	%rdx, 16(%rbx)
	movq	(%r14), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_NUM_RX_SKB,8,3              ## @S6_NUM_RX_SKB
	.comm	_S6_MAX_FRLEN,8,3               ## @S6_MAX_FRLEN
	.no_dead_strip	_s6gmac_rx_fillfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6gmac_rx_fillfifo
_s6gmac_rx_fillfifo:                    ; @s6gmac_rx_fillfifo
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x0, #32]
Lloh0:
	adrp	x20, _S6_NUM_RX_SKB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S6_NUM_RX_SKB@GOTPAGEOFF]
	ldr	x10, [x20]
	sub	x8, x8, x9
	cmp	x8, x10
	b.hs	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _S6_MAX_FRLEN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S6_MAX_FRLEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19, #4]
	bl	_s6dmac_fifo_full
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	add	x0, x8, #2
	bl	_dev_alloc_skb
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x19, #16]
	add	x10, x9, #1
	ldr	x11, [x20]
	udiv	x12, x9, x11
	msub	x9, x12, x11, x9
	str	x0, [x8, x9, lsl #3]
	str	x10, [x19, #16]
	ldp	w1, w8, [x19, #4]
	ldr	w2, [x19]
	ldr	w3, [x0]
	ldr	x4, [x21]
	mov	x0, x8
	bl	_s6dmac_put_fifo_cache
	ldr	x8, [x19, #16]
	ldr	x9, [x19, #32]
	ldr	x10, [x20]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lo	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_NUM_RX_SKB,8,3              ; @S6_NUM_RX_SKB
	.comm	_S6_MAX_FRLEN,8,3               ; @S6_MAX_FRLEN
	.no_dead_strip	_s6gmac_rx_fillfifo
.subsections_via_symbols
