	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_init
_stac_init:                             ## @stac_init
	.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, %r14
	movq	8(%rdi), %r15
	callq	_stac_store_hints
	movl	(%r15), %ecx
	cmpl	$0, 64(%r15)
	jne	LBB0_2
## %bb.1:
	orl	4(%r15), %ecx
LBB0_2:
	movl	56(%r15), %edx
	movl	60(%r15), %esi
	movq	%r14, %rdi
	callq	_stac_gpio_set
	movq	%r14, %rdi
	callq	_snd_hda_gen_init
	cmpq	$0, 48(%r15)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	movq	_AC_VERB_IDT_SET_POWER_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	40(%r15), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_4:
	cmpq	$0, 32(%r15)
	je	LBB0_10
## %bb.5:
	movl	16(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %r12
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %ecx
	btl	%ebx, %ecx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	16(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_IDT_SET_POWER_MAP,4,2  ## @AC_VERB_IDT_SET_POWER_MAP
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ## @AC_VERB_SET_POWER_STATE
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.no_dead_strip	_stac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_init
_stac_init:                             ; @stac_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_stac_store_hints
	ldr	w3, [x20]
	ldr	w8, [x20, #64]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	orr	w3, w8, w3
LBB0_2:
	ldp	w2, w1, [x20, #56]
	mov	x0, x19
	bl	_stac_gpio_set
	mov	x0, x19
	bl	_snd_hda_gen_init
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _AC_VERB_IDT_SET_POWER_MAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_IDT_SET_POWER_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w4, [x20, #40]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
Lloh3:
	adrp	x22, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _AC_PWRST_D3@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AC_PWRST_D3@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #8]
	lsr	w9, w9, w21
	tbnz	w9, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w3, [x22]
	ldr	w4, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	ldr	w8, [x20, #16]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_IDT_SET_POWER_MAP,4,2  ; @AC_VERB_IDT_SET_POWER_MAP
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ; @AC_VERB_SET_POWER_STATE
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.no_dead_strip	_stac_init
.subsections_via_symbols
