	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vsi_alloc_rings
_ice_vsi_alloc_rings:                   ## @ice_vsi_alloc_rings
	.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	%rdi, %r15
	movq	56(%rdi), %r14
	cmpl	$0, (%rdi)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%rax)
	movq	48(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 40(%rax)
	movl	$0, 4(%rax)
	movq	%r15, 32(%rax)
	movq	(%r14), %rcx
	movq	%rcx, 16(%rax)
	movl	40(%r15), %ecx
	movl	%ecx, 8(%rax)
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	cmpl	$0, 4(%r15)
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, (%rax)
	movq	24(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 40(%rax)
	movl	$0, 4(%rax)
	movq	%r15, 32(%rax)
	movl	20(%r15), %ecx
	movl	%ecx, 24(%rax)
	movq	(%r14), %rcx
	movq	%rcx, 16(%rax)
	movl	16(%r15), %ecx
	movl	%ecx, 8(%rax)
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_ice_vsi_clear_rings
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ice_vsi_alloc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_vsi_alloc_rings
_ice_vsi_alloc_rings:                   ; @ice_vsi_alloc_rings
	.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, x0
	ldr	x20, [x0, #56]
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w22, [x0]
	ldr	x8, [x19, #48]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x0, #40]
	str	x19, [x0, #32]
	ldr	x8, [x20]
	str	x8, [x0, #16]
	ldr	w8, [x19, #40]
	stp	wzr, w8, [x0, #4]
	ldr	x8, [x19, #32]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w22, [x0]
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x0, #40]
	ldp	w9, w8, [x19, #16]
	str	w8, [x0, #24]
	ldr	x8, [x20]
	str	x8, [x0, #16]
	str	x19, [x0, #32]
	stp	wzr, w9, [x0, #4]
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_ice_vsi_clear_rings
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ice_vsi_alloc_rings
.subsections_via_symbols
