	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fill_paging_mem
_iwl_fill_paging_mem:                   ## @iwl_fill_paging_mem
	.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	$40, %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, %r13
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movq	_PAGING_SEPARATOR_SECTION@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, %rsi
	shlq	$4, %rsi
	movl	$1, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rdi)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	addq	$16, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	decl	%eax
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_FW
	movq	8(%r15), %rax
	movslq	%ebx, %r14
	shlq	$4, %r14
	movl	8(%rax,%r14), %ecx
	movq	16(%r13), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r13, %rdi
	callq	_iwl_free_fw_paging
LBB0_21:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%rax), %edi
	callq	_page_address
	movq	8(%r15), %rcx
	movl	8(%rcx,%r14), %edx
	movl	12(%rcx,%r14), %esi
	movl	%eax, %edi
	callq	_memcpy
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rax), %edi
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
	movq	16(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_FW
	movl	(%r13), %eax
	testl	%eax, %eax
	movl	$0, %r12d
	jle	LBB0_21
## %bb.12:
	movq	%r15, %rcx
	incl	%ebx
	movslq	%ebx, %rsi
	xorl	%edi, %edi
	movl	$1, %edx
	movl	$12, %r15d
	shlq	$4, %rsi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14,%r15), %ebx
	cmpl	%ecx, %ebx
	jg	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r14,%r15), %edi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_page_address
	movq	8(%r13), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rcx,%rdx), %esi
	addl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_memcpy
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movl	(%r14,%r15), %edx
	movl	4(%r14,%r15), %esi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_FW
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	(%r14,%r15), %edi
	leaq	1(%rbx), %rdx
	movslq	(%r13), %rax
	addq	$12, %r15
	cmpq	%rax, %rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	movq	%r13, %rbx
	movq	%rcx, %r13
	movq	8(%rcx), %rcx
	movl	8(%rcx,%rsi), %ecx
	subl	%edi, %ecx
	movl	%eax, %eax
	cmpq	%rax, %rdx
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_FW_PAGING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	4(%rbx), %eax
	cmpl	%eax, %ecx
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, %ebx
	jmp	LBB0_16
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	%rbx, %r13
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGING_SEPARATOR_SECTION,8,3   ## @PAGING_SEPARATOR_SECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Paging: Missing CSS and/or paging sections\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Paging: load paging CSS to FW, sec = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"CSS block is larger than paging size\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
L_.str.3:                               ## @.str.3
	.asciz	"Paging: copied %d CSS bytes to first block\n"

	.comm	_FW_PAGING_SIZE,4,2             ## @FW_PAGING_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Paging: last block contains more data than expected %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Paging: not enough data in other in block %d (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Paging: copied %d paging bytes to block %d\n"

	.no_dead_strip	_iwl_fill_paging_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fill_paging_mem
_iwl_fill_paging_mem:                   ; @iwl_fill_paging_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20, #8]
Lloh0:
	adrp	x11, _PAGING_SEPARATOR_SECTION@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PAGING_SEPARATOR_SECTION@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x21, x8
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
	add	w21, w9, #1
LBB0_7:
	sub	w8, w8, #1
	cmp	w21, w8
	b.ge	LBB0_10
; %bb.8:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_DEBUG_FW
	ldr	x8, [x20, #8]
	add	x8, x8, w21, sxtw #4
	ldr	w9, [x8, #8]
	ldr	x8, [x19, #16]
	ldr	w10, [x8]
	cmp	w9, w10
	b.le	LBB0_13
; %bb.9:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_IWL_ERR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_iwl_free_fw_paging
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	sxtw	x21, w21
	ldr	w0, [x8, #8]
	bl	_page_address
	ldr	x8, [x20, #8]
	add	x8, x8, x21, lsl #4
	ldp	w2, w1, [x8, #8]
	bl	_memcpy
	ldp	x8, x9, [x19, #8]
	ldr	w0, [x8]
	ldp	w2, w1, [x9]
Lloh12:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_device
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_FW
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.14:
	mov	x24, #0
	mov	w25, #0
	add	x26, x21, #1
	mov	w27, #1
Lloh17:
	adrp	x21, l_.str.6@PAGE
Lloh18:
	add	x21, x21, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w22, [x28, #12]
	cmp	w22, w10
	b.gt	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x9, x24
	ldr	w0, [x23, #20]
	bl	_page_address
	ldr	x8, [x20, #8]
	add	x8, x8, x26, lsl #4
	ldr	w8, [x8, #12]
	add	w1, w8, w25
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x23, #16]
	ldr	w2, [x28, #12]
Lloh19:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_device
	str	x27, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_IWL_DEBUG_FW
	ldr	w8, [x28, #12]
	add	w25, w8, w25
	add	x9, x27, #1
	ldrsw	x8, [x19]
	add	x24, x24, #12
	cmp	x27, x8
	mov	x27, x9
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #8]
	add	x10, x10, x26, lsl #4
	ldr	w10, [x10, #8]
	sub	w10, w10, w25
	add	x28, x9, x24
	cmp	x27, w8, uxtw
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x19, #4]
Lloh22:
	adrp	x11, _FW_PAGING_SIZE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _FW_PAGING_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	mul	w8, w11, w8
	mov	x22, x10
	cmp	w10, w8
	b.eq	LBB0_16
; %bb.19:
	str	x10, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_20:
	mov	w20, #0
	b	LBB0_12
LBB0_21:
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	stp	x27, x10, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGING_SEPARATOR_SECTION,8,3   ; @PAGING_SEPARATOR_SECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Paging: Missing CSS and/or paging sections\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Paging: load paging CSS to FW, sec = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"CSS block is larger than paging size\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
l_.str.3:                               ; @.str.3
	.asciz	"Paging: copied %d CSS bytes to first block\n"

	.comm	_FW_PAGING_SIZE,4,2             ; @FW_PAGING_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Paging: last block contains more data than expected %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Paging: not enough data in other in block %d (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Paging: copied %d paging bytes to block %d\n"

	.no_dead_strip	_iwl_fill_paging_mem
.subsections_via_symbols
