	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_widgets_power_state_vt1812
_set_widgets_power_state_vt1812:        ## @set_widgets_power_state_vt1812
	.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, %r12
	movq	(%rdi), %r15
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r14
	movl	$41, %esi
	movq	%r14, %rdx
	callq	_set_pin_power_state
	movq	%r12, %rdi
	movl	$42, %esi
	movq	%r14, %rdx
	callq	_set_pin_power_state
	movq	%r12, %rdi
	movl	$43, %esi
	movq	%r14, %rdx
	callq	_set_pin_power_state
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	$30, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$31, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$17, %esi
	callq	_update_power_state
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_update_power_state
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	movl	$40, %esi
	movq	%r14, %rdx
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_update_power_state
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	movl	$37, %esi
	movq	%r14, %rdx
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$21, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$53, %esi
	callq	_update_power_state
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_update_power_state
LBB0_2:
	movq	%r12, %rdi
	movl	$37, %esi
	callq	_snd_hda_jack_detect
	movl	%eax, %r15d
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	$36, %esi
	callq	_set_pin_power_state
	testl	%r15d, %r15d
	movq	%rbx, %r14
	cmoveq	%r13, %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$20, %esi
	callq	_update_power_state
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$52, %esi
	callq	_update_power_state
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_snd_hda_jack_detect
	movl	%eax, %r15d
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	movl	$49, %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	testl	%r15d, %r15d
	cmovneq	%r14, %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$28, %esi
	callq	_update_power_state
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$60, %esi
	callq	_update_power_state
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$62, %esi
	callq	_update_power_state
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	movl	$51, %esi
	movq	%rbx, %rdx
	callq	_set_pin_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$29, %esi
	callq	_update_power_state
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$61, %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_PWRST_D3,4,2                ## @AC_PWRST_D3
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.no_dead_strip	_set_widgets_power_state_vt1812
.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_vt1812
_set_widgets_power_state_vt1812:        ; @set_widgets_power_state_vt1812
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _AC_PWRST_D3@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AC_PWRST_D3@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [sp, #12]
	add	x2, sp, #12
	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
Lloh2:
	adrp	x22, _AC_PWRST_D0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AC_PWRST_D0@GOTPAGEOFF]
	ldr	w2, [x22]
	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, [x22]
	mov	x0, x19
	mov	w1, #8
	bl	_update_power_state
	ldr	w8, [x21]
	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, #24
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #56
	bl	_update_power_state
	ldr	w8, [x21]
	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, #21
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #53
	bl	_update_power_state
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #9
	bl	_update_power_state
LBB0_2:
	mov	x0, x19
	mov	w1, #37
	bl	_snd_hda_jack_detect
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #36
	bl	_set_pin_power_state
	cmp	w20, #0
	csel	x20, x22, x21, eq
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #20
	bl	_update_power_state
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #52
	bl	_update_power_state
	mov	x0, x19
	mov	w1, #40
	bl	_snd_hda_jack_detect
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #49
	bl	_set_pin_power_state
	cmp	w20, #0
	csel	x20, x22, x21, eq
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #28
	bl	_update_power_state
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #60
	bl	_update_power_state
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #62
	bl	_update_power_state
	ldr	w8, [x21]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #51
	bl	_set_pin_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #29
	bl	_update_power_state
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #61
	bl	_update_power_state
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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_vt1812
.subsections_via_symbols
