	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_free_fw_paging             ## -- Begin function iwl_free_fw_paging
	.p2align	4, 0x90
_iwl_free_fw_paging:                    ## @iwl_free_fw_paging
	.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
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_NUM_OF_FW_PAGING_BLOCKS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.2:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	8(%r12,%r15), %edx
	movl	12(%r12,%r15), %esi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	(%r12,%r15), %r13
	movl	8(%r12,%r15), %edi
	callq	_get_order
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___free_pages
	movq	$0, (%r12,%r15)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_FW
LBB0_6:
	incq	%rbx
	movq	_NUM_OF_FW_PAGING_BLOCKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	(%r14), %r12
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.7:
	movq	16(%r12,%r15), %rax
	addq	$16, %r15
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_4
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_OF_FW_PAGING_BLOCKS,4,2    ## @NUM_OF_FW_PAGING_BLOCKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Paging: block %d already freed, continue to next page\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_free_fw_paging             ; -- Begin function iwl_free_fw_paging
	.p2align	2
_iwl_free_fw_paging:                    ; @iwl_free_fw_paging
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
Lloh0:
	adrp	x23, _NUM_OF_FW_PAGING_BLOCKS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_OF_FW_PAGING_BLOCKS@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x20, #0
Lloh2:
	adrp	x25, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	cbz	x8, LBB0_4
LBB0_3:
	add	x26, x0, x24
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [x26, #8]
	ldr	w3, [x25]
	bl	_dma_unmap_page
	ldr	x22, [x26]
	ldr	w0, [x26, #8]
	bl	_get_order
	mov	x1, x0
	mov	x0, x22
	bl	___free_pages
	str	xzr, [x26]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_IWL_DEBUG_FW
LBB0_5:
	add	x20, x20, #1
	ldrsw	x8, [x23]
	ldr	x0, [x19]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.6:
	add	x8, x0, x24
	ldr	x8, [x8, #16]
	add	x24, x24, #16
	cbnz	x8, LBB0_3
	b	LBB0_4
LBB0_7:
	mov	w1, #0
	mov	w2, #8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_OF_FW_PAGING_BLOCKS,4,2    ; @NUM_OF_FW_PAGING_BLOCKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Paging: block %d already freed, continue to next page\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
.subsections_via_symbols
