	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_update_outputs
_stac_update_outputs:                   ## @stac_update_outputs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	_AC_VERB_GET_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	sete	%cl
	movl	%ecx, 24(%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_snd_hda_gen_update_outputs
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.3:
	cmpq	$0, 40(%rbx)
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %eax
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %ecx
	cmpq	$0, 32(%rbx)
	cmovnel	%edx, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stac_gpio_set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_GET_GPIO_DATA,4,2      ## @AC_VERB_GET_GPIO_DATA
	.no_dead_strip	_stac_update_outputs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_update_outputs
_stac_update_outputs:                   ; @stac_update_outputs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _AC_VERB_GET_GPIO_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	ldr	w8, [x20]
	tst	w8, w0
	cset	w8, eq
	str	w8, [x20, #24]
LBB0_2:
	mov	x0, x19
	bl	_snd_hda_gen_update_outputs
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w9, [x20, #8]
	ldr	x10, [x20, #32]
	bic	w11, w9, w8
	orr	w8, w9, w8
	cmp	x10, #0
	csel	w3, w8, w11, eq
	cmp	w9, w3
	b.ne	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	w2, w1, [x20, #12]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stac_gpio_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_GET_GPIO_DATA,4,2      ; @AC_VERB_GET_GPIO_DATA
	.no_dead_strip	_stac_update_outputs
.subsections_via_symbols
