	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_alloc_fw_monitor_block
_iwl_pcie_alloc_fw_monitor_block:       ## @iwl_pcie_alloc_fw_monitor_block
	.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	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	xorl	%r13d, %r13d
	movq	%rsi, %rbx
	movl	$0, %r12d
	cmpq	%rdx, %rsi
	jl	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%r15, %rbx
	leaq	-44(%rbp), %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_BIT
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rbx), %rax
	cmpq	%r14, %rbx
	movq	%rax, %rbx
	jg	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_3:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_IWL_INFO
LBB0_6:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	cmpq	%r15, %rbx
	je	LBB0_10
## %bb.9:
	addq	$-10, %rbx
	movq	%rbx, %rdi
	callq	_BIT
	movq	%rax, %rbx
	addq	$-10, %r15
	movq	%r15, %rdi
	callq	_BIT
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_IWL_ERR
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	leaq	(%rax,%rax,2), %rdx
	movq	%r13, 16(%rcx,%rdx,8)
	movl	-44(%rbp), %esi
	movl	%esi, 8(%rcx,%rdx,8)
	movq	%r12, (%rcx,%rdx,8)
	incq	%rax
	movq	%rax, (%rdi)
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	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocated 0x%08x bytes for firmware monitor.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sorry - debug buffer is only %luK while you requested %luK\n"

	.no_dead_strip	_iwl_pcie_alloc_fw_monitor_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_alloc_fw_monitor_block
_iwl_pcie_alloc_fw_monitor_block:       ; @iwl_pcie_alloc_fw_monitor_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	cmp	x1, x2
	b.ge	LBB0_2
; %bb.1:
	mov	x22, #0
	mov	x20, #0
	mov	x23, x21
	b	LBB0_7
LBB0_2:
	mov	x24, x2
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x26, ___GFP_NOWARN@GOTPAGE
Lloh3:
	ldr	x26, [x26, ___GFP_NOWARN@GOTPAGEOFF]
	mov	x23, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT
	mov	x20, x0
	ldr	w0, [x19, #16]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w3, w9, w8
	add	x2, sp, #12
	mov	x1, x20
	bl	_dma_alloc_coherent
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x23, #1
	cmp	x23, x24
	mov	x23, x8
	b.gt	LBB0_3
; %bb.5:
	mov	x22, #0
	mov	x23, x8
	b	LBB0_7
LBB0_6:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_INFO
LBB0_7:
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_11
; %bb.8:
	cmp	x23, x21
	b.eq	LBB0_10
; %bb.9:
	sub	x0, x23, #10
	bl	_BIT
	mov	x23, x0
	sub	x0, x21, #10
	bl	_BIT
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_IWL_ERR
LBB0_10:
	ldp	x9, x8, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	str	x22, [x8, #16]
	ldr	w10, [sp, #12]
	str	w10, [x8, #8]
	str	x20, [x8]
	add	x8, x9, #1
	str	x8, [x19]
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocated 0x%08x bytes for firmware monitor.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sorry - debug buffer is only %luK while you requested %luK\n"

	.no_dead_strip	_iwl_pcie_alloc_fw_monitor_block
.subsections_via_symbols
