	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_widgets_power_state_vt1708B
_set_widgets_power_state_vt1708B:       ## @set_widgets_power_state_vt1708B
	.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
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_VT1708B_4CH@GOTPCREL(%rip), %rcx
	movb	$1, %r14b
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	cmpl	$285623191, (%r15)              ## imm = 0x11064397
	sete	%r14b
LBB0_2:
	movq	_AC_VERB_GET_CONNECT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$23, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_VT1708S@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	(%rdx,%rdx,4), %r12d
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rbx
	movq	%r15, %rdi
	movl	$26, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	movq	%r15, %rdi
	movl	$27, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	movq	%r15, %rdi
	movl	$30, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r12d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %edx
LBB0_5:
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movl	$23, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$19, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_update_power_state
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$25, %esi
	callq	_set_pin_power_state
	movq	%r15, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$27, %esi
	callq	_set_pin_power_state
LBB0_7:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$17, %esi
	callq	_update_power_state
	testb	%r14b, %r14b
	je	LBB0_8
## %bb.11:
	cmpl	$285623191, (%r15)              ## imm = 0x11064397
	jne	LBB0_16
## %bb.12:
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$35, %esi
	callq	_set_pin_power_state
	movq	%r15, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$26, %esi
	callq	_set_pin_power_state
LBB0_14:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$37, %esi
	jmp	LBB0_15
LBB0_8:
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$34, %esi
	callq	_set_pin_power_state
	movq	%r15, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$26, %esi
	callq	_set_pin_power_state
LBB0_10:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$38, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$36, %esi
LBB0_15:
	callq	_update_power_state
LBB0_16:
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rbx
	movq	%r15, %rdi
	movl	$28, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	movq	%r15, %rdi
	movl	$29, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	testb	%r14b, %r14b
	je	LBB0_17
## %bb.20:
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.22:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_17:
	movq	%r15, %rdi
	movl	$35, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.18:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rbx
LBB0_19:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$37, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$39, %esi
	jmp	LBB0_26
LBB0_21:
	leaq	-44(%rbp), %rax
LBB0_23:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_update_power_state
	cmpl	$285623191, (%r15)              ## imm = 0x11064397
	jne	LBB0_27
## %bb.24:
	cmpq	$0, 8(%rbx)
	je	LBB0_27
## %bb.25:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	$37, %esi
LBB0_26:
	callq	_update_power_state
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1708B_4CH,8,3                ## @VT1708B_4CH
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ## @AC_VERB_GET_CONNECT_SEL
	.comm	_VT1708S,8,3                    ## @VT1708S
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.no_dead_strip	_set_widgets_power_state_vt1708B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_widgets_power_state_vt1708B
_set_widgets_power_state_vt1708B:       ; @set_widgets_power_state_vt1708B
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	mov	w22, #17303
	movk	w22, #4358, lsl #16
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _VT1708B_4CH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VT1708B_4CH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w23, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, w22
	cset	w23, eq
LBB0_3:
Lloh3:
	adrp	x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #23
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x20, x0
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _VT1708S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VT1708S@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #5
	csel	w24, w8, wzr, eq
Lloh9:
	adrp	x25, _AC_PWRST_D3@GOTPAGE
Lloh10:
	ldr	x25, [x25, _AC_PWRST_D3@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #26
	bl	_set_pin_power_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #27
	bl	_set_pin_power_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #30
	bl	_set_pin_power_state
	cmp	w20, w24
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _AC_PWRST_D0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC_PWRST_D0@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	str	w2, [sp, #12]
	b	LBB0_6
LBB0_5:
	ldr	w2, [sp, #12]
LBB0_6:
	mov	x0, x19
	mov	w1, #23
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #19
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #20
	bl	_update_power_state
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #25
	bl	_set_pin_power_state
	mov	x0, x19
	bl	_smart51_enabled
	cbz	x0, LBB0_8
; %bb.7:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #27
	bl	_set_pin_power_state
LBB0_8:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #24
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #17
	bl	_update_power_state
	tbz	w23, #0, LBB0_13
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, w22
	b.ne	LBB0_17
; %bb.10:
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #35
	bl	_set_pin_power_state
	mov	x0, x19
	bl	_smart51_enabled
	cbz	x0, LBB0_12
; %bb.11:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #26
	bl	_set_pin_power_state
LBB0_12:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #39
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #37
	b	LBB0_16
LBB0_13:
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #34
	bl	_set_pin_power_state
	mov	x0, x19
	bl	_smart51_enabled
	cbz	x0, LBB0_15
; %bb.14:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #26
	bl	_set_pin_power_state
LBB0_15:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #38
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #36
LBB0_16:
	bl	_update_power_state
LBB0_17:
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x25, sp, #12
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #28
	bl	_set_pin_power_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #29
	bl	_set_pin_power_state
	tbz	w23, #0, LBB0_21
; %bb.18:
Lloh14:
	adrp	x8, _AC_PWRST_D0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC_PWRST_D0@GOTPAGEOFF]
	cmp	w20, w24
	csel	x8, x8, x25, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #22
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #16
	bl	_update_power_state
	ldr	w8, [x19]
	cmp	w8, w22
	b.ne	LBB0_23
; %bb.19:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_23
; %bb.20:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #37
	b	LBB0_22
LBB0_21:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #35
	bl	_set_pin_power_state
Lloh16:
	adrp	x8, _AC_PWRST_D0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AC_PWRST_D0@GOTPAGEOFF]
	cmp	w20, w24
	csel	x8, x8, x25, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #22
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #16
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #37
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #39
LBB0_22:
	bl	_update_power_state
LBB0_23:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1708B_4CH,8,3                ; @VT1708B_4CH
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ; @AC_VERB_GET_CONNECT_SEL
	.comm	_VT1708S,8,3                    ; @VT1708S
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.no_dead_strip	_set_widgets_power_state_vt1708B
.subsections_via_symbols
