	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_mac_start
_il3945_mac_start:                      ## @il3945_mac_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	L_.str(%rip), %rdi
	callq	_D_MAC80211
	cmpl	$0, 20(%r15)
	je	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	callq	___il3945_up
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	L_.str.5(%rip), %r14
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	%r15, %rdi
	callq	_il3945_read_ucode
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_IL_ERR
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	L_.str.5(%rip), %r14
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_D_INFO
	movl	12(%r15), %ebx
	movq	_S_READY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%r15), %r12
	movq	%r12, %rsi
	callq	_test_bit
	movq	_UCODE_READY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	leaq	4(%r15), %rdi
	callq	_cancel_delayed_work
	xorl	%r12d, %r12d
	leaq	L_.str.4(%rip), %r14
	movl	$1, %eax
LBB0_9:
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_D_MAC80211
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_UCODE_READY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_IL_ERR
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not read microcode: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Start UP work.\n"

	.comm	_S_READY,4,2                    ## @S_READY
	.comm	_UCODE_READY_TIMEOUT,4,2        ## @UCODE_READY_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"Wait for START_ALIVE timeout after %dms.\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.4:                               ## @.str.4
	.asciz	"leave\n"

L_.str.5:                               ## @.str.5
	.asciz	"leave - failed\n"

	.no_dead_strip	_il3945_mac_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_mac_start
_il3945_mac_start:                      ; @il3945_mac_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0]
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_MAC80211
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
LBB0_1:
	mov	x0, x19
	bl	___il3945_up
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w20, LBB0_7
; %bb.2:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_INFO
	ldr	w21, [x19, #12]
Lloh4:
	adrp	x23, _S_READY@GOTPAGE
Lloh5:
	ldr	x23, [x23, _S_READY@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
	mov	x1, x0
Lloh6:
	adrp	x22, _UCODE_READY_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _UCODE_READY_TIMEOUT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_wait_event_timeout
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_10
LBB0_4:
	add	x0, x19, #4
	bl	_cancel_delayed_work
	mov	w20, #0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w8, #1
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_il3945_read_ucode
	cbz	w0, LBB0_1
; %bb.6:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_IL_ERR
	mov	x0, x21
	bl	_mutex_unlock
LBB0_7:
	mov	w8, #0
LBB0_8:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
	str	w8, [x19]
	bl	_D_MAC80211
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x22]
	bl	_jiffies_to_msecs
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IL_ERR
	mov	w8, #0
Lloh16:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	neg	w20, w9
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not read microcode: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Start UP work.\n"

	.comm	_S_READY,4,2                    ; @S_READY
	.comm	_UCODE_READY_TIMEOUT,4,2        ; @UCODE_READY_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"Wait for START_ALIVE timeout after %dms.\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.4:                               ; @.str.4
	.asciz	"leave\n"

l_.str.5:                               ; @.str.5
	.asciz	"leave - failed\n"

	.no_dead_strip	_il3945_mac_start
.subsections_via_symbols
