	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_op_remove_interface
_b43legacy_op_remove_interface:         ## @b43legacy_op_remove_interface
	.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	%rsi, %r12
	callq	_hw_to_b43legacy_wl
	movq	%rax, %rbx
	movq	24(%rax), %r14
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_b43legacydbg
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_B43legacy_WARN_ON
	xorl	%edi, %edi
	cmpq	%r12, 16(%rbx)
	setne	%dil
	callq	_B43legacy_WARN_ON
	movq	$0, 16(%rbx)
	movl	$0, (%rbx)
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_b43legacy_adjust_opmode
	movl	12(%rbx), %edi
	callq	_eth_zero_addr
	movq	%r14, %rdi
	callq	_b43legacy_upload_card_macaddress
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing Interface type %d\n"

	.no_dead_strip	_b43legacy_op_remove_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_op_remove_interface
_b43legacy_op_remove_interface:         ; @b43legacy_op_remove_interface
	.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, x1
	bl	_hw_to_b43legacy_wl
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacydbg
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_B43legacy_WARN_ON
	ldr	x8, [x20, #16]
	cmp	x8, x19
	cset	w0, ne
	bl	_B43legacy_WARN_ON
	str	xzr, [x20, #16]
	str	wzr, [x20]
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_b43legacy_adjust_opmode
	ldr	w0, [x20, #12]
	bl	_eth_zero_addr
	mov	x0, x21
	bl	_b43legacy_upload_card_macaddress
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing Interface type %d\n"

	.no_dead_strip	_b43legacy_op_remove_interface
.subsections_via_symbols
