	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_setup_rx_resources     ## -- Begin function pch_gbe_setup_rx_resources
	.p2align	4, 0x90
_pch_gbe_setup_rx_resources:            ## @pch_gbe_setup_rx_resources
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movl	(%rsi), %edi
	shll	$2, %edi
	callq	_vzalloc
	movl	%eax, 36(%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%r15), %esi
	shll	$2, %esi
	movl	%esi, 4(%r15)
	leaq	24(%r15), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dma_alloc_coherent
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%r15), %edx
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	movq	_DSC_INIT16@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	%rax, 32(%rsp)
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%ebx, %edi
	callq	_PCH_GBE_RX_DESC
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_8
## %bb.9:
	movq	8(%r15), %r8
	movq	16(%r15), %rcx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	36(%r15), %edi
	callq	_vfree
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
LBB0_10:
	movl	32(%r15), %esi
	movq	24(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_11:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for the receive descriptor ring\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DSC_INIT16,4,2                 ## @DSC_INIT16
L_.str.1:                               ## @.str.1
	.asciz	"rx_ring->desc = 0x%p  rx_ring->dma = 0x%08llx next_to_clean = 0x%08x  next_to_use = 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_setup_rx_resources     ; -- Begin function pch_gbe_setup_rx_resources
	.p2align	2
_pch_gbe_setup_rx_resources:            ; @pch_gbe_setup_rx_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w8, [x1]
	lsl	w0, w8, #2
	bl	_vzalloc
	str	w0, [x19, #36]
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	lsl	w1, w8, #2
	str	w1, [x19, #4]
	add	x2, x19, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	w0, [x19, #32]
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w2, [x19, #4]
	mov	w1, #0
	bl	_memset
	stp	xzr, xzr, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w20, #0
Lloh3:
	adrp	x21, _DSC_INIT16@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DSC_INIT16@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	ldr	x8, [x19, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	mov	x1, x20
	bl	_PCH_GBE_RX_DESC
	ldr	w8, [x21]
	str	w8, [x0]
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_4
; %bb.5:
	ldp	x4, x3, [x19, #8]
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19, #36]
	bl	_vfree
LBB0_8:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	x4, #0
	mov	x3, #0
LBB0_10:
	ldr	w1, [x19, #32]
	ldr	x2, [x19, #24]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for the receive descriptor ring\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DSC_INIT16,4,2                 ; @DSC_INIT16
l_.str.1:                               ; @.str.1
	.asciz	"rx_ring->desc = 0x%p  rx_ring->dma = 0x%08llx next_to_clean = 0x%08x  next_to_use = 0x%08x\n"

.subsections_via_symbols
