	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_rx_alloc              ## -- Begin function iwl_pcie_rx_alloc
	.p2align	4, 0x90
_iwl_pcie_rx_alloc:                     ## @iwl_pcie_rx_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	24(%r14), %rdi
	callq	_spin_lock_init
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	shlq	$2, %rsi
	movq	%r14, %rbx
	addq	$8, %rbx
	movl	(%r15), %ecx
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movl	%r15d, (%rsi,%rbx)
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_iwl_pcie_alloc_rxq_dma
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	addq	$4, %rbx
	cmpq	%r15, (%r12)
	ja	LBB0_8
LBB0_13:
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %r13d
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	shlq	$2, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_16:
	movq	(%r14), %rdi
	callq	_kfree
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ## @IWL_DEVICE_FAMILY_22560
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_rx_alloc              ; -- Begin function iwl_pcie_rx_alloc
	.p2align	2
_iwl_pcie_rx_alloc:                     ; @iwl_pcie_rx_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x19, x0
	ldr	x0, [x0]
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x20]
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.5:
	add	x0, x19, #24
	bl	_spin_lock_init
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	lsl	x1, x8, #2
	add	x21, x19, #8
	ldr	w3, [x22]
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x23, #0
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x8, x23
	str	w24, [x1]
	mov	x0, x20
	bl	_iwl_pcie_alloc_rxq_dma
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20]
	add	x23, x23, #4
	cmp	x8, x24
	b.hi	LBB0_8
LBB0_10:
	mov	w22, #0
	b	LBB0_3
LBB0_11:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_13:
	mov	x22, x0
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_15
; %bb.14:
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	lsl	x1, x8, #2
	ldr	x3, [x21]
	bl	_dma_free_coherent
	stp	xzr, xzr, [x21]
LBB0_15:
	ldr	x0, [x19]
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ; @IWL_DEVICE_FAMILY_22560
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
