	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_setup_gpio
_stac_setup_gpio:                       ## @stac_setup_gpio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$0, 28(%rax)
	je	LBB0_2
## %bb.3:
	movq	_stac_set_power_state@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	jmp	LBB0_4
LBB0_2:
	orl	%ecx, 4(%rax)
	orl	%ecx, 8(%rax)
	orl	%ecx, 12(%rax)
LBB0_4:
	movl	16(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	orl	%ecx, 4(%rax)
	orl	%ecx, 8(%rax)
	movl	$1, 20(%rax)
	orl	%ecx, 12(%rax)
	movq	_stac_capture_led_hook@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stac_set_power_state,4,2       ## @stac_set_power_state
	.comm	_stac_capture_led_hook,4,2      ## @stac_capture_led_hook
	.no_dead_strip	_stac_setup_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_setup_gpio
_stac_setup_gpio:                       ; @stac_setup_gpio
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	w10, [x8, #28]
	cbz	w10, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _stac_set_power_state@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stac_set_power_state@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x0]
LBB0_3:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_5
LBB0_4:
	dup.2s	v0, w9
	ldur	d1, [x8, #4]
	orr.8b	v0, v1, v0
	stur	d0, [x8, #4]
	mov	w10, #1
	ldr	w11, [x8, #12]
	orr	w9, w11, w9
	str	w9, [x8, #12]
Lloh3:
	adrp	x9, _stac_capture_led_hook@GOTPAGE
Lloh4:
	ldr	x9, [x9, _stac_capture_led_hook@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w10, w9, [x8, #20]
LBB0_5:
	ret
LBB0_6:
	dup.2s	v0, w9
	ldur	d1, [x8, #4]
	orr.8b	v0, v1, v0
	stur	d0, [x8, #4]
	ldr	w10, [x8, #12]
	orr	w9, w10, w9
	str	w9, [x8, #12]
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stac_set_power_state,4,2       ; @stac_set_power_state
	.comm	_stac_capture_led_hook,4,2      ; @stac_capture_led_hook
	.no_dead_strip	_stac_setup_gpio
.subsections_via_symbols
