	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led_state                  ## -- Begin function set_led_state
	.p2align	4, 0x90
_set_led_state:                         ## @set_led_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$8, %edi
	ja	LBB0_29
## %bb.2:
	movl	%edi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_PORTD@GOTPCREL(%rip), %rax
	orb	$-128, (%rax)
	popq	%rbp
	retq
LBB0_4:
	cmpl	$8, %edi
	ja	LBB0_29
## %bb.5:
	movl	%edi, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_PORTD@GOTPCREL(%rip), %rax
	andb	$127, (%rax)
	popq	%rbp
	retq
LBB0_7:
	movq	_PINB@GOTPCREL(%rip), %rax
	testb	$-128, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jne	LBB0_30
## %bb.8:
	orl	$128, %ecx
	jmp	LBB0_31
LBB0_9:
	movq	_PORTD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_PORTE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_13:
	movq	_PORTB@GOTPCREL(%rip), %rax
LBB0_10:
	orb	$16, (%rax)
	popq	%rbp
	retq
LBB0_14:
	movq	_PORTD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_15:
	movq	_PORTD@GOTPCREL(%rip), %rax
	andb	$-33, (%rax)
	popq	%rbp
	retq
LBB0_16:
	movq	_PORTB@GOTPCREL(%rip), %rax
LBB0_12:
	orb	$64, (%rax)
	popq	%rbp
	retq
LBB0_17:
	movq	_PORTB@GOTPCREL(%rip), %rax
	andb	$-2, (%rax)
	popq	%rbp
	retq
LBB0_18:
	movq	_PINB@GOTPCREL(%rip), %rax
	testb	$-128, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jne	LBB0_32
## %bb.19:
	andl	$-129, %ecx
	jmp	LBB0_31
LBB0_20:
	movq	_PORTD@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_22:
	movq	_PORTE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_24:
	movq	_PORTB@GOTPCREL(%rip), %rax
LBB0_21:
	andb	$-17, (%rax)
	popq	%rbp
	retq
LBB0_25:
	movq	_PORTB@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_26:
	movq	_PORTD@GOTPCREL(%rip), %rax
LBB0_23:
	andb	$-65, (%rax)
	popq	%rbp
	retq
LBB0_27:
	movq	_PORTD@GOTPCREL(%rip), %rax
	orb	$32, (%rax)
	popq	%rbp
	retq
LBB0_28:
	movq	_PORTB@GOTPCREL(%rip), %rax
	orb	$1, (%rax)
LBB0_29:
	popq	%rbp
	retq
LBB0_30:
	orl	$64, %ecx
	jmp	LBB0_31
LBB0_32:
	andl	$-65, %ecx
LBB0_31:
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_26, LBB0_26-LJTI0_1
.set L0_1_set_27, LBB0_27-LJTI0_1
.set L0_1_set_25, LBB0_25-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
LJTI0_1:
	.long	L0_1_set_6
	.long	L0_1_set_18
	.long	L0_1_set_20
	.long	L0_1_set_22
	.long	L0_1_set_24
	.long	L0_1_set_26
	.long	L0_1_set_27
	.long	L0_1_set_25
	.long	L0_1_set_28
	.end_data_region
                                        ## -- End function
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_PINB,4,2                       ## @PINB
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_PORTE,4,2                      ## @PORTE
	.comm	_PORTB,4,2                      ## @PORTB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led_state                  ; -- Begin function set_led_state
	.p2align	2
_set_led_state:                         ; @set_led_state
	.cfi_startproc
; %bb.0:
	cmp	w0, #8
	cbz	w1, LBB0_4
; %bb.1:
	b.hi	LBB0_32
; %bb.2:
	mov	w8, w0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _PORTD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	b	LBB0_8
LBB0_4:
	b.hi	LBB0_32
; %bb.5:
	mov	w8, w0
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh6:
	adrp	x8, _PORTD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	b	LBB0_20
LBB0_7:
Lloh8:
	adrp	x10, _PINB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PINB@GOTPAGEOFF]
Lloh10:
	adrp	x8, _PORTC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
	ldr	w9, [x8]
	ldrb	w10, [x10]
	tbnz	w10, #7, LBB0_17
LBB0_8:
	orr	w9, w9, #0x80
	b	LBB0_31
LBB0_9:
Lloh12:
	adrp	x8, _PORTD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _PORTE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PORTE@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh16:
	adrp	x8, _PORTB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x8]
	orr	w9, w9, #0x10
	b	LBB0_31
LBB0_13:
Lloh18:
	adrp	x8, _PORTD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh20:
	adrp	x8, _PORTD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffffdf
	b	LBB0_31
LBB0_15:
Lloh22:
	adrp	x8, _PORTB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
LBB0_16:
	ldr	w9, [x8]
LBB0_17:
	orr	w9, w9, #0x40
	b	LBB0_31
LBB0_18:
Lloh24:
	adrp	x8, _PORTB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xfffffffe
	b	LBB0_31
LBB0_19:
Lloh26:
	adrp	x10, _PINB@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PINB@GOTPAGEOFF]
Lloh28:
	adrp	x8, _PORTC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
	ldr	w9, [x8]
	ldrb	w10, [x10]
	tbnz	w10, #7, LBB0_28
LBB0_20:
	and	w9, w9, #0xffffff7f
	b	LBB0_31
LBB0_21:
Lloh30:
	adrp	x8, _PORTD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh32:
	adrp	x8, _PORTE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PORTE@GOTPAGEOFF]
	b	LBB0_27
LBB0_23:
Lloh34:
	adrp	x8, _PORTB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
LBB0_24:
	ldr	w9, [x8]
	and	w9, w9, #0xffffffef
	b	LBB0_31
LBB0_25:
Lloh36:
	adrp	x8, _PORTB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh38:
	adrp	x8, _PORTD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
LBB0_27:
	ldr	w9, [x8]
LBB0_28:
	and	w9, w9, #0xffffffbf
	b	LBB0_31
LBB0_29:
Lloh40:
	adrp	x8, _PORTD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x20
	b	LBB0_31
LBB0_30:
Lloh42:
	adrp	x8, _PORTB@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x1
LBB0_31:
	str	w9, [x8]
LBB0_32:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_21-LBB0_6)>>2
	.byte	(LBB0_22-LBB0_6)>>2
	.byte	(LBB0_23-LBB0_6)>>2
	.byte	(LBB0_26-LBB0_6)>>2
	.byte	(LBB0_29-LBB0_6)>>2
	.byte	(LBB0_25-LBB0_6)>>2
	.byte	(LBB0_30-LBB0_6)>>2
                                        ; -- End function
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_PINB,4,2                       ; @PINB
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_PORTE,4,2                      ; @PORTE
	.comm	_PORTB,4,2                      ; @PORTB
.subsections_via_symbols
