	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_run_init_ucode             ## -- Begin function iwl_run_init_ucode
	.p2align	4, 0x90
_iwl_run_init_ucode:                    ## @iwl_run_init_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
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_lockdep_assert_held
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_IWL_UCODE_INIT@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r14
	leaq	_iwl_run_init_ucode.calib_complete(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	_iwlagn_wait_calib@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movq	%rbx, %r9
	callq	_iwl_init_notification_wait
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_iwl_load_ucode_wait_alive
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_iwl_init_alive_start
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_remove_notification
LBB0_6:
	movl	4(%rbx), %edi
	callq	_iwl_trans_stop_device
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_UCODE_CALIB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_wait_notification
	movl	%eax, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @iwl_run_init_ucode.calib_complete
_iwl_run_init_ucode.calib_complete:
	.long	128                             ## 0x80
	.long	129                             ## 0x81

	.comm	_IWL_UCODE_INIT,8,3             ## @IWL_UCODE_INIT
	.comm	_iwlagn_wait_calib,4,2          ## @iwlagn_wait_calib
	.comm	_UCODE_CALIB_TIMEOUT,4,2        ## @UCODE_CALIB_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_run_init_ucode             ; -- Begin function iwl_run_init_ucode
	.p2align	2
_iwl_run_init_ucode:                    ; @iwl_run_init_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	x19, x0
	add	x0, x0, #24
	bl	_lockdep_assert_held
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x22, _IWL_UCODE_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IWL_UCODE_INIT@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.1:
	add	x20, x19, #8
Lloh2:
	adrp	x21, _iwl_run_init_ucode.calib_complete@PAGE
Lloh3:
	add	x21, x21, _iwl_run_init_ucode.calib_complete@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh4:
	adrp	x8, _iwlagn_wait_calib@GOTPAGE
Lloh5:
	ldr	x8, [x8, _iwlagn_wait_calib@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x5, x19
	bl	_iwl_init_notification_wait
	ldr	x1, [x22]
	mov	x0, x19
	bl	_iwl_load_ucode_wait_alive
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_iwl_init_alive_start
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_remove_notification
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_iwl_trans_stop_device
	str	wzr, [x19]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	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_7:
Lloh7:
	adrp	x8, _UCODE_CALIB_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UCODE_CALIB_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_wait_notification
	mov	x21, x0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_run_init_ucode.calib_complete
_iwl_run_init_ucode.calib_complete:
	.long	128                             ; 0x80
	.long	129                             ; 0x81

	.comm	_IWL_UCODE_INIT,8,3             ; @IWL_UCODE_INIT
	.comm	_iwlagn_wait_calib,4,2          ; @iwlagn_wait_calib
	.comm	_UCODE_CALIB_TIMEOUT,4,2        ; @UCODE_CALIB_TIMEOUT
.subsections_via_symbols
