	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_set_interference_mitigation ## -- Begin function b43legacy_radio_set_interference_mitigation
	.p2align	4, 0x90
_b43legacy_radio_set_interference_mitigation: ## @b43legacy_radio_set_interference_mitigation
	.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), %rax
	movq	_B43legacy_PHYTYPE_G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 32(%r15)
	je	LBB0_3
## %bb.5:
	movl	%esi, %r14d
	movl	$0, 16(%r15)
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jb	LBB0_8
## %bb.6:
	cmpl	$131, %r14d
	jne	LBB0_16
## %bb.7:
	movl	$1, 16(%r15)
	cmpl	$1, 20(%r15)
	movl	$130, %r14d
	sbbl	$0, %r14d
LBB0_8:
	movl	24(%r15), %esi
	xorl	%ebx, %ebx
	cmpl	%r14d, %esi
	je	LBB0_15
## %bb.9:
	cmpl	$129, %esi
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_b43legacy_radio_interference_mitigation_disable
LBB0_11:
	cmpl	$129, %r14d
	jne	LBB0_13
## %bb.12:
	movl	$0, 20(%r15)
	movl	$0, 28(%r15)
	jmp	LBB0_14
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_radio_interference_mitigation_enable
LBB0_14:
	movl	%r14d, 24(%r15)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_PHYTYPE_G,8,3        ## @B43legacy_PHYTYPE_G
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_set_interference_mitigation ; -- Begin function b43legacy_radio_set_interference_mitigation
	.p2align	2
_b43legacy_radio_set_interference_mitigation: ; @b43legacy_radio_set_interference_mitigation
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _B43legacy_PHYTYPE_G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43legacy_PHYTYPE_G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_8
; %bb.3:
	mov	x20, x1
	str	wzr, [x19, #16]
	sub	w8, w1, #128
	cmp	w8, #3
	b.lo	LBB0_6
; %bb.4:
	cmp	w20, #131
	b.ne	LBB0_15
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #20]
	cmp	w8, #0
	mov	w8, #129
	cinc	w20, w8, ne
LBB0_6:
	ldr	w1, [x19, #24]
	cmp	w1, w20
	b.ne	LBB0_11
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w1, #129
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_b43legacy_radio_interference_mitigation_disable
LBB0_13:
	cmp	w20, #129
	b.ne	LBB0_16
; %bb.14:
	str	wzr, [x19, #20]
	str	wzr, [x19, #28]
	b	LBB0_17
LBB0_15:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_radio_interference_mitigation_enable
LBB0_17:
	mov	w0, #0
	str	w20, [x19, #24]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_PHYTYPE_G,8,3        ; @B43legacy_PHYTYPE_G
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
