	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_send_paging_cmd
_iwl_send_paging_cmd:                   ## @iwl_send_paging_cmd
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movl	4(%rdi), %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movq	_BLOCK_2_EXP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	_PAGING_CMD_IS_SECURED@GOTPCREL(%rip), %rcx
	movq	_PAGING_CMD_IS_ENABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, -52(%rbp)
	movl	(%r14), %edi
	movq	_PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rax
	movl	%eax, -40(%rbp)
	movl	$24, -36(%rbp)
	movq	_FW_PAGING_BLOCK_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IWL_ALWAYS_LONG_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_iwl_cmd_id
	movl	%eax, -32(%rbp)
	cmpl	$0, 4(%r14)
	js	LBB0_3
## %bb.1:
	movq	$-1, %rbx
	movq	_PAGE_2_EXP_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	4(%rax,%rbx,4), %edi
	movzbl	(%r15), %ecx
	sarl	%cl, %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	movslq	4(%r14), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	8(%r14), %edi
	leaq	-40(%rbp), %rsi
	callq	_iwl_trans_send_cmd
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_2_EXP_SIZE,4,2           ## @BLOCK_2_EXP_SIZE
	.comm	_PAGING_CMD_IS_SECURED,4,2      ## @PAGING_CMD_IS_SECURED
	.comm	_PAGING_CMD_IS_ENABLED,4,2      ## @PAGING_CMD_IS_ENABLED
	.comm	_PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS,4,2 ## @PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS
	.comm	_FW_PAGING_BLOCK_CMD,4,2        ## @FW_PAGING_BLOCK_CMD
	.comm	_IWL_ALWAYS_LONG_GROUP,4,2      ## @IWL_ALWAYS_LONG_GROUP
	.comm	_PAGE_2_EXP_SIZE,4,2            ## @PAGE_2_EXP_SIZE
	.no_dead_strip	_iwl_send_paging_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_send_paging_cmd
_iwl_send_paging_cmd:                   ; @iwl_send_paging_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	w0, [x0, #4]
	bl	_cpu_to_le32
	str	w0, [sp, #32]
Lloh0:
	adrp	x8, _BLOCK_2_EXP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLOCK_2_EXP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
Lloh3:
	adrp	x8, _PAGING_CMD_IS_SECURED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGING_CMD_IS_SECURED@GOTPAGEOFF]
	str	w0, [sp, #36]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PAGING_CMD_IS_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGING_CMD_IS_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
Lloh9:
	adrp	x10, _PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [sp, #40]
	add	x8, sp, #24
	mov	w9, #24
	stp	w8, w9, [sp, #8]
Lloh12:
	adrp	x8, _FW_PAGING_BLOCK_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_PAGING_BLOCK_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _IWL_ALWAYS_LONG_GROUP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IWL_ALWAYS_LONG_GROUP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_iwl_cmd_id
	str	w0, [sp, #16]
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x20, #0
Lloh18:
	adrp	x21, _PAGE_2_EXP_SIZE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PAGE_2_EXP_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x22, x20, #2
	ldr	w8, [x8, x22]
	ldr	w9, [x21]
	asr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	str	w0, [x8, x22]
	add	x8, x20, #1
	ldrsw	x9, [x19, #4]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_iwl_trans_send_cmd
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_2_EXP_SIZE,4,2           ; @BLOCK_2_EXP_SIZE
	.comm	_PAGING_CMD_IS_SECURED,4,2      ; @PAGING_CMD_IS_SECURED
	.comm	_PAGING_CMD_IS_ENABLED,4,2      ; @PAGING_CMD_IS_ENABLED
	.comm	_PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS,4,2 ; @PAGING_CMD_NUM_OF_PAGES_IN_LAST_GRP_POS
	.comm	_FW_PAGING_BLOCK_CMD,4,2        ; @FW_PAGING_BLOCK_CMD
	.comm	_IWL_ALWAYS_LONG_GROUP,4,2      ; @IWL_ALWAYS_LONG_GROUP
	.comm	_PAGE_2_EXP_SIZE,4,2            ; @PAGE_2_EXP_SIZE
	.no_dead_strip	_iwl_send_paging_cmd
.subsections_via_symbols
