	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_run_init_mvm_ucode         ## -- Begin function iwl_run_init_mvm_ucode
	.p2align	4, 0x90
_iwl_run_init_mvm_ucode:                ## @iwl_run_init_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_iwl_mvm_has_unified_ucode
	testq	%rax, %rax
	je	LBB0_1
## %bb.27:
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_run_unified_mvm_ucode      ## TAILCALL
LBB0_1:
	leaq	44(%rbx), %rdi
	callq	_lockdep_assert_held
	movl	$0, (%rbx)
	leaq	16(%rbx), %r14
	leaq	_iwl_run_init_mvm_ucode.init_complete(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	_iwl_wait_phy_db_entry@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	40(%rbx), %r9d
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_iwl_init_notification_wait
	movq	_IWL_UCODE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_mvm_load_ucode_wait_alive
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_IWL_ERR
LBB0_13:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_remove_notification
LBB0_21:
	movl	$0, (%rbx)
	movq	_iwlmvm_mod_params@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.22:
	cmpq	$0, 8(%rbx)
	jne	LBB0_26
## %bb.23:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	%rax, 16(%rcx)
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, (%rcx)
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rcx)
	movl	$10, 1(%rax)
	jmp	LBB0_26
LBB0_4:
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_8000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_iwl_mvm_send_bt_init_conf
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_iwl_nvm_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_iwl_mvm_load_nvm_to_nic
LBB0_11:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rax), %rdx
	movq	(%rcx), %rax
	movq	(%rax), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rdx
	setl	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_WARN_ONCE
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_radio_hw_killed
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_RF_KILL
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iwl_send_tx_ant_cfg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	callq	_iwl_send_phy_cfg_cmd
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_17:
	movq	_MVM_UCODE_CALIB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_wait_notification
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_radio_hw_killed
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_RF_KILL
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_IWL_ERR
	movl	%r14d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @iwl_run_init_mvm_ucode.init_complete
_iwl_run_init_mvm_ucode.init_complete:
	.long	128                             ## 0x80
	.long	129                             ## 0x81

	.comm	_iwl_wait_phy_db_entry,4,2      ## @iwl_wait_phy_db_entry
	.comm	_IWL_UCODE_INIT,4,2             ## @IWL_UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to start INIT ucode: %d\n"

	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ## @IWL_DEVICE_FAMILY_8000
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read NVM: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Too old NVM version (0x%0x, required = 0x%0x)"

L_.str.3:                               ## @.str.3
	.asciz	"jump over all phy activities due to RF kill\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to run INIT calibrations: %d\n"

	.comm	_MVM_UCODE_CALIB_TIMEOUT,4,2    ## @MVM_UCODE_CALIB_TIMEOUT
L_.str.5:                               ## @.str.5
	.asciz	"RFKILL while calibrating.\n"

	.comm	_iwlmvm_mod_params,8,3          ## @iwlmvm_mod_params
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_run_init_mvm_ucode         ; -- Begin function iwl_run_init_mvm_ucode
	.p2align	2
_iwl_run_init_mvm_ucode:                ; @iwl_run_init_mvm_ucode
	.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	x22, x1
	mov	x19, x0
	bl	_iwl_mvm_has_unified_ucode
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	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
	b	_iwl_run_unified_mvm_ucode
LBB0_2:
	add	x0, x19, #44
	bl	_lockdep_assert_held
	str	wzr, [x19]
	add	x20, x19, #16
Lloh0:
	adrp	x21, _iwl_run_init_mvm_ucode.init_complete@PAGE
Lloh1:
	add	x21, x21, _iwl_run_init_mvm_ucode.init_complete@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh2:
	adrp	x8, _iwl_wait_phy_db_entry@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iwl_wait_phy_db_entry@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	ldr	w5, [x19, #40]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_iwl_init_notification_wait
Lloh5:
	adrp	x8, _IWL_UCODE_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_UCODE_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_load_ucode_wait_alive
	cbz	w0, LBB0_10
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_ERR
LBB0_5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_remove_notification
LBB0_6:
	str	wzr, [x19]
Lloh10:
	adrp	x8, _iwlmvm_mod_params@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iwlmvm_mod_params@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_20
; %bb.8:
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.9:
	ldp	x9, x8, [x0, #8]
	str	x8, [x9, #16]
	movi.2s	v0, #1
	str	d0, [x9]
	mov	w10, #10
	str	w10, [x8, #1]!
	str	x8, [x9, #8]
	b	LBB0_20
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _IWL_DEVICE_FAMILY_8000@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_8000@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_iwl_mvm_send_bt_init_conf
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_12:
	cbz	w22, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_iwl_nvm_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_15:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_iwl_mvm_load_nvm_to_nic
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x3, [x8]
	cmp	x2, x3
	cset	w0, lt
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_WARN_ONCE
	mov	x0, x19
	bl	_iwl_mvm_is_radio_hw_killed
	cbz	x0, LBB0_21
; %bb.18:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RF_KILL
	mov	w21, #0
	b	LBB0_5
LBB0_19:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_20:
	mov	x0, x21
	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
LBB0_21:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_iwl_mvm_get_valid_tx_ant
	mov	x1, x0
	mov	x0, x19
	bl	_iwl_send_tx_ant_cfg
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.22:
	mov	x0, x19
	bl	_iwl_send_phy_cfg_cmd
	cbz	w0, LBB0_24
; %bb.23:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_24:
Lloh30:
	adrp	x8, _MVM_UCODE_CALIB_TIMEOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MVM_UCODE_CALIB_TIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_wait_notification
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.25:
	mov	x0, x19
	bl	_iwl_mvm_is_radio_hw_killed
	cbz	x0, LBB0_27
; %bb.26:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RF_KILL
	mov	w21, #0
	b	LBB0_6
LBB0_27:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_ERR
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_run_init_mvm_ucode.init_complete
_iwl_run_init_mvm_ucode.init_complete:
	.long	128                             ; 0x80
	.long	129                             ; 0x81

	.comm	_iwl_wait_phy_db_entry,4,2      ; @iwl_wait_phy_db_entry
	.comm	_IWL_UCODE_INIT,4,2             ; @IWL_UCODE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to start INIT ucode: %d\n"

	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ; @IWL_DEVICE_FAMILY_8000
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read NVM: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Too old NVM version (0x%0x, required = 0x%0x)"

l_.str.3:                               ; @.str.3
	.asciz	"jump over all phy activities due to RF kill\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to run INIT calibrations: %d\n"

	.comm	_MVM_UCODE_CALIB_TIMEOUT,4,2    ; @MVM_UCODE_CALIB_TIMEOUT
l_.str.5:                               ; @.str.5
	.asciz	"RFKILL while calibrating.\n"

	.comm	_iwlmvm_mod_params,8,3          ; @iwlmvm_mod_params
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
