	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_radio_interference_mitigation_enable
_b43legacy_radio_interference_mitigation_enable: ## @b43legacy_radio_interference_mitigation_enable
	.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, %rbx
	cmpl	$129, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_30
## %bb.2:
	cmpl	$1, 8(%rbx)
	jne	LBB0_3
## %bb.5:
	movl	$120, %edi
	callq	_radio_stacksave
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_b43legacy_radio_read16
	andl	$30, %eax
	movl	%eax, %edi
	callq	_flip_4bit
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	andl	$-2, %ecx
	leal	-3(%rax), %edx
	cmpl	$10, %eax
	cmovll	%eax, %edx
	cmpl	$8, %ecx
	movl	$7, %edi
	cmovnel	%edx, %edi
	callq	_flip_4bit
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	orl	$32, %edx
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_b43legacy_radio_write16
	movq	%rbx, %rdi
	callq	_b43legacy_calc_nrssi_threshold
	movl	$1030, %edi                     ## imm = 0x406
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1030, %esi                     ## imm = 0x406
	movl	$32296, %edx                    ## imm = 0x7E28
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	callq	_b43legacy_phy_read
	orl	$2048, %eax                     ## imm = 0x800
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_RADIO_BITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
	orl	$4096, %eax                     ## imm = 0x1000
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movl	$1184, %edi                     ## imm = 0x4A0
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49344, %eax                    ## imm = 0xC0C0
	leal	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_write
	movl	$1185, %edi                     ## imm = 0x4A1
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49344, %eax                    ## imm = 0xC0C0
	leal	1541(%rax), %edx
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_write
	movl	$1186, %edi                     ## imm = 0x4A2
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49344, %eax                    ## imm = 0xC0C0
	leal	516(%rax), %edx
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_write
	movl	$1192, %edi                     ## imm = 0x4A8
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49344, %eax                    ## imm = 0xC0C0
	leal	2051(%rax), %edx
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_write
	movl	$1195, %edi                     ## imm = 0x4AB
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49344, %eax                    ## imm = 0xC0C0
	leal	1541(%rax), %edx
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_write
	movl	$1191, %edi                     ## imm = 0x4A7
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1191, %esi                     ## imm = 0x4A7
	movl	$2, %edx
	callq	_b43legacy_phy_write
	movl	$1187, %edi                     ## imm = 0x4A3
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1187, %esi                     ## imm = 0x4A3
	movl	$10362, %edx                    ## imm = 0x287A
	callq	_b43legacy_phy_write
	movl	$1193, %edi                     ## imm = 0x4A9
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1193, %esi                     ## imm = 0x4A9
	movl	$8231, %edx                     ## imm = 0x2027
	callq	_b43legacy_phy_write
	movl	$1171, %edi                     ## imm = 0x493
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1171, %esi                     ## imm = 0x493
	movl	$13045, %edx                    ## imm = 0x32F5
	callq	_b43legacy_phy_write
	movl	$1194, %edi                     ## imm = 0x4AA
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1194, %esi                     ## imm = 0x4AA
	movl	$8231, %edx                     ## imm = 0x2027
	callq	_b43legacy_phy_write
	movl	$1196, %edi                     ## imm = 0x4AC
	callq	_phy_stacksave
	movq	%rbx, %rdi
	movl	$1196, %esi                     ## imm = 0x4AC
	movl	$13045, %edx                    ## imm = 0x32F5
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	movl	$51, %esi
	callq	_b43legacy_phy_read
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_31
## %bb.7:
	movl	$1, 12(%rbx)
	movq	_B43legacy_PHY_RADIO_BITFIELD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_phy_stacksave
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_phy_stacksave
	movl	$1030, %edi                     ## imm = 0x406
	cmpl	$2, 8(%rbx)
	jl	LBB0_9
## %bb.8:
	movl	$1216, %edi                     ## imm = 0x4C0
	callq	_phy_stacksave
	movl	$1217, %edi                     ## imm = 0x4C1
LBB0_9:
	callq	_phy_stacksave
	movl	$51, %edi
	callq	_phy_stacksave
	movl	$1191, %edi                     ## imm = 0x4A7
	callq	_phy_stacksave
	movl	$1187, %edi                     ## imm = 0x4A3
	callq	_phy_stacksave
	movl	$1193, %edi                     ## imm = 0x4A9
	callq	_phy_stacksave
	movl	$1194, %edi                     ## imm = 0x4AA
	callq	_phy_stacksave
	movl	$1196, %edi                     ## imm = 0x4AC
	callq	_phy_stacksave
	movl	$1171, %edi                     ## imm = 0x493
	callq	_phy_stacksave
	movl	$1185, %edi                     ## imm = 0x4A1
	callq	_phy_stacksave
	movl	$1184, %edi                     ## imm = 0x4A0
	callq	_phy_stacksave
	movl	$1186, %edi                     ## imm = 0x4A2
	callq	_phy_stacksave
	movl	$1162, %edi                     ## imm = 0x48A
	callq	_phy_stacksave
	movl	$1192, %edi                     ## imm = 0x4A8
	callq	_phy_stacksave
	movl	$1195, %edi                     ## imm = 0x4AB
	callq	_phy_stacksave
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1197, %edi                     ## imm = 0x4AD
	callq	_phy_stacksave
	movl	$1198, %edi                     ## imm = 0x4AE
	callq	_phy_stacksave
	jmp	LBB0_13
LBB0_30:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_B43legacy_BUG_ON               ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	callq	_b43legacy_phy_read
	orl	$2048, %eax                     ## imm = 0x800
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	_B43legacy_PHY_G_CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
	andl	$-16385, %eax                   ## imm = 0xBFFF
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_phy_write            ## TAILCALL
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	jle	LBB0_13
## %bb.12:
	movl	$1197, %edi                     ## imm = 0x4AD
	callq	_phy_stacksave
	movl	$1045, %edi                     ## imm = 0x415
	callq	_phy_stacksave
	movl	$1046, %edi                     ## imm = 0x416
	callq	_phy_stacksave
	movl	$1047, %edi                     ## imm = 0x417
	callq	_phy_stacksave
	movl	$6658, %edi                     ## imm = 0x1A02
	callq	_ilt_stacksave
	movl	$6659, %edi                     ## imm = 0x1A03
	callq	_ilt_stacksave
LBB0_13:
	movl	$1067, %edi                     ## imm = 0x42B
	callq	_phy_stacksave
	movl	$1164, %edi                     ## imm = 0x48C
	callq	_phy_stacksave
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
	andl	$-4097, %eax                    ## imm = 0xEFFF
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65532, %eax                    ## imm = 0xFFFC
	leal	2(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$51, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1187, %esi                     ## imm = 0x4A3
	movl	$8231, %edx                     ## imm = 0x2027
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1193, %esi                     ## imm = 0x4A9
	movl	$7336, %edx                     ## imm = 0x1CA8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1171, %esi                     ## imm = 0x493
	movl	$10362, %edx                    ## imm = 0x287A
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1194, %esi                     ## imm = 0x4AA
	movl	$7336, %edx                     ## imm = 0x1CA8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1196, %esi                     ## imm = 0x4AC
	movl	$10362, %edx                    ## imm = 0x287A
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65472, %eax                    ## imm = 0xFFC0
	leal	26(%rax), %edx
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1191, %esi                     ## imm = 0x4A7
	movl	$13, %edx
	callq	_b43legacy_phy_write
	movl	8(%rbx), %eax
	movq	%rbx, %rdi
	cmpl	$1, %eax
	jg	LBB0_15
## %bb.14:
	movl	$1030, %esi                     ## imm = 0x406
	movl	$65293, %edx                    ## imm = 0xFF0D
	jmp	LBB0_18
LBB0_15:
	movl	$1216, %esi                     ## imm = 0x4C0
	cmpl	$2, %eax
	jne	LBB0_17
## %bb.16:
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1217, %esi                     ## imm = 0x4C1
	movl	$169, %edx
	jmp	LBB0_18
LBB0_17:
	movl	$193, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1217, %esi                     ## imm = 0x4C1
	movl	$89, %edx
LBB0_18:
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49407, %eax                    ## imm = 0xC0FF
	leal	6144(%rax), %edx
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65472, %eax                    ## imm = 0xFFC0
	leal	21(%rax), %edx
	movq	%rbx, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$53247, %eax                    ## imm = 0xCFFF
	leal	4096(%rax), %edx
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	2560(%rax), %edx
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$53247, %eax                    ## imm = 0xCFFF
	leal	4096(%rax), %edx
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	2048(%rax), %edx
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	16(%rax), %edx
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65520, %eax                    ## imm = 0xFFF0
	leal	5(%rax), %edx
	movq	%rbx, %rdi
	movl	$1195, %esi                     ## imm = 0x4AB
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65487, %eax                    ## imm = 0xFFCF
	leal	16(%rax), %edx
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65520, %eax                    ## imm = 0xFFF0
	leal	6(%rax), %edx
	movq	%rbx, %rdi
	movl	$1192, %esi                     ## imm = 0x4A8
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	2048(%rax), %edx
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	1280(%rax), %edx
	movq	%rbx, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65520, %eax                    ## imm = 0xFFF0
	leal	11(%rax), %edx
	movq	%rbx, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_write
	movl	8(%rbx), %r14d
	movq	%rbx, %rdi
	movl	$1162, %esi                     ## imm = 0x48A
	callq	_b43legacy_phy_read
	cmpl	$3, %r14d
	jl	LBB0_20
## %bb.19:
	andl	$-32769, %eax                   ## imm = 0xFFFF7FFF
	movq	%rbx, %rdi
	movl	$1162, %esi                     ## imm = 0x48A
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1045, %esi                     ## imm = 0x415
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$32768, %eax                    ## imm = 0x8000
	leal	14040(%rax), %edx
	movq	%rbx, %rdi
	movl	$1045, %esi                     ## imm = 0x415
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1046, %esi                     ## imm = 0x416
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$32768, %eax                    ## imm = 0x8000
	leal	14040(%rax), %edx
	movq	%rbx, %rdi
	movl	$1046, %esi                     ## imm = 0x416
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1047, %esi                     ## imm = 0x417
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65024, %eax                    ## imm = 0xFE00
	leal	365(%rax), %edx
	movq	%rbx, %rdi
	movl	$1047, %esi                     ## imm = 0x417
	callq	_b43legacy_phy_write
	jmp	LBB0_22
LBB0_20:
	orl	$4096, %eax                     ## imm = 0x1000
	movq	%rbx, %rdi
	movl	$1162, %esi                     ## imm = 0x48A
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1162, %esi                     ## imm = 0x48A
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$40959, %eax                    ## imm = 0x9FFF
	leal	8192(%rax), %edx
	movq	%rbx, %rdi
	movl	$1162, %esi                     ## imm = 0x48A
	callq	_b43legacy_phy_write
	movq	_B43legacy_SHM_SHARED@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_B43legacy_UCODEFLAGS_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_b43legacy_shm_read32
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_22
## %bb.21:
	orl	$2048, %eax                     ## imm = 0x800
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_b43legacy_shm_write32
LBB0_22:
	cmpl	$2, 8(%rbx)
	jl	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	callq	_b43legacy_phy_read
	orl	$2048, %eax                     ## imm = 0x800
	movq	%rbx, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_24:
	movq	%rbx, %rdi
	movl	$1164, %esi                     ## imm = 0x48C
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	512(%rax), %edx
	movq	%rbx, %rdi
	movl	$1164, %esi                     ## imm = 0x48C
	callq	_b43legacy_phy_write
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	jne	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	movl	$1198, %esi                     ## imm = 0x4AE
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65280, %eax                    ## imm = 0xFF00
	leal	127(%rax), %edx
	movq	%rbx, %rdi
	movl	$1198, %esi                     ## imm = 0x4AE
	callq	_b43legacy_phy_write
	movq	%rbx, %rdi
	movl	$1197, %esi                     ## imm = 0x4AD
	callq	_b43legacy_phy_read
	movzbl	%al, %edx
	orl	$4864, %edx                     ## imm = 0x1300
	jmp	LBB0_28
LBB0_26:
	cmpl	$6, %eax
	jl	LBB0_29
## %bb.27:
	movq	%rbx, %rdi
	movl	$6659, %esi                     ## imm = 0x1A03
	movl	$127, %edx
	callq	_b43legacy_ilt_write
	movq	%rbx, %rdi
	movl	$6658, %esi                     ## imm = 0x1A02
	movl	$127, %edx
	callq	_b43legacy_ilt_write
	movq	%rbx, %rdi
	movl	$1197, %esi                     ## imm = 0x4AD
	callq	_b43legacy_phy_read
	movzbl	%al, %edx
LBB0_28:
	movq	%rbx, %rdi
	movl	$1197, %esi                     ## imm = 0x4AD
	callq	_b43legacy_phy_write
LBB0_29:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_calc_nrssi_slope     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_PHY_G_CRS,4,2        ## @B43legacy_PHY_G_CRS
	.comm	_B43legacy_PHY_RADIO_BITFIELD,4,2 ## @B43legacy_PHY_RADIO_BITFIELD
	.comm	_B43legacy_SHM_SHARED,4,2       ## @B43legacy_SHM_SHARED
	.comm	_B43legacy_UCODEFLAGS_OFFSET,4,2 ## @B43legacy_UCODEFLAGS_OFFSET
	.no_dead_strip	_b43legacy_radio_interference_mitigation_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_radio_interference_mitigation_enable
_b43legacy_radio_interference_mitigation_enable: ; @b43legacy_radio_interference_mitigation_enable
	.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
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.3:
	mov	w0, #120
	bl	_radio_stacksave
	mov	x0, x19
	mov	w1, #120
	bl	_b43legacy_radio_read16
	and	w0, w0, #0x1e
	bl	_flip_4bit
	and	w8, w0, #0xfffffffe
	sub	w9, w0, #3
	cmp	w0, #9
	csel	w9, w9, w0, gt
	mov	w10, #7
	cmp	w8, #8
	csel	w0, w10, w9, eq
	bl	_flip_4bit
	lsl	w8, w0, #1
	orr	w2, w8, #0x20
	mov	x0, x19
	mov	w1, #120
	bl	_b43legacy_radio_write16
	mov	x0, x19
	bl	_b43legacy_calc_nrssi_threshold
	mov	w0, #1030
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1030
	mov	w2, #32296
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x800
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_write
Lloh0:
	adrp	x8, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x1000
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
	mov	w0, #1184
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_read
	mov	w20, #49344
	and	w8, w0, w20
	orr	w2, w8, #0x8
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_write
	mov	w0, #1185
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	mov	w21, #1541
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_write
	mov	w0, #1186
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	mov	w9, #516
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_write
	mov	w0, #1192
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	mov	w9, #2051
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_write
	mov	w0, #1195
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_write
	mov	w0, #1191
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1191
	mov	w2, #2
	bl	_b43legacy_phy_write
	mov	w0, #1187
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1187
	mov	w2, #10362
	bl	_b43legacy_phy_write
	mov	w0, #1193
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1193
	mov	w2, #8231
	bl	_b43legacy_phy_write
	mov	w0, #1171
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1171
	mov	w2, #13045
	bl	_b43legacy_phy_write
	mov	w0, #1194
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1194
	mov	w2, #8231
	bl	_b43legacy_phy_write
	mov	w0, #1196
	bl	_phy_stacksave
	mov	x0, x19
	mov	w1, #1196
	mov	w2, #13045
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	mov	w1, #51
	bl	_b43legacy_phy_read
	tbnz	w0, #11, LBB0_10
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #12]
Lloh3:
	adrp	x20, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGE
Lloh4:
	ldr	x20, [x20, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_phy_stacksave
Lloh5:
	adrp	x21, _B43legacy_PHY_G_CRS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _B43legacy_PHY_G_CRS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_phy_stacksave
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.ge	LBB0_11
; %bb.6:
	mov	w0, #1030
	b	LBB0_12
LBB0_7:
	mov	w0, #1
	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_BUG_ON
LBB0_8:
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x800
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_write
Lloh7:
	adrp	x8, _B43legacy_PHY_G_CRS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43legacy_PHY_G_CRS@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	and	w2, w0, #0xffffbfff
	mov	x0, x19
	mov	x1, x20
LBB0_9:
	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_phy_write
LBB0_10:
	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
LBB0_11:
	mov	w0, #1216
	bl	_phy_stacksave
	mov	w0, #1217
LBB0_12:
	bl	_phy_stacksave
	mov	w0, #51
	bl	_phy_stacksave
	mov	w0, #1191
	bl	_phy_stacksave
	mov	w0, #1187
	bl	_phy_stacksave
	mov	w0, #1193
	bl	_phy_stacksave
	mov	w0, #1194
	bl	_phy_stacksave
	mov	w0, #1196
	bl	_phy_stacksave
	mov	w0, #1171
	bl	_phy_stacksave
	mov	w0, #1185
	bl	_phy_stacksave
	mov	w0, #1184
	bl	_phy_stacksave
	mov	w0, #1186
	bl	_phy_stacksave
	mov	w0, #1162
	bl	_phy_stacksave
	mov	w0, #1192
	bl	_phy_stacksave
	mov	w0, #1195
	bl	_phy_stacksave
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #1197
	bl	_phy_stacksave
	mov	w0, #1198
	bl	_phy_stacksave
	b	LBB0_16
LBB0_14:
	b.le	LBB0_16
; %bb.15:
	mov	w0, #1197
	bl	_phy_stacksave
	mov	w0, #1045
	bl	_phy_stacksave
	mov	w0, #1046
	bl	_phy_stacksave
	mov	w0, #1047
	bl	_phy_stacksave
	mov	w0, #6658
	bl	_ilt_stacksave
	mov	w0, #6659
	bl	_ilt_stacksave
LBB0_16:
	mov	w0, #1067
	bl	_phy_stacksave
	mov	w0, #1164
	bl	_phy_stacksave
	ldr	w20, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	and	w2, w0, #0xffffefff
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
	ldr	w20, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	and	w8, w0, #0xfffc
	orr	w2, w8, #0x2
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #51
	mov	w2, #2048
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1187
	mov	w2, #8231
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1193
	mov	w2, #7336
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1171
	mov	w2, #10362
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1194
	mov	w2, #7336
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1196
	mov	w2, #10362
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffc0
	mov	w9, #26
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1191
	mov	w2, #13
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	mov	x0, x19
	cmp	w8, #2
	b.ge	LBB0_18
; %bb.17:
	mov	w1, #1030
	mov	w2, #65293
	b	LBB0_21
LBB0_18:
	mov	w1, #1216
	b.ne	LBB0_20
; %bb.19:
	mov	w2, #65535
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1217
	mov	w2, #169
	b	LBB0_21
LBB0_20:
	mov	w2, #193
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1217
	mov	w2, #89
LBB0_21:
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_read
	mov	w8, #49407
	and	w8, w0, w8
	orr	w2, w8, #0x1800
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffc0
	mov	w9, #21
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_read
	mov	w21, #53247
	and	w8, w0, w21
	orr	w2, w8, #0x1000
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_read
	mov	w20, #61695
	and	w8, w0, w20
	mov	w9, #2560
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_read
	and	w8, w0, w21
	orr	w2, w8, #0x1000
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	orr	w2, w8, #0x800
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_read
	mov	w21, #65487
	and	w8, w0, w21
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_read
	and	w8, w0, #0xfff0
	mov	w9, #5
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1195
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_read
	and	w8, w0, w21
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_read
	and	w8, w0, #0xfff0
	orr	w2, w8, #0x6
	mov	x0, x19
	mov	w1, #1192
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	orr	w2, w8, #0x800
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_read
	and	w8, w0, w20
	mov	w9, #1280
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_read
	and	w8, w0, #0xfff0
	mov	w9, #11
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_write
	ldr	w20, [x19, #8]
	mov	x0, x19
	mov	w1, #1162
	bl	_b43legacy_phy_read
	cmp	w20, #3
	b.lt	LBB0_23
; %bb.22:
	and	w2, w0, #0xffff7fff
	mov	x0, x19
	mov	w1, #1162
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1045
	bl	_b43legacy_phy_read
	and	w8, w0, #0x8000
	mov	w20, #14040
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1045
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1046
	bl	_b43legacy_phy_read
	and	w8, w0, #0x8000
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1046
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1047
	bl	_b43legacy_phy_read
	and	w8, w0, #0xfe00
	mov	w9, #365
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #1047
	bl	_b43legacy_phy_write
	b	LBB0_25
LBB0_23:
	orr	w2, w0, #0x1000
	mov	x0, x19
	mov	w1, #1162
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1162
	bl	_b43legacy_phy_read
	mov	w8, #40959
	and	w8, w0, w8
	orr	w2, w8, #0x2000
	mov	x0, x19
	mov	w1, #1162
	bl	_b43legacy_phy_write
Lloh10:
	adrp	x20, _B43legacy_SHM_SHARED@GOTPAGE
Lloh11:
	ldr	x20, [x20, _B43legacy_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x21, _B43legacy_UCODEFLAGS_OFFSET@GOTPAGE
Lloh13:
	ldr	x21, [x21, _B43legacy_UCODEFLAGS_OFFSET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_b43legacy_shm_read32
	tbnz	w0, #11, LBB0_25
; %bb.24:
	orr	w3, w0, #0x800
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_b43legacy_shm_write32
LBB0_25:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_27
; %bb.26:
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x800
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_write
LBB0_27:
	mov	x0, x19
	mov	w1, #1164
	bl	_b43legacy_phy_read
	mov	w8, #61695
	and	w8, w0, w8
	orr	w2, w8, #0x200
	mov	x0, x19
	mov	w1, #1164
	bl	_b43legacy_phy_write
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x19
	mov	w1, #1198
	bl	_b43legacy_phy_read
	and	w8, w0, #0xff00
	orr	w2, w8, #0x7f
	mov	x0, x19
	mov	w1, #1198
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1197
	bl	_b43legacy_phy_read
	mov	w2, #4864
	bfxil	w2, w0, #0, #8
	b	LBB0_31
LBB0_29:
	cmp	w8, #6
	b.lt	LBB0_32
; %bb.30:
	mov	x0, x19
	mov	w1, #6659
	mov	w2, #127
	bl	_b43legacy_ilt_write
	mov	x0, x19
	mov	w1, #6658
	mov	w2, #127
	bl	_b43legacy_ilt_write
	mov	x0, x19
	mov	w1, #1197
	bl	_b43legacy_phy_read
	and	w2, w0, #0xff
LBB0_31:
	mov	x0, x19
	mov	w1, #1197
	bl	_b43legacy_phy_write
LBB0_32:
	mov	x0, x19
	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_calc_nrssi_slope
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_PHY_G_CRS,4,2        ; @B43legacy_PHY_G_CRS
	.comm	_B43legacy_PHY_RADIO_BITFIELD,4,2 ; @B43legacy_PHY_RADIO_BITFIELD
	.comm	_B43legacy_SHM_SHARED,4,2       ; @B43legacy_SHM_SHARED
	.comm	_B43legacy_UCODEFLAGS_OFFSET,4,2 ; @B43legacy_UCODEFLAGS_OFFSET
	.no_dead_strip	_b43legacy_radio_interference_mitigation_enable
.subsections_via_symbols
