	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_update_led_status
_stac_update_led_status:                ## @stac_update_led_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	20(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	testl	%esi, %esi
	setne	%sil
	cmpq	$0, 24(%rax)
	sete	%dl
	xorb	%sil, %dl
	movl	4(%rax), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.6:
	testb	%dl, %dl
	je	LBB0_7
## %bb.8:
	movq	_AC_PINCTL_VREF_50@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_10:
	popq	%rbp
	retq
LBB0_2:
	testb	%dl, %dl
	je	LBB0_4
## %bb.3:
	orl	8(%rax), %ecx
	jmp	LBB0_5
LBB0_7:
	movq	_AC_PINCTL_VREF_GRD@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %edx
	movl	%edx, (%rax)
	popq	%rbp
	jmp	_stac_vrefout_set               ## TAILCALL
LBB0_4:
	notl	%ecx
	andl	8(%rax), %ecx
LBB0_5:
	movl	%ecx, 8(%rax)
	movl	12(%rax), %edx
	movl	16(%rax), %esi
	popq	%rbp
	jmp	_stac_gpio_set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINCTL_VREF_50,4,2          ## @AC_PINCTL_VREF_50
	.comm	_AC_PINCTL_VREF_GRD,4,2         ## @AC_PINCTL_VREF_GRD
	.no_dead_strip	_stac_update_led_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_update_led_status
_stac_update_led_status:                ; @stac_update_led_status
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_3
; %bb.1:
	cmp	w1, #0
	cset	w10, ne
	ldr	x11, [x8, #24]
	cmp	x11, #0
	cset	w11, eq
	eor	w10, w10, w11
	ldr	w1, [x8, #4]
	cbz	w1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _AC_PINCTL_VREF_50@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC_PINCTL_VREF_50@GOTPAGEOFF]
Lloh2:
	adrp	x11, _AC_PINCTL_VREF_GRD@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AC_PINCTL_VREF_GRD@GOTPAGEOFF]
	cmp	w10, #0
	csel	x9, x9, x11, ne
	ldr	w2, [x9]
	str	w2, [x8]
	b	_stac_vrefout_set
LBB0_3:
	ret
LBB0_4:
	cbz	w10, LBB0_6
; %bb.5:
	ldr	w10, [x8, #8]
	orr	w3, w10, w9
	b	LBB0_7
LBB0_6:
	ldr	w10, [x8, #8]
	bic	w3, w10, w9
LBB0_7:
	str	w3, [x8, #8]
	ldp	w2, w1, [x8, #12]
	b	_stac_gpio_set
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINCTL_VREF_50,4,2          ; @AC_PINCTL_VREF_50
	.comm	_AC_PINCTL_VREF_GRD,4,2         ; @AC_PINCTL_VREF_GRD
	.no_dead_strip	_stac_update_led_status
.subsections_via_symbols
