	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_rx_alloc_page
_iwl_pcie_rx_alloc_page:                ## @iwl_pcie_rx_alloc_page
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r12
	movq	(%rax), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	jle	LBB0_2
## %bb.1:
	movq	___GFP_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_alloc_pages
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_INFO
LBB0_5:
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_CRIT
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_pages failed, order: %d\n"

	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc_pages\n"

	.no_dead_strip	_iwl_pcie_rx_alloc_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_rx_alloc_page
_iwl_pcie_rx_alloc_page:                ; @iwl_pcie_rx_alloc_page
	.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	x20, x1
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x22, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x8, ___GFP_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_COMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x1, #0
	csel	w8, w8, wzr, gt
	orr	w21, w8, w20
	mov	x0, x21
	bl	_alloc_pages
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.1:
	bl	_net_ratelimit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
LBB0_3:
Lloh5:
	adrp	x8, ___GFP_NOWARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___GFP_NOWARN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_6
; %bb.4:
	bl	_net_ratelimit
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_CRIT
LBB0_6:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_pages failed, order: %d\n"

	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc_pages\n"

	.no_dead_strip	_iwl_pcie_rx_alloc_page
.subsections_via_symbols
