	.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
	movl	%edi, %eax
	testb	$2, %al
	jne	LBB0_5
## %bb.1:
	testb	$4, %al
	jne	LBB0_7
## %bb.2:
	testb	$8, %al
	jne	LBB0_9
## %bb.3:
	movq	_PD0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	_PORTD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testb	$16, %al
	jne	LBB0_11
## %bb.4:
	movq	_PD1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %esi
	movq	_PD6@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %esi
	notl	%esi
	andl	%esi, %edx
	jmp	LBB0_14
LBB0_5:
	movq	_PD0@GOTPCREL(%rip), %rcx
LBB0_6:
	movb	(%rcx), %cl
	movq	_PORTD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_13
LBB0_7:
	movq	_PD0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	testb	$16, %al
	jne	LBB0_10
## %bb.8:
	notl	%edx
	movq	_PORTD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_PD1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_PD6@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btrl	%ecx, %edx
	jmp	LBB0_14
LBB0_9:
	movq	_PD6@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_10:
	movq	_PORTD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	jmp	LBB0_12
LBB0_11:
	orl	%esi, %edx
LBB0_12:
	movq	_PD1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_PD6@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
LBB0_13:
	btsl	%ecx, %edx
LBB0_14:
	movq	_PORTD@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PD0,4,2                        ## @PD0
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_PD1,4,2                        ## @PD1
	.comm	_PD6,4,2                        ## @PD6
.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:
Lloh0:
	adrp	x8, _PORTD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
	tbnz	w0, #1, LBB0_5
; %bb.1:
	tbnz	w0, #2, LBB0_7
; %bb.2:
	tbnz	w0, #3, LBB0_10
; %bb.3:
Lloh2:
	adrp	x9, _PD0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PD0@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	mov	w9, #1
	lsl	w11, w9, w10
	ldr	w10, [x8]
	tbnz	w0, #4, LBB0_12
; %bb.4:
Lloh5:
	adrp	x12, _PD1@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PD1@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	lsl	w12, w9, w12
	orr	w11, w11, w12
Lloh8:
	adrp	x12, _PD6@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PD6@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	lsl	w9, w9, w12
	orr	w9, w11, w9
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x9, _PD0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PD0@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ret
LBB0_7:
Lloh13:
	adrp	x9, _PD0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PD0@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x9]
	mov	w9, #1
	lsl	w10, w9, w10
	tbnz	w0, #4, LBB0_11
; %bb.8:
	ldr	w11, [x8]
	bic	w10, w11, w10
Lloh16:
	adrp	x11, _PD1@GOTPAGE
Lloh17:
	ldr	x11, [x11, _PD1@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	lsl	w11, w9, w11
	orr	w10, w11, w10
Lloh19:
	adrp	x11, _PD6@GOTPAGE
Lloh20:
	ldr	x11, [x11, _PD6@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	lsl	w9, w9, w11
LBB0_9:
	bic	w9, w10, w9
	str	w9, [x8]
	ret
LBB0_10:
Lloh22:
	adrp	x9, _PD6@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PD6@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	ldr	w11, [x8]
	orr	w10, w11, w10
	b	LBB0_13
LBB0_12:
	orr	w10, w10, w11
LBB0_13:
Lloh24:
	adrp	x11, _PD1@GOTPAGE
Lloh25:
	ldr	x11, [x11, _PD1@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	lsl	w11, w9, w11
	orr	w10, w11, w10
Lloh27:
	adrp	x11, _PD6@GOTPAGE
Lloh28:
	ldr	x11, [x11, _PD6@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w9, w9, w10
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PD0,4,2                        ; @PD0
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_PD1,4,2                        ; @PD1
	.comm	_PD6,4,2                        ; @PD6
.subsections_via_symbols
