	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_user            ## -- Begin function process_record_user
	.p2align	4, 0x90
_process_record_user:                   ## @process_record_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_KC_LGUI@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, (%rsi)
	setne	%al
	movq	_qw_dv_swap_state@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$-2, %edx
	orl	%edx, %eax
	movl	%eax, (%rcx)
LBB0_2:
	movq	_KC_LCTL@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_6
## %bb.3:
	cmpq	$0, (%rsi)
	movq	_qw_dv_swap_state@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	orl	$2, %eax
	movl	%eax, (%rcx)
	cmpl	$3, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	_qw_dv_swap_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$3, %eax
	jne	LBB0_9
LBB0_8:
	movq	_DVORAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_invert
	jmp	LBB0_9
LBB0_5:
	andl	$-3, %eax
	movl	%eax, (%rcx)
LBB0_9:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KC_LGUI,8,3                    ## @KC_LGUI
	.comm	_qw_dv_swap_state,4,2           ## @qw_dv_swap_state
	.comm	_KC_LCTL,8,3                    ## @KC_LCTL
	.comm	_DVORAK,4,2                     ## @DVORAK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_user            ; -- Begin function process_record_user
	.p2align	2
_process_record_user:                   ; @process_record_user
	.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
Lloh0:
	adrp	x8, _KC_LGUI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KC_LGUI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _qw_dv_swap_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qw_dv_swap_state@GOTPAGEOFF]
	cmp	x9, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x1]
	cmp	x9, #0
	cset	w9, ne
	ldr	w10, [x8]
	and	w10, w10, #0xfffffffe
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_2:
Lloh5:
	adrp	x9, _KC_LCTL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KC_LCTL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x0
	b.ne	LBB0_5
; %bb.3:
	ldr	x10, [x1]
	ldr	w9, [x8]
	cbz	x10, LBB0_7
; %bb.4:
	orr	w9, w9, #0x2
	str	w9, [x8]
	cmp	w9, #3
	b.eq	LBB0_6
	b	LBB0_8
LBB0_5:
	ldr	w9, [x8]
	cmp	w9, #3
	b.ne	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _DVORAK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DVORAK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_layer_invert
	b	LBB0_8
LBB0_7:
	and	w9, w9, #0xfffffffd
	str	w9, [x8]
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KC_LGUI,8,3                    ; @KC_LGUI
	.comm	_qw_dv_swap_state,4,2           ; @qw_dv_swap_state
	.comm	_KC_LCTL,8,3                    ; @KC_LCTL
	.comm	_DVORAK,4,2                     ; @DVORAK
.subsections_via_symbols
