	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_widgets_power_state_vt2002P
_set_widgets_power_state_vt2002P:       ## @set_widgets_power_state_vt2002P
	.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, %r13
	movq	(%rdi), %r14
	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, -48(%rbp)                 ## 4-byte Spill
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r15
	movq	%r13, %rdi
	movl	$41, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movq	%r13, %rdi
	movl	$42, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movq	%r13, %rdi
	movl	$43, %esi
	movq	%r15, %rdx
	callq	_set_pin_power_state
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	movl	$30, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$31, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$17, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_update_power_state
	movq	(%r14), %rax
	movq	_VT1802@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	movl	%ecx, -44(%rbp)
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$56, %esi
	jmp	LBB0_3
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$38, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$28, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$55, %esi
LBB0_3:
	callq	_update_power_state
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	movq	_VT1802@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%bl
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$37, %esi
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	leal	21(,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$53, %esi
	callq	_update_power_state
	cmpq	$0, 8(%r14)
	movq	%r15, %rbx
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_update_power_state
LBB0_5:
	movq	%r13, %rdi
	movl	$37, %esi
	callq	_snd_hda_jack_detect
	movl	%eax, %r15d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$36, %esi
	callq	_set_pin_power_state
	testl	%r15d, %r15d
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	movq	_VT1802@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	setne	%cl
	leal	20(,%rcx,4), %esi
	movq	%r13, %rdi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$52, %esi
	callq	_update_power_state
	movq	%r13, %rdi
	movl	$38, %esi
	callq	_snd_hda_jack_detect
	testl	%eax, %eax
	movq	%r12, %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movl	$51, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$28, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$60, %esi
	jmp	LBB0_8
LBB0_7:
	movq	%r13, %rdi
	movl	$49, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$23, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$59, %esi
LBB0_8:
	callq	_update_power_state
	cmpl	$3, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.9:
	movq	%r13, %rdi
	callq	_is_aa_path_mute
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r12
LBB0_11:
	movq	%r12, %rbx
LBB0_12:
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$33, %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	_VT1802,8,3                     ## @VT1802
	.no_dead_strip	_set_widgets_power_state_vt2002P
.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_vt2002P
_set_widgets_power_state_vt2002P:       ; @set_widgets_power_state_vt2002P
	.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
	ldr	x23, [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	x22, _AC_PWRST_D3@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AC_PWRST_D3@GOTPAGEOFF]
	ldr	w8, [x22]
	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]
	ldr	w2, [x24]
	str	w2, [sp, #12]
	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	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #8
	bl	_update_power_state
	ldr	x8, [x23]
Lloh7:
	adrp	x25, _VT1802@GOTPAGE
Lloh8:
	ldr	x25, [x25, _VT1802@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w10, [x22]
	str	w10, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #40
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #24
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #56
	b	LBB0_3
LBB0_2:
	mov	w1, #38
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #28
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #55
LBB0_3:
	bl	_update_power_state
	ldr	x21, [x23]
	ldr	x26, [x25]
	ldr	w8, [x22]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #37
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	cmp	x21, x26
	mov	w8, #25
	mov	w9, #21
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #53
	bl	_update_power_state
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #9
	bl	_update_power_state
LBB0_5:
	mov	x0, x19
	mov	w1, #37
	bl	_snd_hda_jack_detect
	mov	x21, x0
	ldr	w8, [x22]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #36
	bl	_set_pin_power_state
	cmp	w21, #0
	csel	x8, x24, x22, eq
	ldr	w2, [x8]
	str	w2, [sp, #12]
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	mov	w8, #24
	mov	w9, #20
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #52
	bl	_update_power_state
	mov	x0, x19
	mov	w1, #38
	bl	_snd_hda_jack_detect
	cmp	w0, #0
	csel	x8, x24, x22, eq
	ldr	w2, [x8]
	str	w2, [sp, #12]
	ldr	x8, [x23]
	ldr	x9, [x25]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w1, #51
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #28
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #60
	b	LBB0_8
LBB0_7:
	mov	w1, #49
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #23
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #59
LBB0_8:
	bl	_update_power_state
Lloh9:
	adrp	x21, _AC_PWRST_D0@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AC_PWRST_D0@GOTPAGEOFF]
	cmp	w20, #3
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_is_aa_path_mute
	cmp	w0, #0
	csel	x21, x21, x22, eq
LBB0_10:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #33
	bl	_update_power_state
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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	_VT1802,8,3                     ; @VT1802
	.no_dead_strip	_set_widgets_power_state_vt2002P
.subsections_via_symbols
