	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_load_cpu_sections_8000
_iwl_pcie_load_cpu_sections_8000:       ## @iwl_pcie_load_cpu_sections_8000
	.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
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	movl	$0, %eax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	$1, %edx
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %eax
	incl	%eax
	movl	$16, -48(%rbp)                  ## 4-byte Folded Spill
LBB0_2:
	movl	%eax, (%rcx)
	cmpl	(%r13), %eax
	jge	LBB0_12
## %bb.3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r15
	movq	%r15, %rbx
	shlq	$4, %rbx
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	cmpl	$0, 8(%rdx,%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdx,%rbx), %rax
	movq	_CPU1_CPU2_SEPARATOR_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGING_SEPARATOR_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_iwl_pcie_load_section
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_FH_UCODE_LOAD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iwl_read_direct32
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_FH_UCODE_LOAD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iwl_write_direct32
	addl	%r14d, %r14d
	incl	%r14d
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
## %bb.10:
	decl	%r15d
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_IWL_DEBUG_FW
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:
	movl	%r15d, (%rcx)
	movq	%r12, %rdi
	callq	_iwl_enable_interrupts
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.13:
	movq	_UREG_UCODE_LOAD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	cmpl	$1, %ebx
	jne	LBB0_16
## %bb.14:
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_iwl_write_prph
	jmp	LBB0_21
LBB0_17:
	movq	_FH_UCODE_LOAD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	cmpl	$1, %ebx
	jne	LBB0_19
## %bb.18:
	movl	$65535, %edx                    ## imm = 0xFFFF
	jmp	LBB0_20
LBB0_16:
	movl	$-1, %edx
	callq	_iwl_write_prph
	jmp	LBB0_21
LBB0_19:
	movl	$-1, %edx
LBB0_20:
	callq	_iwl_write_direct32
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU1_CPU2_SEPARATOR_SECTION,8,3 ## @CPU1_CPU2_SEPARATOR_SECTION
	.comm	_PAGING_SEPARATOR_SECTION,8,3   ## @PAGING_SEPARATOR_SECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Break since Data not valid or Empty section, sec = %d\n"

	.comm	_FH_UCODE_LOAD_STATUS,4,2       ## @FH_UCODE_LOAD_STATUS
	.comm	_UREG_UCODE_LOAD_STATUS,4,2     ## @UREG_UCODE_LOAD_STATUS
	.no_dead_strip	_iwl_pcie_load_cpu_sections_8000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_load_cpu_sections_8000
_iwl_pcie_load_cpu_sections_8000:       ; @iwl_pcie_load_cpu_sections_8000
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	cmp	w2, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	mov	w24, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	add	w8, w8, #1
	mov	w24, #16
LBB0_3:
	str	w8, [x21]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.4:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	sxtw	x23, w8
	sbfiz	x25, x8, #4, #32
	mov	w20, #1
Lloh0:
	adrp	x26, _CPU1_CPU2_SEPARATOR_SECTION@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CPU1_CPU2_SEPARATOR_SECTION@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PAGING_SEPARATOR_SECTION@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PAGING_SEPARATOR_SECTION@GOTPAGEOFF]
Lloh4:
	adrp	x28, _FH_UCODE_LOAD_STATUS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _FH_UCODE_LOAD_STATUS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x2, x8, x25
	ldr	w9, [x2, #8]
	cbz	w9, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, x25]
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_pcie_load_section
	cbnz	w0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_iwl_read_direct32
	lsl	w8, w20, w24
	orr	w2, w0, w8
	ldr	w1, [x28]
	mov	x0, x19
	bl	_iwl_write_direct32
	mov	w8, #1
	bfi	w8, w20, #1, #31
	add	x23, x23, #1
	ldrsw	x9, [x22]
	add	x25, x25, #16
	mov	x20, x8
	cmp	x23, x9
	b.lt	LBB0_5
; %bb.9:
	sub	w23, w23, #1
	b	LBB0_12
LBB0_10:
	mov	w23, #0
	b	LBB0_13
LBB0_11:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_IWL_DEBUG_FW
LBB0_12:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
LBB0_13:
	str	w23, [x21]
	mov	x0, x19
	bl	_iwl_enable_interrupts
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
Lloh8:
	adrp	x8, _UREG_UCODE_LOAD_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UREG_UCODE_LOAD_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	cmp	w20, #1
	b.ne	LBB0_18
; %bb.15:
	mov	w2, #65535
	bl	_iwl_write_prph
	b	LBB0_21
LBB0_16:
Lloh11:
	adrp	x8, _FH_UCODE_LOAD_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FH_UCODE_LOAD_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	cmp	w20, #1
	b.ne	LBB0_19
; %bb.17:
	mov	w2, #65535
	b	LBB0_20
LBB0_18:
	mov	w2, #-1
	bl	_iwl_write_prph
	b	LBB0_21
LBB0_19:
	mov	w2, #-1
LBB0_20:
	bl	_iwl_write_direct32
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU1_CPU2_SEPARATOR_SECTION,8,3 ; @CPU1_CPU2_SEPARATOR_SECTION
	.comm	_PAGING_SEPARATOR_SECTION,8,3   ; @PAGING_SEPARATOR_SECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Break since Data not valid or Empty section, sec = %d\n"

	.comm	_FH_UCODE_LOAD_STATUS,4,2       ; @FH_UCODE_LOAD_STATUS
	.comm	_UREG_UCODE_LOAD_STATUS,4,2     ; @UREG_UCODE_LOAD_STATUS
	.no_dead_strip	_iwl_pcie_load_cpu_sections_8000
.subsections_via_symbols
