	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_kb             ## -- Begin function layer_state_set_kb
	.p2align	4, 0x90
_layer_state_set_kb:                    ## @layer_state_set_kb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_is_keyboard_master
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_biton32
	movq	_current_layer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, %edi
	callq	_biton32
	movq	_serial_m2s_buffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_isLeftHand@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_biton32
	movq	%rax, %rdi
	callq	_set_layer_indicators
LBB0_3:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_layer_state_set_user           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current_layer,8,3              ## @current_layer
	.comm	_serial_m2s_buffer,8,3          ## @serial_m2s_buffer
	.comm	_isLeftHand,8,3                 ## @isLeftHand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_kb             ; -- Begin function layer_state_set_kb
	.p2align	2
_layer_state_set_kb:                    ; @layer_state_set_kb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_is_keyboard_master
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_biton32
Lloh0:
	adrp	x8, _current_layer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_layer@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	mov	x0, x19
	bl	_biton32
Lloh3:
	adrp	x8, _serial_m2s_buffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _serial_m2s_buffer@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
Lloh6:
	adrp	x8, _isLeftHand@GOTPAGE
Lloh7:
	ldr	x8, [x8, _isLeftHand@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_biton32
	bl	_set_layer_indicators
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_layer_state_set_user
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_current_layer,8,3              ; @current_layer
	.comm	_serial_m2s_buffer,8,3          ; @serial_m2s_buffer
	.comm	_isLeftHand,8,3                 ; @isLeftHand
.subsections_via_symbols
