	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_layer_led                  ## -- Begin function set_layer_led
	.p2align	4, 0x90
_set_layer_led:                         ## @set_layer_led
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PORTD@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movl	%ecx, %eax
	orl	$32, %eax
	movl	%eax, (%r8)
	movq	_PORTB@GOTPCREL(%rip), %r9
	movl	(%r9), %esi
	movl	%esi, %eax
	andl	$-66, %eax
	leal	1(%rax), %edx
	movl	%edx, (%r9)
	cmpl	$2, %edi
	je	LBB0_5
## %bb.1:
	cmpl	$1, %edi
	je	LBB0_4
## %bb.2:
	testl	%edi, %edi
	jne	LBB0_6
## %bb.3:
	andl	$-33, %ecx
	movl	%ecx, (%r8)
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, (%r9)
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	orl	$65, %esi
	movl	%esi, (%r9)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORTD,4,2                      ## @PORTD
	.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_layer_led                  ; -- Begin function set_layer_led
	.p2align	2
_set_layer_led:                         ; @set_layer_led
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PORTD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w10, w9, #0x20
	str	w10, [x8]
Lloh2:
	adrp	x10, _PORTB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PORTB@GOTPAGEOFF]
	ldr	w11, [x10]
	mov	w12, #-66
	and	w12, w11, w12
	orr	w13, w12, #0x1
	str	w13, [x10]
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.2:
	cbnz	w0, LBB0_5
; %bb.3:
	and	w9, w9, #0xffffffdf
	str	w9, [x8]
	ret
LBB0_4:
	str	w12, [x10]
LBB0_5:
	ret
LBB0_6:
	mov	w8, #65
	orr	w8, w11, w8
	str	w8, [x10]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_PORTB,4,2                      ; @PORTB
.subsections_via_symbols
