	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_remove
_b43legacy_remove:                      ## @b43legacy_remove
	.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, %r14
	callq	_ssb_get_devtypedata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ssb_get_drvdata
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	callq	_cancel_work_sync
	leaq	16(%r15), %rdi
	callq	_cancel_work_sync
	leaq	4(%rbx), %rdi
	callq	_complete
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_B43legacy_WARN_ON
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	%rbx, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movl	4(%r15), %edi
	callq	_ieee80211_unregister_hw
LBB0_3:
	movq	%r14, %rdi
	callq	_b43legacy_one_core_detach
	movq	%r15, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_wireless_exit        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_b43legacy_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_remove
_b43legacy_remove:                      ; @b43legacy_remove
	.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
	mov	x19, x0
	bl	_ssb_get_devtypedata
	mov	x20, x0
	mov	x0, x19
	bl	_ssb_get_drvdata
	mov	x21, x0
	add	x0, x0, #8
	bl	_cancel_work_sync
	add	x0, x20, #16
	bl	_cancel_work_sync
	add	x0, x21, #4
	bl	_complete
	cmp	x20, #0
	cset	w0, eq
	bl	_B43legacy_WARN_ON
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_ieee80211_unregister_hw
LBB0_3:
	mov	x0, x19
	bl	_b43legacy_one_core_detach
	mov	x0, x20
	bl	_list_empty
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	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	_b43legacy_wireless_exit
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_b43legacy_remove
.subsections_via_symbols
