	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function layer_set
_layer_set:                             ## @layer_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movl	%esi, %edi
	callq	_layer_on
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %edi
	callq	_layer_off
LBB0_3:
	movq	_NAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_NAS_NUMLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_NAS_TENKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_NAS_TENKEY_NUMLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	_tenkey_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_LED_NAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_15
## %bb.8:
	movq	_LED_TENKEY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	popq	%rbp
	jmp	_mode_led_set                   ## TAILCALL
LBB0_9:
	movq	_FUNCTION_MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_FUNCTION_ARROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_LED_FN@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
LBB0_15:
	popq	%rbp
	jmp	_mode_led_set                   ## TAILCALL
LBB0_12:
	movq	_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_LED_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAS,4,2                        ## @NAS
	.comm	_NAS_NUMLOCK,4,2                ## @NAS_NUMLOCK
	.comm	_NAS_TENKEY,4,2                 ## @NAS_TENKEY
	.comm	_NAS_TENKEY_NUMLOCK,4,2         ## @NAS_TENKEY_NUMLOCK
	.comm	_tenkey_enabled,8,3             ## @tenkey_enabled
	.comm	_LED_NAS,4,2                    ## @LED_NAS
	.comm	_LED_TENKEY,4,2                 ## @LED_TENKEY
	.comm	_FUNCTION_MOUSE,4,2             ## @FUNCTION_MOUSE
	.comm	_FUNCTION_ARROWS,4,2            ## @FUNCTION_ARROWS
	.comm	_LED_FN,4,2                     ## @LED_FN
	.comm	_NORMAL,4,2                     ## @NORMAL
	.comm	_LED_NORMAL,4,2                 ## @LED_NORMAL
	.no_dead_strip	_layer_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function layer_set
_layer_set:                             ; @layer_set
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_layer_on
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_layer_off
LBB0_3:
Lloh0:
	adrp	x8, _NAS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbnz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _NAS_NUMLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAS_NUMLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbnz	x0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _NAS_TENKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAS_TENKEY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbnz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _NAS_TENKEY_NUMLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NAS_TENKEY_NUMLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbz	x0, LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _tenkey_enabled@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tenkey_enabled@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _LED_NAS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LED_NAS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	cbz	x8, LBB0_13
; %bb.8:
Lloh18:
	adrp	x8, _LED_TENKEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LED_TENKEY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mode_led_set
LBB0_9:
Lloh21:
	adrp	x8, _FUNCTION_MOUSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FUNCTION_MOUSE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbnz	x0, LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _FUNCTION_ARROWS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FUNCTION_ARROWS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbz	x0, LBB0_14
LBB0_11:
Lloh27:
	adrp	x8, _LED_FN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LED_FN@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mode_led_set
LBB0_14:
Lloh29:
	adrp	x8, _NORMAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NORMAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_layer_state_is
	cbz	x0, LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _LED_NORMAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LED_NORMAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_NAS,4,2                        ; @NAS
	.comm	_NAS_NUMLOCK,4,2                ; @NAS_NUMLOCK
	.comm	_NAS_TENKEY,4,2                 ; @NAS_TENKEY
	.comm	_NAS_TENKEY_NUMLOCK,4,2         ; @NAS_TENKEY_NUMLOCK
	.comm	_tenkey_enabled,8,3             ; @tenkey_enabled
	.comm	_LED_NAS,4,2                    ; @LED_NAS
	.comm	_LED_TENKEY,4,2                 ; @LED_TENKEY
	.comm	_FUNCTION_MOUSE,4,2             ; @FUNCTION_MOUSE
	.comm	_FUNCTION_ARROWS,4,2            ; @FUNCTION_ARROWS
	.comm	_LED_FN,4,2                     ; @LED_FN
	.comm	_NORMAL,4,2                     ; @NORMAL
	.comm	_LED_NORMAL,4,2                 ; @LED_NORMAL
	.no_dead_strip	_layer_set
.subsections_via_symbols
