	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_action_function                ## -- Begin function action_function
	.p2align	4, 0x90
_action_function:                       ## @action_function
	.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
	cmpl	$128, %esi
	jne	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_14
## %bb.2:
	movq	_layer_state@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testb	$1, %al
	jne	LBB0_3
## %bb.4:
	testb	$4, %al
	jne	LBB0_5
LBB0_6:
	testb	$16, %al
	jne	LBB0_7
LBB0_8:
	testb	$64, %al
	jne	LBB0_9
LBB0_10:
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_12
LBB0_11:
	movl	$9, %edi
	callq	_layer_on
LBB0_12:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_layer_on                       ## TAILCALL
LBB0_14:
	movl	$1, %edi
	callq	_layer_off
	movl	$3, %edi
	callq	_layer_off
	movl	$5, %edi
	callq	_layer_off
	movl	$7, %edi
	callq	_layer_off
	movl	$9, %edi
	callq	_layer_off
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.13:
	movq	_KC_SPC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_add_key
	xorl	%eax, %eax
	callq	_send_keyboard_report
	movl	(%rbx), %edi
	callq	_del_key
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_send_keyboard_report           ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %edi
	callq	_layer_on
	movq	(%rbx), %rax
	testb	$4, %al
	je	LBB0_6
LBB0_5:
	movl	$3, %edi
	callq	_layer_on
	movq	(%rbx), %rax
	testb	$16, %al
	je	LBB0_8
LBB0_7:
	movl	$5, %edi
	callq	_layer_on
	movq	(%rbx), %rax
	testb	$64, %al
	je	LBB0_10
LBB0_9:
	movl	$7, %edi
	callq	_layer_on
	movq	(%rbx), %rax
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_layer_state,8,3                ## @layer_state
	.comm	_KC_SPC,4,2                     ## @KC_SPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_action_function                ; -- Begin function action_function
	.p2align	2
_action_function:                       ; @action_function
	.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
	cmp	w1, #128
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_9
; %bb.2:
Lloh0:
	adrp	x19, _layer_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _layer_state@GOTPAGEOFF]
	ldr	x8, [x19]
	tbnz	w8, #0, LBB0_12
; %bb.3:
	tbnz	w8, #2, LBB0_13
LBB0_4:
	tbnz	w8, #4, LBB0_14
LBB0_5:
	tbnz	w8, #6, LBB0_15
LBB0_6:
	tbz	w8, #8, LBB0_8
LBB0_7:
	mov	w0, #9
	bl	_layer_on
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_layer_on
LBB0_9:
	mov	w0, #1
	bl	_layer_off
	mov	w0, #3
	bl	_layer_off
	mov	w0, #5
	bl	_layer_off
	mov	w0, #7
	bl	_layer_off
	mov	w0, #9
	bl	_layer_off
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
Lloh2:
	adrp	x19, _KC_SPC@GOTPAGE
Lloh3:
	ldr	x19, [x19, _KC_SPC@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_add_key
	bl	_send_keyboard_report
	ldr	w0, [x19]
	bl	_del_key
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_keyboard_report
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #1
	bl	_layer_on
	ldr	x8, [x19]
	tbz	w8, #2, LBB0_4
LBB0_13:
	mov	w0, #3
	bl	_layer_on
	ldr	x8, [x19]
	tbz	w8, #4, LBB0_5
LBB0_14:
	mov	w0, #5
	bl	_layer_on
	ldr	x8, [x19]
	tbz	w8, #6, LBB0_6
LBB0_15:
	mov	w0, #7
	bl	_layer_on
	ldr	x8, [x19]
	tbnz	w8, #8, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_layer_state,8,3                ; @layer_state
	.comm	_KC_SPC,4,2                     ; @KC_SPC
.subsections_via_symbols
