	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_load_rt_fw
_iwl_mvm_load_rt_fw:                    ## @iwl_mvm_load_rt_fw
	.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	%rdi, %rbx
	callq	_iwl_mvm_has_unified_ucode
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_run_unified_mvm_ucode      ## TAILCALL
LBB0_1:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwl_run_init_mvm_ucode
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	movq	_iwlmvm_mod_params@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	cmovel	%r14d, %r15d
	jmp	LBB0_5
LBB0_3:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_iwl_fw_dbg_stop_sync
	movl	8(%rbx), %edi
	callq	_iwl_trans_stop_device
	movl	8(%rbx), %edi
	callq	_iwl_trans_start_hw
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_IWL_FW_INI_TIME_POINT_EARLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_iwl_dbg_tlv_time_point
	movl	$0, (%rbx)
	movq	_IWL_UCODE_REGULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_mvm_load_ucode_wait_alive
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, (%rbx)
	movq	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_iwl_dbg_tlv_time_point
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_init_paging                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to run INIT ucode: %d\n"

	.comm	_iwlmvm_mod_params,8,3          ## @iwlmvm_mod_params
	.comm	_IWL_FW_INI_TIME_POINT_EARLY,4,2 ## @IWL_FW_INI_TIME_POINT_EARLY
	.comm	_IWL_UCODE_REGULAR,4,2          ## @IWL_UCODE_REGULAR
	.comm	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE,4,2 ## @IWL_FW_INI_TIME_POINT_AFTER_ALIVE
	.no_dead_strip	_iwl_mvm_load_rt_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_load_rt_fw
_iwl_mvm_load_rt_fw:                    ; @iwl_mvm_load_rt_fw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_iwl_mvm_has_unified_ucode
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_run_unified_mvm_ucode
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_run_init_mvm_ucode
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_ERR
Lloh2:
	adrp	x8, _iwlmvm_mod_params@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iwlmvm_mod_params@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w0, w20, wzr, eq
	b	LBB0_6
LBB0_4:
	add	x20, x19, #4
	mov	x0, x20
	bl	_iwl_fw_dbg_stop_sync
	ldr	w0, [x19, #8]
	bl	_iwl_trans_stop_device
	ldr	w0, [x19, #8]
	bl	_iwl_trans_start_hw
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _IWL_FW_INI_TIME_POINT_EARLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_FW_INI_TIME_POINT_EARLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_iwl_dbg_tlv_time_point
	str	wzr, [x19]
Lloh8:
	adrp	x8, _IWL_UCODE_REGULAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_UCODE_REGULAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_load_ucode_wait_alive
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
Lloh11:
	adrp	x8, _IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_FW_INI_TIME_POINT_AFTER_ALIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_iwl_dbg_tlv_time_point
	ldr	w1, [x19, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_init_paging
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to run INIT ucode: %d\n"

	.comm	_iwlmvm_mod_params,8,3          ; @iwlmvm_mod_params
	.comm	_IWL_FW_INI_TIME_POINT_EARLY,4,2 ; @IWL_FW_INI_TIME_POINT_EARLY
	.comm	_IWL_UCODE_REGULAR,4,2          ; @IWL_UCODE_REGULAR
	.comm	_IWL_FW_INI_TIME_POINT_AFTER_ALIVE,4,2 ; @IWL_FW_INI_TIME_POINT_AFTER_ALIVE
	.no_dead_strip	_iwl_mvm_load_rt_fw
.subsections_via_symbols
