	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43legacy_phy_lo_g_state
LCPI0_0:
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.space	4
	.space	4
LCPI0_1:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_b43legacy_phy_lo_g_state:              ## @b43legacy_phy_lo_g_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rsi), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_b43legacy_lo_write
	movq	%rbx, %rdi
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_b43legacy_phy_lo_g_singledeviation
	movq	%rax, %r13
	movl	$12, %eax
	xorl	%r12d, %r12d
	leaq	_b43legacy_phy_lo_g_state.transitions(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$9, %r12d
	setae	%dil
	callq	_B43legacy_WARN_ON
	testl	%r12d, %r12d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	andl	$1, %eax
	cmpl	$1, %eax
                                        ## kill: def $eax killed $eax def $rax
	notl	%eax
	leal	(%r12,%rax), %ecx
	movl	%r12d, %r15d
	sbbl	$0, %r15d
	leal	2(%r15), %edx
	testl	%ecx, %ecx
	leal	8(%r12,%rax), %r12d
	cmovgl	%ecx, %r12d
	addl	$-6, %r15d
	cmpl	$9, %edx
	cmovll	%edx, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$8, %r15d
	movl	$1, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-9(%r12), %eax
	xorl	%edi, %edi
	cmpl	$-8, %eax
	setb	%dil
	callq	_B43legacy_WARN_ON
	movslq	%r12d, %rax
	movq	-8(%r14,%rax,8), %xmm0          ## xmm0 = mem[0],zero
	paddd	-112(%rbp), %xmm0               ## 16-byte Folded Reload
	movd	%xmm0, -64(%rbp)
	pextrd	$1, %xmm0, -60(%rbp)
	pabsd	%xmm0, %xmm0
	movdqa	%xmm0, %xmm1
	pmaxud	LCPI0_0(%rip), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pxor	LCPI0_1(%rip), %xmm1
	pmovsxdq	%xmm1, %xmm0
	movmskpd	%xmm0, %eax
	cmpb	$3, %al
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_b43legacy_lo_write
	movq	%rbx, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_b43legacy_phy_lo_g_singledeviation
	cmpq	%r13, %rax
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rcx
	movq	%rcx, -48(%rbp)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r15d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$8, %r12d
	leal	1(%r12), %eax
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addl	$-1, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_1
LBB0_12:
	movl	-48(%rbp), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%rcx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @b43legacy_phy_lo_g_state.transitions
_b43legacy_phy_lo_g_state.transitions:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.no_dead_strip	_b43legacy_phy_lo_g_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_phy_lo_g_state
_b43legacy_phy_lo_g_state:              ; @b43legacy_phy_lo_g_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x0
	ldr	d0, [x1]
	str	d0, [sp, #24]
	add	x1, sp, #24
	bl	_b43legacy_lo_write
	mov	x0, x21
	mov	x1, x20
	bl	_b43legacy_phy_lo_g_singledeviation
	mov	x22, x0
	mov	w19, #0
	mov	w23, #12
	mov	w26, #1
	movi.2s	v8, #9
Lloh0:
	adrp	x27, _b43legacy_phy_lo_g_state.transitions@PAGE
Lloh1:
	add	x27, x27, _b43legacy_phy_lo_g_state.transitions@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	cmp	w19, #8
	cset	w0, hi
	bl	_B43legacy_WARN_ON
	mov	w28, #0
	ands	w8, w19, #0x1
	mvn	w8, w8
	add	w8, w19, w8
	cinc	w9, w26, ne
	add	w9, w9, w19
	add	w10, w8, #8
	cmp	w8, #1
	csel	w8, w10, w8, lt
	subs	w10, w9, #8
	csel	w9, w10, w9, gt
	cmp	w19, #0
	csel	w25, w26, w8, eq
	mov	w8, #8
	csel	w24, w8, w9, eq
	ldr	d9, [sp, #24]
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w8, w25, #9
	cmn	w8, #8
	cset	w0, lo
	bl	_B43legacy_WARN_ON
	add	x8, x27, w25, sxtw #3
	ldur	d0, [x8, #-8]
	add.2s	v0, v0, v9
	str	d0, [sp, #16]
	abs.2s	v0, v0
	cmhi.2s	v0, v8, v0
	mov.s	w8, v0[1]
	fmov	w9, s0
	and	w8, w8, w9
	tbz	w8, #0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	add	x1, sp, #16
	mov	x0, x21
	bl	_b43legacy_lo_write
	mov	x0, x21
	mov	x1, x20
	bl	_b43legacy_phy_lo_g_singledeviation
	cmp	x0, x22
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	d0, [sp, #16]
	str	d0, [sp, #24]
	mov	w28, #1
	mov	x19, x25
	mov	x22, x0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=2
	cmp	w25, w24
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
	cmp	w25, #8
	csinc	w25, w26, w25, eq
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	subs	w23, w23, #1
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w28, LBB0_1
LBB0_9:
	ldr	d0, [sp, #24]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	d0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @b43legacy_phy_lo_g_state.transitions
_b43legacy_phy_lo_g_state.transitions:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.no_dead_strip	_b43legacy_phy_lo_g_state
.subsections_via_symbols
