	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_load_given_ucode_8000
_iwl_pcie_load_given_ucode_8000:        ## @iwl_pcie_load_given_ucode_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rsi)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_IWL_DEBUG_FW
	movq	%rbx, %rdi
	callq	_iwl_pcie_dbg_on
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_iwl_pcie_apply_destination
LBB0_2:
	movq	_WFPM_GP2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_iwl_read_prph
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_POWER
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$16843009, %edx                 ## imm = 0x1010101
	callq	_iwl_write_prph
	movq	_RELEASE_CPU_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RELEASE_CPU_RESET_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iwl_write_prph
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_iwl_pcie_load_cpu_sections_8000
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_iwl_pcie_load_cpu_sections_8000
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"working with %s CPU\n"

L_.str.1:                               ## @.str.1
	.asciz	"Dual"

L_.str.2:                               ## @.str.2
	.asciz	"Single"

L_.str.3:                               ## @.str.3
	.asciz	"Original WFPM value = 0x%08X\n"

	.comm	_WFPM_GP2,4,2                   ## @WFPM_GP2
	.comm	_RELEASE_CPU_RESET,4,2          ## @RELEASE_CPU_RESET
	.comm	_RELEASE_CPU_RESET_BIT,4,2      ## @RELEASE_CPU_RESET_BIT
	.no_dead_strip	_iwl_pcie_load_given_ucode_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_given_ucode_8000
_iwl_pcie_load_given_ucode_8000:        ; @iwl_pcie_load_given_ucode_8000
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_FW
	mov	x0, x20
	bl	_iwl_pcie_dbg_on
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_iwl_pcie_apply_destination
LBB0_2:
Lloh6:
	adrp	x21, _WFPM_GP2@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WFPM_GP2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_iwl_read_prph
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_POWER
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #16843009
	bl	_iwl_write_prph
Lloh10:
	adrp	x8, _RELEASE_CPU_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RELEASE_CPU_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _RELEASE_CPU_RESET_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RELEASE_CPU_RESET_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_iwl_write_prph
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_iwl_pcie_load_cpu_sections_8000
	cbnz	w0, LBB0_4
; %bb.3:
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_iwl_pcie_load_cpu_sections_8000
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"working with %s CPU\n"

l_.str.1:                               ; @.str.1
	.asciz	"Dual"

l_.str.2:                               ; @.str.2
	.asciz	"Single"

l_.str.3:                               ; @.str.3
	.asciz	"Original WFPM value = 0x%08X\n"

	.comm	_WFPM_GP2,4,2                   ; @WFPM_GP2
	.comm	_RELEASE_CPU_RESET,4,2          ; @RELEASE_CPU_RESET
	.comm	_RELEASE_CPU_RESET_BIT,4,2      ; @RELEASE_CPU_RESET_BIT
	.no_dead_strip	_iwl_pcie_load_given_ucode_8000
.subsections_via_symbols
