	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_attr_interfmode_store
_b43legacy_attr_interfmode_store:       ## @b43legacy_attr_interfmode_store
	.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	%rcx, %rbx
	movq	%rdx, %r15
	callq	_dev_to_b43legacy_wldev
	movq	%rax, %r14
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_get_integer
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.b43legacy_attr_interfmode_store(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r15d
	movq	(%r14), %rdi
	callq	_mutex_lock
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_b43legacy_radio_set_interference_mitigation
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_b43legacyerr
LBB0_7:
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r14), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	cmovnel	%r15d, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_B43legacy_INTERFMODE_NONE,4,2  ## @B43legacy_INTERFMODE_NONE
	.comm	_B43legacy_INTERFMODE_NONWLAN,4,2 ## @B43legacy_INTERFMODE_NONWLAN
	.comm	_B43legacy_INTERFMODE_MANUALWLAN,4,2 ## @B43legacy_INTERFMODE_MANUALWLAN
	.comm	_B43legacy_INTERFMODE_AUTOWLAN,4,2 ## @B43legacy_INTERFMODE_AUTOWLAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interference Mitigation not supported by device\n"

	.no_dead_strip	_b43legacy_attr_interfmode_store
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.b43legacy_attr_interfmode_store
l_switch.table.b43legacy_attr_interfmode_store:
	.quad	_B43legacy_INTERFMODE_NONE
	.quad	_B43legacy_INTERFMODE_NONWLAN
	.quad	_B43legacy_INTERFMODE_MANUALWLAN
	.quad	_B43legacy_INTERFMODE_AUTOWLAN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_attr_interfmode_store
_b43legacy_attr_interfmode_store:       ; @b43legacy_attr_interfmode_store
	.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, x3
	mov	x21, x2
	bl	_dev_to_b43legacy_wldev
	mov	x20, x0
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_get_integer
	cmp	w0, #4
	b.hs	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, l_switch.table.b43legacy_attr_interfmode_store@PAGE
Lloh4:
	add	x8, x8, l_switch.table.b43legacy_attr_interfmode_store@PAGEOFF
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w21, [x8]
	ldr	x0, [x20]
	bl	_mutex_lock
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x21
	bl	_b43legacy_radio_set_interference_mitigation
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacyerr
LBB0_4:
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldr	x0, [x20]
	bl	_mutex_unlock
	cmp	w21, #0
	csel	w0, w19, w21, eq
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_B43legacy_INTERFMODE_NONE,4,2  ; @B43legacy_INTERFMODE_NONE
	.comm	_B43legacy_INTERFMODE_NONWLAN,4,2 ; @B43legacy_INTERFMODE_NONWLAN
	.comm	_B43legacy_INTERFMODE_MANUALWLAN,4,2 ; @B43legacy_INTERFMODE_MANUALWLAN
	.comm	_B43legacy_INTERFMODE_AUTOWLAN,4,2 ; @B43legacy_INTERFMODE_AUTOWLAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interference Mitigation not supported by device\n"

	.no_dead_strip	_b43legacy_attr_interfmode_store
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.b43legacy_attr_interfmode_store
l_switch.table.b43legacy_attr_interfmode_store:
	.quad	_B43legacy_INTERFMODE_NONE
	.quad	_B43legacy_INTERFMODE_NONWLAN
	.quad	_B43legacy_INTERFMODE_MANUALWLAN
	.quad	_B43legacy_INTERFMODE_AUTOWLAN

.subsections_via_symbols
