	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_run_unified_mvm_ucode
_iwl_run_unified_mvm_ucode:             ## @iwl_run_unified_mvm_ucode
	.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	%esi, %r14d
	movq	%rdi, %r12
	movl	$0, -64(%rbp)
	movq	_IWL_INIT_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, %ebx
	movl	%eax, -48(%rbp)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_IWL_INIT_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %edi
	callq	_cpu_to_le32
	orl	%eax, %ebx
	movl	%ebx, -48(%rbp)
LBB0_2:
	leaq	52(%r12), %rdi
	callq	_lockdep_assert_held
	movl	$0, (%r12)
	leaq	4(%r12), %r15
	leaq	_iwl_run_unified_mvm_ucode.init_complete(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_iwl_wait_init_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	_iwl_init_notification_wait
	leaq	48(%r12), %rbx
	movq	_IWL_FW_INI_TIME_POINT_EARLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iwl_dbg_tlv_time_point
	movq	_IWL_UCODE_REGULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_iwl_mvm_load_ucode_wait_alive
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iwl_dbg_tlv_time_point
	movq	_SYSTEM_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INIT_EXTENDED_CFG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	movq	_CMD_SEND_IN_RFKILL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movq	40(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	24(%r12), %rdi
	movl	32(%r12), %edx
	callq	_iwl_read_external_nvm
	movq	%r12, %rdi
	callq	_iwl_mvm_load_nvm_to_nic
LBB0_9:
	movq	_IWL_MVM_PARSE_NVM@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.10:
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	callq	_iwl_nvm_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_13:
	movq	_REGULATORY_AND_NVM_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NVM_ACCESS_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	movl	(%rbx), %edx
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_IWL_ERR
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iwl_remove_notification
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MVM_UCODE_ALIVE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iwl_wait_notification
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.17:
	movq	_IWL_MVM_PARSE_NVM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_20
## %bb.18:
	movq	24(%r12), %rdi
	movl	16(%r12), %esi
	callq	_iwl_get_nvm
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	$0, 8(%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	jmp	LBB0_21
LBB0_20:
	movl	$1, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_INIT_NVM,4,2               ## @IWL_INIT_NVM
	.section	__TEXT,__const
	.p2align	2                               ## @iwl_run_unified_mvm_ucode.init_complete
_iwl_run_unified_mvm_ucode.init_complete:
	.long	128                             ## 0x80

	.comm	_IWL_INIT_PHY,4,2               ## @IWL_INIT_PHY
	.comm	_iwl_wait_init_complete,4,2     ## @iwl_wait_init_complete
	.comm	_IWL_FW_INI_TIME_POINT_EARLY,4,2 ## @IWL_FW_INI_TIME_POINT_EARLY
	.comm	_IWL_UCODE_REGULAR,4,2          ## @IWL_UCODE_REGULAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to start RT ucode: %d\n"

	.comm	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE,4,2 ## @IWL_FW_INI_TIME_POINT_AFTER_ALIVE
	.comm	_SYSTEM_GROUP,4,2               ## @SYSTEM_GROUP
	.comm	_INIT_EXTENDED_CFG_CMD,4,2      ## @INIT_EXTENDED_CFG_CMD
	.comm	_CMD_SEND_IN_RFKILL,4,2         ## @CMD_SEND_IN_RFKILL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to run init config command: %d\n"

	.comm	_IWL_MVM_PARSE_NVM,8,3          ## @IWL_MVM_PARSE_NVM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read NVM: %d\n"

	.comm	_REGULATORY_AND_NVM_GROUP,4,2   ## @REGULATORY_AND_NVM_GROUP
	.comm	_NVM_ACCESS_COMPLETE,4,2        ## @NVM_ACCESS_COMPLETE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to run complete NVM access: %d\n"

	.comm	_MVM_UCODE_ALIVE_TIMEOUT,4,2    ## @MVM_UCODE_ALIVE_TIMEOUT
	.no_dead_strip	_iwl_run_unified_mvm_ucode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_run_unified_mvm_ucode
_iwl_run_unified_mvm_ucode:             ; @iwl_run_unified_mvm_ucode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #16]
Lloh0:
	adrp	x8, _IWL_INIT_NVM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_INIT_NVM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _IWL_INIT_PHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_INIT_PHY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	bl	_cpu_to_le32
	orr	w8, w21, w0
	str	w8, [sp, #8]
LBB0_2:
	add	x0, x19, #52
	bl	_lockdep_assert_held
	mov	x23, x19
	str	wzr, [x23], #48
	add	x21, x19, #4
Lloh6:
	adrp	x22, _iwl_run_unified_mvm_ucode.init_complete@PAGE
Lloh7:
	add	x22, x22, _iwl_run_unified_mvm_ucode.init_complete@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh8:
	adrp	x8, _iwl_wait_init_complete@GOTPAGE
Lloh9:
	ldr	x8, [x8, _iwl_wait_init_complete@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x22
	mov	x5, #0
	bl	_iwl_init_notification_wait
Lloh11:
	adrp	x8, _IWL_FW_INI_TIME_POINT_EARLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_FW_INI_TIME_POINT_EARLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, #0
	bl	_iwl_dbg_tlv_time_point
Lloh14:
	adrp	x8, _IWL_UCODE_REGULAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWL_UCODE_REGULAR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_load_ucode_wait_alive
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh19:
	adrp	x8, _IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, #0
	bl	_iwl_dbg_tlv_time_point
Lloh22:
	adrp	x8, _SYSTEM_GROUP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SYSTEM_GROUP@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _INIT_EXTENDED_CFG_CMD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INIT_EXTENDED_CFG_CMD@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_WIDE_ID
	mov	x1, x0
Lloh28:
	adrp	x23, _CMD_SEND_IN_RFKILL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _CMD_SEND_IN_RFKILL@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_iwl_mvm_send_cmd_pdu
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	x1, [x19, #40]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #32]
	bl	_iwl_read_external_nvm
	mov	x0, x19
	bl	_iwl_mvm_load_nvm_to_nic
LBB0_8:
Lloh32:
	adrp	x24, _IWL_MVM_PARSE_NVM@GOTPAGE
Lloh33:
	ldr	x24, [x24, _IWL_MVM_PARSE_NVM@GOTPAGEOFF]
	cbz	w20, LBB0_12
; %bb.9:
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_iwl_nvm_init
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh36:
	adrp	x8, _REGULATORY_AND_NVM_GROUP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REGULATORY_AND_NVM_GROUP@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _NVM_ACCESS_COMPLETE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NVM_ACCESS_COMPLETE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_WIDE_ID
	mov	x1, x0
	ldr	w2, [x23]
	add	x4, sp, #16
	mov	x0, x19
	mov	w3, #4
	bl	_iwl_mvm_send_cmd_pdu
	cbz	w0, LBB0_16
; %bb.13:
	mov	x22, x0
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_ERR
	add	x1, sp, #24
	mov	x0, x21
	bl	_iwl_remove_notification
LBB0_15:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh44:
	adrp	x8, _MVM_UCODE_ALIVE_TIMEOUT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MVM_UCODE_ALIVE_TIMEOUT@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	add	x1, sp, #24
	mov	x0, x21
	bl	_iwl_wait_notification
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.17:
	cbz	w20, LBB0_21
; %bb.18:
	ldr	x8, [x24]
	cbnz	x8, LBB0_21
; %bb.19:
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
	bl	_iwl_get_nvm
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	str	xzr, [x19, #8]
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_ERR
	b	LBB0_15
LBB0_21:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INIT_NVM,4,2               ; @IWL_INIT_NVM
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_run_unified_mvm_ucode.init_complete
_iwl_run_unified_mvm_ucode.init_complete:
	.long	128                             ; 0x80

	.comm	_IWL_INIT_PHY,4,2               ; @IWL_INIT_PHY
	.comm	_iwl_wait_init_complete,4,2     ; @iwl_wait_init_complete
	.comm	_IWL_FW_INI_TIME_POINT_EARLY,4,2 ; @IWL_FW_INI_TIME_POINT_EARLY
	.comm	_IWL_UCODE_REGULAR,4,2          ; @IWL_UCODE_REGULAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to start RT ucode: %d\n"

	.comm	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE,4,2 ; @IWL_FW_INI_TIME_POINT_AFTER_ALIVE
	.comm	_SYSTEM_GROUP,4,2               ; @SYSTEM_GROUP
	.comm	_INIT_EXTENDED_CFG_CMD,4,2      ; @INIT_EXTENDED_CFG_CMD
	.comm	_CMD_SEND_IN_RFKILL,4,2         ; @CMD_SEND_IN_RFKILL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to run init config command: %d\n"

	.comm	_IWL_MVM_PARSE_NVM,8,3          ; @IWL_MVM_PARSE_NVM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read NVM: %d\n"

	.comm	_REGULATORY_AND_NVM_GROUP,4,2   ; @REGULATORY_AND_NVM_GROUP
	.comm	_NVM_ACCESS_COMPLETE,4,2        ; @NVM_ACCESS_COMPLETE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to run complete NVM access: %d\n"

	.comm	_MVM_UCODE_ALIVE_TIMEOUT,4,2    ; @MVM_UCODE_ALIVE_TIMEOUT
	.no_dead_strip	_iwl_run_unified_mvm_ucode
.subsections_via_symbols
