	.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_pool
_pch_gbe_alloc_rx_buffers_pool:         ## @pch_gbe_alloc_rx_buffers_pool
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	(%rdi), %ebx
	movl	(%rsi), %r12d
	imull	%ebx, %r12d
	movq	_PCH_GBE_RESERVE_MEMORY@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movq	8(%rdi), %rdi
	leaq	24(%rsi), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	%r12d, 4(%r15)
	movl	(%r15), %r9d
	testq	%r9, %r9
	je	LBB0_9
## %bb.3:
	movq	8(%r15), %rcx
	movq	16(%r15), %r8
	xorl	%edi, %edi
	cmpl	$1, %r9d
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	movl	%r9d, %r11d
	andl	$-2, %r11d
	leal	(%rbx,%rbx), %r10d
	leaq	24(%r8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %edx
	addq	%rcx, %rdx
	movq	%rdx, -16(%rax)
	movl	%ebx, -24(%rax)
	leal	(%rbx,%rdi), %edx
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	movl	%ebx, -8(%rax)
	addq	$2, %rsi
	addl	%r10d, %edi
	addq	$32, %rax
	cmpq	%rsi, %r11
	jne	LBB0_6
LBB0_7:
	xorl	%r14d, %r14d
	testb	$1, %r9b
	je	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	imull	%esi, %eax
	addq	%rax, %rcx
	shlq	$4, %rsi
	movq	%rcx, 8(%r8,%rsi)
	movl	%ebx, (%r8,%rsi)
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_GBE_RESERVE_MEMORY,4,2     ## @PCH_GBE_RESERVE_MEMORY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for the receive pool buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pch_gbe_alloc_rx_buffers_pool
.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_pool
_pch_gbe_alloc_rx_buffers_pool:         ; @pch_gbe_alloc_rx_buffers_pool
	.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
	mov	x19, x1
	ldr	x8, [x0, #8]
	ldr	w21, [x0]
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _PCH_GBE_RESERVE_MEMORY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCH_GBE_RESERVE_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	madd	w20, w9, w21, w10
	add	x2, x1, #24
Lloh3:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x9]
	mov	x0, x8
	mov	x1, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	str	w20, [x19, #4]
	ldr	w9, [x19]
	cbz	w9, LBB0_10
; %bb.2:
	ldp	x8, x10, [x19, #8]
	cmp	w9, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	w12, #0
	and	x11, x9, #0xfffffffc
	add	x13, x10, #32
	lsl	w14, w21, #2
	lsl	w15, w21, #1
	add	w16, w15, w21
	mov	x17, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, w12, uxtw
	stur	x0, [x13, #-24]
	add	w0, w21, w12
	add	x0, x8, x0
	stur	x0, [x13, #-8]
	add	w0, w15, w12
	add	x0, x8, x0
	str	x0, [x13, #8]
	add	w0, w16, w12
	add	x0, x8, x0
	str	x0, [x13, #24]
	stur	w21, [x13, #-32]
	stur	w21, [x13, #-16]
	str	w21, [x13]
	str	w21, [x13, #16]
	add	x13, x13, #64
	add	w12, w12, w14
	subs	x17, x17, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x9
	b.eq	LBB0_10
LBB0_8:
	mul	w12, w21, w11
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
	sub	x9, x9, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x8, w12, uxtw
	str	x11, [x10]
	stur	w21, [x10, #-8]
	add	w12, w12, w21
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_GBE_RESERVE_MEMORY,4,2     ; @PCH_GBE_RESERVE_MEMORY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for the receive pool buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pch_gbe_alloc_rx_buffers_pool
.subsections_via_symbols
