	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_alloc_rx_buffers
_pch_gbe_alloc_rx_buffers:              ## @pch_gbe_alloc_rx_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_9
## %bb.1:
	movq	24(%rbx), %r14
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r13
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_netdev_alloc_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r12d
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_skb_reserve
	shlq	$5, %r12
	movq	%r14, 16(%r13,%r12)
	movl	4(%r13,%r12), %edx
	movl	24(%r13,%r12), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_map_single
	leaq	(%r12,%r13), %rcx
	addq	$8, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r13,%r12)
	movq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	leaq	(%r12,%r13), %r14
	addq	$4, %r14
	movl	$1, (%r13,%r12)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %rax
	movq	%rax, 16(%rsp)
	movups	(%r12), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r15d, %edi
	callq	_PCH_GBE_RX_DESC
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	_DSC_INIT16@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	movl	(%r14), %r8d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_netdev_dbg
	incl	%r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	xorps	%xmm0, %xmm0
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	incl	4(%rbx)
LBB0_9:
	xorl	%edi, %edi
	cmpl	%r15d, (%r12)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	%r15d, (%r12)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	4(%r12), %r15d
LBB0_12:
	shll	$4, %r15d
	addl	$-16, %r15d
	addq	8(%r12), %r15
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DSC_INIT16,4,2                 ## @DSC_INIT16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i = %d  buffer_info->dma = 0x08%llx  buffer_info->length = 0x%x\n"

	.no_dead_strip	_pch_gbe_alloc_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_alloc_rx_buffers
_pch_gbe_alloc_rx_buffers:              ; @pch_gbe_alloc_rx_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	ldr	w21, [x1]
	cbz	w2, LBB0_7
; %bb.1:
	mov	x22, x2
	ldr	x23, [x19, #24]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w9, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
	str	x8, [sp]                        ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #16]
	mov	x0, x23
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_netdev_alloc_skb
	mov	x27, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, w21
Lloh3:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_skb_reserve
	add	x28, x26, x25, lsl #5
	str	x27, [x28, #16]
	ldr	w1, [x28, #24]
	mov	x24, x28
	ldr	w2, [x24, #4]!
Lloh6:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x28, #8]!
	ldr	x0, [x19, #8]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w22, w22, #1
	lsl	x8, x25, #5
	mov	w9, #1
	str	w9, [x26, x8]
	ldr	q0, [x20]
	str	q0, [sp, #16]
	ldr	x8, [x20, #16]
	str	x8, [sp, #32]
	add	x0, sp, #16
	mov	x1, x21
	bl	_PCH_GBE_RX_DESC
	ldr	x3, [x28]
	str	x3, [x0, #8]
Lloh9:
	adrp	x8, _DSC_INIT16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSC_INIT16@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w4, [x24]
	mov	x0, x23
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netdev_dbg
	add	w8, w21, #1
	ldr	w9, [x20, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w21, wzr, w21, ne
	cbnz	w22, LBB0_2
	b	LBB0_7
LBB0_5:
	mov	x0, x27
	bl	_dev_kfree_skb
	stp	xzr, xzr, [x28]
LBB0_6:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, w21
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_11
; %bb.8:
	str	w21, [x20]
	cmp	w21, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w21, [x20, #4]
LBB0_10:
	ldr	x8, [x20, #8]
	lsl	w9, w21, #4
	sub	w9, w9, #16
	add	x0, x8, x9
	ldr	x1, [x19, #16]
	bl	_iowrite32
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DSC_INIT16,4,2                 ; @DSC_INIT16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i = %d  buffer_info->dma = 0x08%llx  buffer_info->length = 0x%x\n"

	.no_dead_strip	_pch_gbe_alloc_rx_buffers
.subsections_via_symbols
