	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lo_probe_loctls_statemachine
_lo_probe_loctls_statemachine:          ## @lo_probe_loctls_statemachine
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -88(%rbp)
	callq	_has_loopback_gain
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$3, -84(%rbp)
LBB0_2:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_has_loopback_gain
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %eax
	incl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	leaq	-120(%rbp), %r12
	leaq	-88(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -84(%rbp)
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_has_loopback_gain
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_lo_measure_gain_values
	incl	%r14d
	cmpl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	leaq	-88(%rbp), %r15
	leaq	-72(%rbp), %rbx
	jge	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_b43_lo_write
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_lo_measure_feedthrough
	cmpl	$599, %eax                      ## imm = 0x257
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	cmpl	$300, %eax                      ## imm = 0x12C
	setge	%cl
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %eax
	addl	$3, %eax
	movl	%eax, (%rdx)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r13, %rdi
	callq	_lo_measure_feedthrough
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -80(%rbp)
	movl	$0, -76(%rbp)
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_B43_WARN_ON
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_lo_probe_possible_loctls
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-120(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-112(%rbp), %rax
	cmpq	-64(%rbp), %rax
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	-88(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -88(%rbp)
	cmpl	$22, %eax
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edi, %edi
	cmpl	$9, -76(%rbp)
	setae	%dil
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_has_loopback_gain
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-80(%rbp), %eax
	movl	$-6, %ecx
	cmpl	$4500, %eax                     ## imm = 0x1194
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %ecx
	cmpl	$1499, %eax                     ## imm = 0x5DB
	jg	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	%ecx, (%rdx)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %r14d
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	cmpl	$1501, %eax                     ## imm = 0x5DD
	setl	%r14b
	movl	$2, %eax
	subl	%r14d, %eax
	jmp	LBB0_19
LBB0_21:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lo_probe_loctls_statemachine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lo_probe_loctls_statemachine
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lo_probe_loctls_statemachine:          ; @lo_probe_loctls_statemachine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	bl	_has_loopback_gain
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #3
	str	w8, [sp, #20]
LBB0_2:
	add	x8, sp, #16
	add	x22, x8, #16
	mov	x0, x22
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	mov	x0, x21
	bl	_has_loopback_gain
	mov	w25, #0
	cmp	x0, #0
	mov	w8, #4
	csinc	w26, w8, wzr, ne
	mov	w28, #6
	mov	w27, #4500
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [sp, #20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w23, [x19]
	mov	x0, x21
	bl	_has_loopback_gain
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_lo_measure_gain_values
	add	w25, w25, #1
	cmp	w25, w26
	b.ge	LBB0_23
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x21
	mov	x1, x22
	bl	_b43_lo_write
	ldp	w2, w1, [x24, #4]
	ldr	w3, [x24]
	mov	x0, x21
	bl	_lo_measure_feedthrough
	cmp	w0, #599
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w0, #299
	mov	w9, #3
	csel	w9, w28, w9, gt
	add	w8, w8, w9
	str	w8, [x19]
	ldp	w2, w1, [x24, #4]
	ldr	w3, [x24]
	mov	x0, x21
	bl	_lo_measure_feedthrough
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	stp	w0, wzr, [sp, #24]
	mov	w0, #0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_B43_WARN_ON
	mov	x0, sp
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
	mov	x1, sp
	add	x2, sp, #16
	mov	x0, x21
	bl	_lo_probe_possible_loctls
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp]
	ldr	x9, [sp, #32]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, sp
	mov	x0, x22
	mov	w2, #16
	bl	_memcpy
	ldr	w8, [sp, #16]
	add	w9, w8, #1
	str	w9, [sp, #16]
	cmp	w8, #22
	b.gt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #28]
	cmp	w8, #8
	cset	w0, hi
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
	mov	x0, x21
	bl	_has_loopback_gain
	cbz	x0, LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, w27
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #-6
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #1499
	b.gt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #3
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x19]
	add	w9, w10, w9
	str	w9, [x19]
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #2
	b.eq	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w25, LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #1501
	cset	w25, lt
	mov	w8, #1
	cinc	w8, w8, ge
	b	LBB0_4
LBB0_23:
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lo_probe_loctls_statemachine
.subsections_via_symbols
