	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_lock_leds                  ## -- Begin function set_lock_leds
	.p2align	4, 0x90
_set_lock_leds:                         ## @set_lock_leds
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_IS31_FUNCTIONREG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_IS31_REG_SHUTDOWN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_IS31_REG_SHUTDOWN_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is31_write_register
	movl	$5, %edi
	callq	_chThdSleepMilliseconds
	leaq	-72(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_is31_read_register
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	_IS31_REG_SHUTDOWN_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is31_write_register
	movq	%rbx, %rax
	orq	$4, %rax
	cmpq	$255, -72(%rbp)
	cmoveq	%rax, %rbx
LBB0_2:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_set_led_bit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IS31_FUNCTIONREG,4,2           ## @IS31_FUNCTIONREG
	.comm	_IS31_REG_SHUTDOWN,4,2          ## @IS31_REG_SHUTDOWN
	.comm	_IS31_REG_SHUTDOWN_ON,4,2       ## @IS31_REG_SHUTDOWN_ON
	.comm	_IS31_REG_SHUTDOWN_OFF,4,2      ## @IS31_REG_SHUTDOWN_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_lock_leds                  ; -- Begin function set_lock_leds
	.p2align	2
_set_lock_leds:                         ; @set_lock_leds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	cbnz	x2, LBB0_2
; %bb.1:
Lloh3:
	adrp	x22, _IS31_FUNCTIONREG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IS31_FUNCTIONREG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x23, _IS31_REG_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IS31_REG_SHUTDOWN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _IS31_REG_SHUTDOWN_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IS31_REG_SHUTDOWN_ON@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_is31_write_register
	mov	w0, #5
	bl	_chThdSleepMilliseconds
	mov	x2, sp
	mov	w0, #0
	mov	w1, #0
	bl	_is31_read_register
	ldr	w0, [x22]
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _IS31_REG_SHUTDOWN_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IS31_REG_SHUTDOWN_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_is31_write_register
	ldr	x8, [sp]
	orr	x9, x19, #0x4
	cmp	x8, #255
	csel	x19, x9, x19, eq
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_set_led_bit
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IS31_FUNCTIONREG,4,2           ; @IS31_FUNCTIONREG
	.comm	_IS31_REG_SHUTDOWN,4,2          ; @IS31_REG_SHUTDOWN
	.comm	_IS31_REG_SHUTDOWN_ON,4,2       ; @IS31_REG_SHUTDOWN_ON
	.comm	_IS31_REG_SHUTDOWN_OFF,4,2      ; @IS31_REG_SHUTDOWN_OFF
.subsections_via_symbols
