	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_alloc_slices
_myri10ge_alloc_slices:                 ## @myri10ge_alloc_slices
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx), %rsi
	shlq	$2, %rsi
	movq	%rax, %rdx
	addq	$40, %rdx
	movl	(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_alloc_coherent
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r13), %rdx
	addq	$24, %rdx
	movl	(%r15), %ecx
	movl	$4, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r13), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 8(%r13,%rbx)
	movl	8(%r14), %edi
	movl	%edi, 4(%r13,%rbx)
	movq	_myri10ge_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_myri10ge_napi_weight@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_netif_napi_add
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rcx
	leaq	48(%rbx), %r14
	movq	16(%rcx), %r13
	movslq	4(%rcx), %rsi
	shlq	$2, %rsi
	leaq	(%rbx,%r13), %rdx
	addq	$88, %rdx
	movl	(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_alloc_coherent
	movq	%rax, 80(%r13,%rbx)
	movq	%r14, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_myri10ge_free_slices
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_myri10ge_poll,4,2              ## @myri10ge_poll
	.comm	_myri10ge_napi_weight,4,2       ## @myri10ge_napi_weight
	.no_dead_strip	_myri10ge_alloc_slices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_alloc_slices
_myri10ge_alloc_slices:                 ; @myri10ge_alloc_slices
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x19, x0
	ldr	x20, [x0, #24]
	ldrsw	x8, [x0]
	add	x8, x8, x8, lsl #1
	lsl	x0, x8, #4
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, x0
	ldrsw	x8, [x19, #4]
	lsl	x1, x8, #2
	add	x2, x0, #40
	ldr	w3, [x22]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x21, #32]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x26, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _myri10ge_poll@GOTPAGE
Lloh3:
	ldr	x24, [x24, _myri10ge_poll@GOTPAGEOFF]
Lloh4:
	adrp	x25, _myri10ge_napi_weight@GOTPAGE
Lloh5:
	ldr	x25, [x25, _myri10ge_napi_weight@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, x26
	add	x2, x21, #24
	ldr	w3, [x22]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x21, #16]
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [x21, #8]
	ldr	w0, [x19, #8]
	str	w0, [x21, #4]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x1, x21
	bl	_netif_napi_add
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x26, #48
	ldr	x21, [x19, #16]
	ldrsw	x8, [x19, #4]
	lsl	x1, x8, #2
	add	x26, x21, x26
	add	x2, x26, #88
	ldr	w3, [x22]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x26, #80]
	mov	x26, x27
	cbnz	x0, LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_myri10ge_free_slices
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_myri10ge_poll,4,2              ; @myri10ge_poll
	.comm	_myri10ge_napi_weight,4,2       ; @myri10ge_napi_weight
	.no_dead_strip	_myri10ge_alloc_slices
.subsections_via_symbols
