	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_alloc_ctrlq_rq_ring
_ice_alloc_ctrlq_rq_ring:               ## @ice_alloc_ctrlq_rq_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movslq	(%rsi), %rbx
	shlq	$2, %rbx
	callq	_ice_hw_to_dev
	leaq	20(%r14), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rsi
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_dmam_alloc_coherent
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.no_dead_strip	_ice_alloc_ctrlq_rq_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_alloc_ctrlq_rq_ring
_ice_alloc_ctrlq_rq_ring:               ; @ice_alloc_ctrlq_rq_ring
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldrsw	x8, [x1]
	lsl	x20, x8, #2
	bl	_ice_hw_to_dev
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	add	x2, x19, #20
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, x20
	bl	_dmam_alloc_coherent
	str	w0, [x19, #16]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.no_dead_strip	_ice_alloc_ctrlq_rq_ring
.subsections_via_symbols
