	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_alive_start
_il3945_alive_start:                    ## @il3945_alive_start
	.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, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_INFO
	movq	32(%r15), %rax
	movq	_UCODE_VALID_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_il3945_verify_ucode
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_D_INFO
	movl	4(%r15), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_5:
	movq	_APMG_RFKILL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_il_rd_prph
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_D_INFO
	leaq	12(%r15), %r14
	movq	_S_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	testb	$1, %bl
	jne	LBB0_6
## %bb.10:
	callq	_set_bit
	jmp	LBB0_11
LBB0_6:
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_il3945_hw_get_temperature
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_il3945_hw_get_temperature
	addl	$10, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_D_INFO
LBB0_11:
	movq	_S_ALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_il_setup_watchdog
	movq	%r15, %rdi
	callq	_il_is_rfkill
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	28(%r15), %edi
	callq	_ieee80211_wake_queues
	movq	_RATES_MASK_3945@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_il_power_update_mode
	movq	%r15, %rdi
	callq	_il_is_associated
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_RXON_FILTER_ASSOC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	notl	%eax
	andl	%eax, 20(%r15)
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	callq	_il_connection_init_rx_config
LBB0_15:
	movq	%r15, %rdi
	callq	_il_send_bt_config
	movq	_S_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_il3945_commit_rxon
	movq	%r15, %rdi
	callq	_il3945_reg_txpower_periodic
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_INFO
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Runtime Alive received.\n"

	.comm	_UCODE_VALID_OK,8,3             ## @UCODE_VALID_OK
L_.str.1:                               ## @.str.1
	.asciz	"Alive failed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bad runtime uCode load.\n"

	.comm	_APMG_RFKILL_REG,4,2            ## @APMG_RFKILL_REG
L_.str.3:                               ## @.str.3
	.asciz	"RFKILL status: 0x%x\n"

	.comm	_S_RFKILL,4,2                   ## @S_RFKILL
L_.str.4:                               ## @.str.4
	.asciz	"Thermal calibration took %dus\n"

	.comm	_S_ALIVE,4,2                    ## @S_ALIVE
	.comm	_RATES_MASK_3945,4,2            ## @RATES_MASK_3945
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ## @RXON_FILTER_ASSOC_MSK
	.comm	_S_READY,4,2                    ## @S_READY
L_.str.5:                               ## @.str.5
	.asciz	"ALIVE processing complete.\n"

	.no_dead_strip	_il3945_alive_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_alive_start
_il3945_alive_start:                    ; @il3945_alive_start
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_INFO
	ldr	x8, [x19, #32]
Lloh2:
	adrp	x9, _UCODE_VALID_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UCODE_VALID_OK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_il3945_verify_ucode
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_D_INFO
	ldr	w0, [x19, #4]
	mov	x1, x19
	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	_queue_work
LBB0_5:
Lloh9:
	adrp	x8, _APMG_RFKILL_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APMG_RFKILL_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_il_rd_prph
	mov	x21, x0
	str	x21, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D_INFO
Lloh14:
	adrp	x8, _S_RFKILL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_RFKILL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	tbnz	w21, #0, LBB0_7
; %bb.6:
	bl	_set_bit
	b	LBB0_11
LBB0_7:
	bl	_clear_bit
	mov	x0, x19
	bl	_il3945_hw_get_temperature
	cbnz	x0, LBB0_11
; %bb.8:
	mov	w21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_il3945_hw_get_temperature
	add	w21, w21, #10
	cbz	x0, LBB0_9
; %bb.10:
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_INFO
LBB0_11:
Lloh19:
	adrp	x8, _S_ALIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_ALIVE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_il_setup_watchdog
	mov	x0, x19
	bl	_il_is_rfkill
	cbz	x0, LBB0_13
; %bb.12:
	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_13:
	ldr	w0, [x19, #28]
	bl	_ieee80211_wake_queues
Lloh22:
	adrp	x8, _RATES_MASK_3945@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RATES_MASK_3945@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	mov	w1, #1
	bl	_il_power_update_mode
	mov	x0, x19
	bl	_il_is_associated
	cbz	x0, LBB0_15
; %bb.14:
Lloh25:
	adrp	x8, _RXON_FILTER_ASSOC_MSK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RXON_FILTER_ASSOC_MSK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #16]
	orr	w9, w9, w8
	bic	w8, w10, w8
	stp	w9, w8, [x19, #16]
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_il_connection_init_rx_config
LBB0_16:
	mov	x0, x19
	bl	_il_send_bt_config
Lloh28:
	adrp	x8, _S_READY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S_READY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_il3945_commit_rxon
	mov	x0, x19
	bl	_il3945_reg_txpower_periodic
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_D_INFO
	add	x0, x19, #8
	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	_wake_up
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Runtime Alive received.\n"

	.comm	_UCODE_VALID_OK,8,3             ; @UCODE_VALID_OK
l_.str.1:                               ; @.str.1
	.asciz	"Alive failed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bad runtime uCode load.\n"

	.comm	_APMG_RFKILL_REG,4,2            ; @APMG_RFKILL_REG
l_.str.3:                               ; @.str.3
	.asciz	"RFKILL status: 0x%x\n"

	.comm	_S_RFKILL,4,2                   ; @S_RFKILL
l_.str.4:                               ; @.str.4
	.asciz	"Thermal calibration took %dus\n"

	.comm	_S_ALIVE,4,2                    ; @S_ALIVE
	.comm	_RATES_MASK_3945,4,2            ; @RATES_MASK_3945
	.comm	_RXON_FILTER_ASSOC_MSK,4,2      ; @RXON_FILTER_ASSOC_MSK
	.comm	_S_READY,4,2                    ; @S_READY
l_.str.5:                               ; @.str.5
	.asciz	"ALIVE processing complete.\n"

	.no_dead_strip	_il3945_alive_start
.subsections_via_symbols
