	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_op_start
_wl1251_op_start:                       ## @wl1251_op_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rsi
	movq	_WL1251_STATE_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_wl1251_chip_wakeup
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	%r15, %rdi
	callq	_wl1251_boot
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_wl1251_hw_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_wl1251_acx_station_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	_WL1251_STATE_ON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	12(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1251_info
	movl	16(%r15), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movl	12(%r15), %esi
	movl	$4, %edx
	callq	_strncpy
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1251_error
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	negl	%ebx
	testl	%eax, %eax
	jg	LBB0_10
	jmp	LBB0_11
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_wl1251_power_off
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 start"

	.comm	_WL1251_STATE_OFF,8,3           ## @WL1251_STATE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"cannot start because not in off state: %d"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WL1251_STATE_ON,8,3            ## @WL1251_STATE_ON
L_.str.2:                               ## @.str.2
	.asciz	"firmware booted (%s)"

	.no_dead_strip	_wl1251_op_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_op_start
_wl1251_op_start:                       ; @wl1251_op_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x22, x20, [x0]
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x20]
Lloh5:
	adrp	x8, _WL1251_STATE_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL1251_STATE_OFF@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_wl1251_chip_wakeup
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_wl1251_boot
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_wl1251_hw_init
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_wl1251_acx_station_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _WL1251_STATE_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL1251_STATE_ON@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w1, [x20, #12]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wl1251_info
	ldp	w1, w8, [x20, #12]
	str	w8, [x22, #4]
	ldr	w0, [x22]
	mov	w2, #4
	bl	_strncpy
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1251_error
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	cmp	w8, #1
	b.ge	LBB0_8
	b	LBB0_9
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x20
	bl	_wl1251_power_off
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 start"

	.comm	_WL1251_STATE_OFF,8,3           ; @WL1251_STATE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"cannot start because not in off state: %d"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WL1251_STATE_ON,8,3            ; @WL1251_STATE_ON
l_.str.2:                               ; @.str.2
	.asciz	"firmware booted (%s)"

	.no_dead_strip	_wl1251_op_start
.subsections_via_symbols
