	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_op_stop
_b43_op_stop:                           ## @b43_op_stop
	.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
	callq	_hw_to_b43_wl
	movq	%rax, %rbx
	movq	16(%rax), %r14
	leaq	12(%rax), %rdi
	callq	_cancel_work_sync
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_b43_status
	movq	_B43_STAT_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_b43_wireless_core_stop
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_b43_wireless_core_exit
	movl	$0, (%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_5:
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cancel_work_sync               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_STAT_STARTED,8,3           ## @B43_STAT_STARTED
	.no_dead_strip	_b43_op_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_op_stop
_b43_op_stop:                           ; @b43_op_stop
	.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
	bl	_hw_to_b43_wl
	mov	x19, x0
	ldr	x21, [x0, #16]
	add	x0, x0, #12
	bl	_cancel_work_sync
	cbz	x21, LBB0_5
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	bl	_b43_status
Lloh0:
	adrp	x8, _B43_STAT_STARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_STAT_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_b43_wireless_core_stop
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_b43_wireless_core_exit
	str	wzr, [x19]
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	add	x0, x19, #4
	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
	b	_cancel_work_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_STAT_STARTED,8,3           ; @B43_STAT_STARTED
	.no_dead_strip	_b43_op_stop
.subsections_via_symbols
