	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_keymap          ## -- Begin function process_record_keymap
	.p2align	4, 0x90
_process_record_keymap:                 ## @process_record_keymap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	$1, %ebx
	cmpl	$128, %edi
	je	LBB0_7
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_9
## %bb.2:
	cmpl	$130, %edi
	jne	LBB0_18
## %bb.3:
	movq	__GAMEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_LAYER_ON
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	_userspace_config@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_15
## %bb.6:
	movl	$129, %edi
	jmp	LBB0_13
LBB0_7:
	cmpl	$0, (%r14)
	je	LBB0_18
## %bb.8:
	movq	_userspace_config@GOTPCREL(%rip), %rax
	xorb	$1, (%rax)
	movl	4(%rax), %edi
	callq	_eeconfig_update_user
	jmp	LBB0_18
LBB0_9:
	movq	__GAMEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_LAYER_ON
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:
	movq	_userspace_config@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.11:
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.12:
	movl	$130, %edi
LBB0_13:
	callq	_register_code
	jmp	LBB0_17
LBB0_14:
	movl	$130, %edi
	jmp	LBB0_16
LBB0_15:
	movl	$129, %edi
LBB0_16:
	callq	_unregister_code
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__GAMEPAD,4,2                   ## @_GAMEPAD
	.comm	_userspace_config,8,2           ## @userspace_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_keymap          ; -- Begin function process_record_keymap
	.p2align	2
_process_record_keymap:                 ; @process_record_keymap
	.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, x1
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, __GAMEPAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, __GAMEPAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_LAYER_ON
Lloh3:
	adrp	x8, _userspace_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _userspace_config@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_9
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.5:
	mov	w0, #129
	b	LBB0_13
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _userspace_config@GOTPAGE
Lloh7:
	ldr	x8, [x8, _userspace_config@GOTPAGEOFF]
	ldp	w9, w0, [x8]
	eor	w9, w9, #0x1
	str	w9, [x8]
	bl	_eeconfig_update_user
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, __GAMEPAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, __GAMEPAD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_IS_LAYER_ON
Lloh11:
	adrp	x8, _userspace_config@GOTPAGE
Lloh12:
	ldr	x8, [x8, _userspace_config@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_11
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.12:
	mov	w0, #130
LBB0_13:
	bl	_register_code
	mov	w0, #0
	b	LBB0_10
LBB0_14:
	mov	w0, #129
	b	LBB0_16
LBB0_15:
	mov	w0, #130
LBB0_16:
	bl	_unregister_code
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__GAMEPAD,4,2                   ; @_GAMEPAD
	.comm	_userspace_config,8,2           ; @userspace_config
.subsections_via_symbols
