	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_dyn_adc_switch
_check_dyn_adc_switch:                  ## @check_dyn_adc_switch
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movl	(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_13
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	56(%r15), %edx
	movslq	%edx, %r9
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%edi, %r12d
	xorl	$1, %ebx
	addl	%ebx, %r11d
	incq	%rcx
	cmpq	%r10, %rcx
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%edx, %edx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rdi
	cmpq	%rax, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rbx,%rdi,8), %rsi
	leaq	1(%rdi), %rax
	cmpq	$0, (%rsi,%rcx,8)
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %rdi
	setl	%bl
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %bl
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	movzbl	%bl, %ebx
	testb	%bl, %bl
	cmovnel	%r8d, %edi
	jmp	LBB0_11
LBB0_12:
	testl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_13
## %bb.23:
	cmpl	%r10d, %r11d
	je	LBB0_33
## %bb.24:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	(%r15), %r10d
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	movslq	%r10d, %rax
	cmpq	%rax, %rbx
	jge	LBB0_32
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	btl	%ebx, %r12d
	jae	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	cmpq	%rax, %rbx
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	movl	%ecx, (%rax,%r13,4)
	cmpl	$0, 56(%r15)
	jle	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	40(%r15), %rax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r13,8), %rsi
	callq	_invalidate_nid_path
	movq	40(%r15), %rax
	movq	(%rax,%r14,8), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rdx, (%rcx,%r13,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%r14
	movslq	56(%r15), %rcx
	cmpq	%rcx, %r14
	jl	LBB0_29
	jmp	LBB0_30
LBB0_13:
	movl	56(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.14:
	xorl	%edx, %edx
	testl	%r10d, %r10d
	jle	LBB0_20
	.p2align	4, 0x90
LBB0_16:
	movq	40(%r15), %rax
	movq	(%rax,%rdx,8), %rsi
	movl	%r10d, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rax,8)
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rax
	cmpq	%rax, %rdi
	jne	LBB0_17
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rdx,4)
	movl	56(%r15), %ecx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	incq	%rdx
	movslq	%ecx, %rax
	cmpq	%rax, %rdx
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %r10d
	testl	%r10d, %r10d
	jg	LBB0_16
	jmp	LBB0_20
LBB0_22:
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	movl	$1, 16(%r15)
	jmp	LBB0_33
LBB0_32:
	movl	%ecx, (%r15)
LBB0_33:
	movl	56(%r15), %eax
	cmpl	$1, %eax
	je	LBB0_36
## %bb.34:
	cmpl	$2, %eax
	jne	LBB0_37
## %bb.35:
	cmpq	$0, 32(%r15)
	je	LBB0_37
LBB0_36:
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_printdd
	movl	$1, (%r15)
LBB0_37:
	cmpl	$0, 16(%r15)
	jne	LBB0_40
## %bb.38:
	cmpq	$0, 24(%r15)
	je	LBB0_40
## %bb.39:
	movl	$1, (%r15)
LBB0_40:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hda-codec: enabling ADC switching\n"

L_.str.1:                               ## @.str.1
	.asciz	"hda-codec: reducing to a single ADC\n"

	.no_dead_strip	_check_dyn_adc_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_dyn_adc_switch
_check_dyn_adc_switch:                  ; @check_dyn_adc_switch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x19, x0
	mov	x10, #0
	mov	w9, #0
	mov	w21, #0
	ldr	w11, [x20, #56]
	sxtw	x12, w11
	mov	w13, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #0
	lsl	w15, w13, w10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w21, w15, w21
	eor	w14, w14, #0x1
	add	w9, w9, w14
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w12, #0
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x20, #40]
	ldr	x15, [x14]
	ldr	x15, [x15, x10, lsl #3]
	cbz	x15, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w16, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x15, x16
	cmp	x11, x16
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x16, [x14, x15, lsl #3]
	ldr	x17, [x16, x10, lsl #3]
	add	x16, x15, #1
	cbnz	x17, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x15, x12
	cset	w14, lt
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #1
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w15, w13, w10
	cmp	w14, #0
	csel	w15, wzr, w15, ne
	b	LBB0_3
LBB0_12:
	cbz	w21, LBB0_22
; %bb.13:
	cmp	w9, w8
	b.eq	LBB0_32
; %bb.14:
	mov	x23, #0
	mov	w22, #0
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_31
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	lsr	w9, w21, w23
	tbz	w9, #0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x23, w22, uxtw
	b.eq	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #48]
	ldr	w9, [x8, x23, lsl #2]
	str	w9, [x8, w22, sxtw #2]
	ldr	w8, [x20, #56]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x24, #0
	sxtw	x25, w22
	ldr	x8, [x20, #40]
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x26, x24, #3
	ldr	x8, [x8, x26]
	lsl	x27, x25, #3
	ldr	x1, [x8, x27]
	mov	x0, x19
	bl	_invalidate_nid_path
	ldr	x8, [x20, #40]
	ldr	x9, [x8, x26]
	ldr	x10, [x9, x23, lsl #3]
	str	x10, [x9, x27]
	add	x24, x24, #1
	ldrsw	x9, [x20, #56]
	cmp	x24, x9
	b.lt	LBB0_21
	b	LBB0_15
LBB0_22:
	ldr	w9, [x20, #56]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.23:
	mov	x10, #0
	cmp	w8, #1
	b.lt	LBB0_28
LBB0_24:
	mov	x11, #0
	ldr	x12, [x20, #40]
	ldr	x12, [x12, x10, lsl #3]
	mov	w8, w8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, x11, lsl #3]
	cbnz	x13, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x11, x11, #1
	cmp	x8, x11
	b.ne	LBB0_25
	b	LBB0_28
LBB0_27:
	ldr	x8, [x20, #8]
	str	w11, [x8, x10, lsl #2]
	ldr	w9, [x20, #56]
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	b.ge	LBB0_24
	b	LBB0_28
LBB0_30:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	mov	w8, #1
	str	w8, [x20, #16]
	b	LBB0_32
LBB0_31:
	str	w22, [x20]
LBB0_32:
	ldr	w8, [x20, #56]
	cmp	w8, #1
	b.eq	LBB0_35
; %bb.33:
	cmp	w8, #2
	b.ne	LBB0_36
; %bb.34:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_36
LBB0_35:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
	mov	w8, #1
	str	w8, [x20]
LBB0_36:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_39
; %bb.37:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_39
; %bb.38:
	mov	w8, #1
	str	w8, [x20]
LBB0_39:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hda-codec: enabling ADC switching\n"

l_.str.1:                               ; @.str.1
	.asciz	"hda-codec: reducing to a single ADC\n"

	.no_dead_strip	_check_dyn_adc_switch
.subsections_via_symbols
