	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rdi), %ebx
	movl	(%rsi), %r15d
	imull	%ebx, %r15d
	movq	_PCH_GBE_RESERVE_MEMORY@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	8(%rdi), %rdi
	leaq	24(%rsi), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, 4(%r14)
	movl	(%r14), %r9d
	testq	%r9, %r9
	je	LBB0_3
## %bb.4:
	movq	16(%r14), %r8
	xorl	%ecx, %ecx
	cmpl	$1, %r9d
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_3:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	movl	%r9d, %r11d
	andl	$-2, %r11d
	leal	(%rbx,%rbx), %r10d
	leaq	24(%r8), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	addq	%rax, %rsi
	movq	%rsi, -16(%rdx)
	movl	%ebx, -24(%rdx)
	leal	(%rbx,%rcx), %esi
	addq	%rax, %rsi
	movq	%rsi, (%rdx)
	movl	%ebx, -8(%rdx)
	addq	$2, %rdi
	addl	%r10d, %ecx
	addq	$32, %rdx
	cmpq	%rdi, %r11
	jne	LBB0_7
LBB0_8:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edx
	imull	%edi, %edx
	addq	%rdx, %rax
	shlq	$4, %rdi
	movq	%rax, 8(%r8,%rdi)
	movl	%ebx, (%r8,%rdi)
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	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
	.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:
	str	w20, [x19, #4]
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	x9, [x19, #16]
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	w11, #0
	and	x10, x8, #0xfffffffc
	add	x12, x9, #32
	lsl	w13, w21, #2
	lsl	w14, w21, #1
	add	w15, w14, w21
	mov	x16, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x17, x0, w11, uxtw
	stur	x17, [x12, #-24]
	add	w17, w21, w11
	add	x17, x0, x17
	stur	x17, [x12, #-8]
	add	w17, w14, w11
	add	x17, x0, x17
	str	x17, [x12, #8]
	add	w17, w15, w11
	add	x17, x0, x17
	str	x17, [x12, #24]
	stur	w21, [x12, #-32]
	stur	w21, [x12, #-16]
	str	w21, [x12]
	str	w21, [x12, #16]
	add	x12, x12, #64
	add	w11, w11, w13
	subs	x16, x16, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	mul	w11, w21, w10
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x0, w11, uxtw
	str	x10, [x9]
	stur	w21, [x9, #-8]
	add	w11, w11, w21
	add	x9, x9, #16
	subs	x8, x8, #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	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_GBE_RESERVE_MEMORY,4,2     ; @PCH_GBE_RESERVE_MEMORY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pch_gbe_alloc_rx_buffers_pool
.subsections_via_symbols
