	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led_bit                    ## -- Begin function set_led_bit
	.p2align	4, 0x90
_set_led_bit:                           ## @set_led_bit
	.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
	cmpl	$87, %edx
	ja	LBB0_9
## %bb.1:
	movzbl	%dl, %ebx
	imull	$205, %ebx, %eax
	shrl	$11, %eax
	leal	(%rax,%rax), %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %bl
	cmpb	$8, %bl
	ja	LBB0_9
## %bb.2:
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	%ecx, %r13d
	andl	$-5, %r13d
	movzbl	%al, %eax
	imull	$205, %eax, %edx
	shrl	$10, %edx
	andl	$-2, %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %al
	addb	%al, %al
	movzbl	%al, %r12d
	andl	$-4, %ecx
	leal	-2(%r12), %eax
	addl	$16, %r12d
	cmpl	$4, %ecx
	cmovnel	%eax, %r12d
	movq	_IS31_FUNCTIONREG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IS31_REG_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IS31_REG_SHUTDOWN_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is31_write_register
	movl	$5, %edi
	callq	_chThdSleepMilliseconds
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_is31_read_register
	movq	_IS31_FUNCTIONREG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IS31_REG_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IS31_REG_SHUTDOWN_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is31_write_register
	decb	%bl
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	-44(%rbp), %eax
	cmpl	$2, %r13d
	je	LBB0_7
## %bb.3:
	cmpl	$1, %r13d
	je	LBB0_6
## %bb.4:
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.5:
	notl	%edx
	andl	%edx, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%edx, %eax
	jmp	LBB0_8
LBB0_6:
	orl	%edx, %eax
LBB0_8:
	movl	%r12d, (%r15)
	movl	%eax, 4(%r15)
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_is31_write_data
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_led_bit                    ; -- Begin function set_led_bit
	.p2align	2
_set_led_bit:                           ; @set_led_bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w2, #87
	b.hi	LBB0_3
; %bb.1:
	and	w9, w2, #0xff
	mov	w8, #205
	mul	w9, w9, w8
	lsr	w9, w9, #11
	mov	w10, #10
	msub	w11, w9, w10, w2
	and	w22, w11, #0xff
	cmp	w22, #8
	b.hi	LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	and	w23, w3, #0xfffffffb
	mul	w8, w9, w8
	lsr	w8, w8, #11
	msub	w8, w8, w10, w9
	ubfiz	w8, w8, #1, #7
	and	w9, w3, #0xfffffffc
	mov	w10, #-2
	mov	w11, #16
	cmp	w9, #4
	csel	w9, w11, w10, eq
	add	w21, w9, w8
Lloh0:
	adrp	x24, _IS31_FUNCTIONREG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IS31_FUNCTIONREG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x25, _IS31_REG_SHUTDOWN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _IS31_REG_SHUTDOWN@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh4:
	adrp	x8, _IS31_REG_SHUTDOWN_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IS31_REG_SHUTDOWN_ON@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_is31_write_register
	mov	w0, #5
	bl	_chThdSleepMilliseconds
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_is31_read_register
	ldr	w0, [x24]
	ldr	w1, [x25]
Lloh7:
	adrp	x8, _IS31_REG_SHUTDOWN_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IS31_REG_SHUTDOWN_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_is31_write_register
	sub	w8, w22, #1
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [sp, #12]
	eor	w10, w9, w8
	orr	w11, w9, w8
	bic	w8, w9, w8
	cmp	w23, #0
	csel	w8, w9, w8, ne
	cmp	w23, #1
	csel	w8, w11, w8, eq
	cmp	w23, #2
	csel	w8, w10, w8, eq
	stp	w21, w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_is31_write_data
LBB0_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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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
