	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_widgets_power_state_vt3476
_set_widgets_power_state_vt3476:        ## @set_widgets_power_state_vt3476
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	_AC_VERB_GET_CONNECT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$30, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, %r12d
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	movl	$41, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movq	%rbx, %rdi
	movl	$42, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movq	%rbx, %rdi
	movl	$43, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	cmpl	$4, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	jmp	LBB0_3
LBB0_1:
	movl	-44(%rbp), %edx
LBB0_3:
	movq	%rbx, %rdi
	movl	$30, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_update_power_state
	movq	(%r13), %rax
	movq	_VT1705CF@GOTPCREL(%rip), %rcx
	movl	(%r14), %edx
	movl	%edx, -44(%rbp)
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$39, %esi
	callq	_update_power_state
	jmp	LBB0_6
LBB0_5:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$39, %esi
	callq	_set_pin_power_state
LBB0_6:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$55, %esi
	callq	_update_power_state
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$38, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$54, %esi
	callq	_update_power_state
	movq	%rbx, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$43, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$27, %esi
	callq	_update_power_state
LBB0_8:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$2, %ecx
	callq	_update_conv_power_state
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$37, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$53, %esi
	callq	_update_power_state
	movq	%rbx, %rdi
	callq	_smart51_enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$26, %esi
	callq	_update_power_state
LBB0_10:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$1, %ecx
	callq	_update_conv_power_state
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_update_power_state
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$11, %esi
	movl	$3, %ecx
	callq	_update_conv_power_state
LBB0_12:
	movl	-44(%rbp), %r12d
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	movl	$36, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	$52, %esi
	callq	_update_power_state
	cmpq	$0, 8(%r13)
	jne	LBB0_14
## %bb.13:
	cmpl	(%r14), %r12d
	je	LBB0_14
## %bb.15:
	movl	%r12d, -44(%rbp)
	jmp	LBB0_16
LBB0_14:
	movl	-44(%rbp), %r12d
LBB0_16:
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_update_conv_power_state
	cmpl	$4, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r15
LBB0_18:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$63, %esi
	callq	_update_power_state
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ## @AC_VERB_GET_CONNECT_SEL
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.comm	_VT1705CF,8,3                   ## @VT1705CF
	.no_dead_strip	_set_widgets_power_state_vt3476
.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_vt3476
_set_widgets_power_state_vt3476:        ; @set_widgets_power_state_vt3476
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #30
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x20, x0
Lloh3:
	adrp	x23, _AC_PWRST_D3@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AC_PWRST_D3@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #41
	bl	_set_pin_power_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #42
	bl	_set_pin_power_state
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #43
	bl	_set_pin_power_state
Lloh5:
	adrp	x24, _AC_PWRST_D0@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AC_PWRST_D0@GOTPAGEOFF]
	cmp	w20, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [x24]
	str	w2, [sp, #12]
	b	LBB0_3
LBB0_2:
	ldr	w2, [sp, #12]
LBB0_3:
	mov	x0, x19
	mov	w1, #30
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #31
	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, #17
	bl	_update_power_state
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _VT1705CF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VT1705CF@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w2, [x23]
	str	w2, [sp, #12]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #39
	bl	_update_power_state
	b	LBB0_6
LBB0_5:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #39
	bl	_set_pin_power_state
LBB0_6:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #55
	bl	_update_power_state
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #38
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #54
	bl	_update_power_state
	mov	x0, x19
	bl	_smart51_enabled
	cbz	x0, LBB0_8
; %bb.7:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #43
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #59
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #27
	bl	_update_power_state
LBB0_8:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #10
	mov	w3, #2
	bl	_update_conv_power_state
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #37
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #53
	bl	_update_power_state
	mov	x0, x19
	bl	_smart51_enabled
	cbz	x0, LBB0_10
; %bb.9:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #42
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #58
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #26
	bl	_update_power_state
LBB0_10:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #9
	mov	w3, #1
	bl	_update_conv_power_state
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #40
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #56
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #24
	bl	_update_power_state
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #11
	mov	w3, #3
	bl	_update_conv_power_state
LBB0_12:
	ldr	w21, [sp, #12]
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #36
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #52
	bl	_update_power_state
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_15
; %bb.13:
	ldr	w8, [x23]
	cmp	w21, w8
	b.eq	LBB0_15
; %bb.14:
	str	w21, [sp, #12]
	b	LBB0_16
LBB0_15:
	ldr	w21, [sp, #12]
LBB0_16:
	mov	x0, x19
	mov	w1, #8
	mov	x2, x21
	mov	w3, #0
	bl	_update_conv_power_state
	cmp	w20, #4
	add	x8, sp, #12
	csel	x8, x24, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #63
	bl	_update_power_state
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ; @AC_VERB_GET_CONNECT_SEL
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.comm	_VT1705CF,8,3                   ; @VT1705CF
	.no_dead_strip	_set_widgets_power_state_vt3476
.subsections_via_symbols
