	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xge_refill_buffers
_xge_refill_buffers:                    ## @xge_refill_buffers
	.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	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	8(%rax), %r13
	movq	(%r13), %r12
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.1:
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_XGENE_ENET_NUM_DESC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_XGENE_ENET_STD_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_netdev_alloc_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r15
	shlq	$4, %r15
	movq	%r14, 8(%rax,%r15)
	movl	%ebx, (%rax,%r15)
	movq	_NEXT_DESC_ADDRH@GOTPCREL(%rip), %rax
	movl	%ebx, %r13d
	movl	(%rax), %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx,%r15), %rdi
	callq	_le64_to_cpu
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_GET_BITS
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NEXT_DESC_ADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rbx,%r15), %rdi
	callq	_le64_to_cpu
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_GET_BITS
	movq	_NEXT_DESC_ADDRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_SET_BITS
	movl	%eax, %ebx
	movq	_NEXT_DESC_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_SET_BITS
	orl	%eax, %ebx
	movq	_PKT_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_upper_32_bits
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SET_BITS
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14,%r15)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	_PKT_ADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_SET_BITS
	movl	%eax, %ebx
	movq	_E@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SET_BITS
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	%rax, (%r14,%r15)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	incq	%r12
	andq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	decl	%r15d
	jne	LBB0_2
LBB0_8:
	movq	%r12, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_ENET_NUM_DESC,8,3        ## @XGENE_ENET_NUM_DESC
	.comm	_XGENE_ENET_STD_MTU,4,2         ## @XGENE_ENET_STD_MTU
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA mapping error\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NEXT_DESC_ADDRH,4,2            ## @NEXT_DESC_ADDRH
	.comm	_NEXT_DESC_ADDRL,4,2            ## @NEXT_DESC_ADDRL
	.comm	_PKT_ADDRH,4,2                  ## @PKT_ADDRH
	.comm	_PKT_ADDRL,4,2                  ## @PKT_ADDRL
	.comm	_E,4,2                          ## @E
	.no_dead_strip	_xge_refill_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xge_refill_buffers
_xge_refill_buffers:                    ; @xge_refill_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_netdev_priv
	ldr	x25, [x0, #8]
	ldr	x26, [x25]
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _XGENE_ENET_NUM_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGENE_ENET_NUM_DESC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x21, [x0]
Lloh3:
	adrp	x27, _NEXT_DESC_ADDRH@GOTPAGE
Lloh4:
	ldr	x27, [x27, _NEXT_DESC_ADDRH@GOTPAGEOFF]
Lloh5:
	adrp	x19, _NEXT_DESC_ADDRL@GOTPAGE
Lloh6:
	ldr	x19, [x19, _NEXT_DESC_ADDRL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x25, #16]
Lloh7:
	adrp	x8, _XGENE_ENET_STD_MTU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XGENE_ENET_STD_MTU@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_netdev_alloc_skb
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_dma_map_single
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25, #8]
	lsl	x9, x26, #4
	add	x8, x8, x9
	str	x23, [x8, #8]
	str	w22, [x8]
	ldr	w23, [x27]
	add	x28, x24, x9
	ldr	x0, [x28, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_GET_BITS
	mov	x23, x0
	ldr	w24, [x19]
	ldr	x0, [x28, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x24
	bl	_GET_BITS
	mov	x1, x0
	ldr	w0, [x19]
	bl	_SET_BITS
	mov	x24, x0
	ldr	w0, [x27]
	mov	x1, x23
	bl	_SET_BITS
	orr	w24, w0, w24
Lloh13:
	adrp	x8, _PKT_ADDRH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PKT_ADDRH@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x23
	bl	_SET_BITS
	orr	w0, w24, w0
	bl	_cpu_to_le64
	str	x0, [x28, #8]
	bl	_dma_wmb
Lloh16:
	adrp	x8, _PKT_ADDRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKT_ADDRL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_SET_BITS
	mov	x22, x0
Lloh19:
	adrp	x8, _E@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SET_BITS
	orr	w0, w0, w22
	bl	_cpu_to_le64
	str	x0, [x28]
	add	x8, x26, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	and	x26, x8, x9
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	str	x26, [x25]
	b	LBB0_9
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netdev_err
	mov	x0, x23
	bl	_dev_kfree_skb_any
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_ENET_NUM_DESC,8,3        ; @XGENE_ENET_NUM_DESC
	.comm	_XGENE_ENET_STD_MTU,4,2         ; @XGENE_ENET_STD_MTU
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA mapping error\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NEXT_DESC_ADDRH,4,2            ; @NEXT_DESC_ADDRH
	.comm	_NEXT_DESC_ADDRL,4,2            ; @NEXT_DESC_ADDRL
	.comm	_PKT_ADDRH,4,2                  ; @PKT_ADDRH
	.comm	_PKT_ADDRL,4,2                  ; @PKT_ADDRL
	.comm	_E,4,2                          ; @E
	.no_dead_strip	_xge_refill_buffers
.subsections_via_symbols
