	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$1, %ebx
	cmpl	$128, %edi
	jne	LBB0_11
## %bb.1:
	cmpl	$0, (%rsi)
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_rand
	movq	%rax, %rcx
	movq	_RAND_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NUM_ANSWERS@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, %esi
	incl	%esi
	movslq	%esi, %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_5:
	movl	$1, %edi
	callq	_rgblight_mode
	movq	_UNCERTAIN_BREAK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_rgblight_setrgb_green
	jmp	LBB0_10
LBB0_7:
	movq	_NO_BREAK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_rgblight_setrgb_yellow
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_rgblight_setrgb_red
LBB0_10:
	movq	_ANSWERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_send_string
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_timer_read32
	movq	_lastTime@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAND_MAX,4,2                   ## @RAND_MAX
	.comm	_NUM_ANSWERS,4,2                ## @NUM_ANSWERS
	.comm	_UNCERTAIN_BREAK,8,3            ## @UNCERTAIN_BREAK
	.comm	_NO_BREAK,8,3                   ## @NO_BREAK
	.comm	_ANSWERS,8,3                    ## @ANSWERS
	.comm	_lastTime,4,2                   ## @lastTime
.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	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	w0, #128
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
	bl	_rand
Lloh0:
	adrp	x8, _RAND_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAND_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NUM_ANSWERS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NUM_ANSWERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	add	w8, w8, #1
	sxtw	x8, w8
	udiv	x19, x0, x8
	mov	w0, #1
	bl	_rgblight_mode
Lloh6:
	adrp	x8, _UNCERTAIN_BREAK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNCERTAIN_BREAK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, x8
	b.hs	LBB0_5
; %bb.3:
	bl	_rgblight_setrgb_green
	b	LBB0_8
LBB0_4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _NO_BREAK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_BREAK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x19, x8
	b.hs	LBB0_7
; %bb.6:
	bl	_rgblight_setrgb_yellow
	b	LBB0_8
LBB0_7:
	bl	_rgblight_setrgb_red
LBB0_8:
Lloh12:
	adrp	x8, _ANSWERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ANSWERS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w0, [x8, x19, lsl #2]
	bl	_send_string
	bl	_timer_read32
	mov	x8, x0
	mov	w0, #0
Lloh15:
	adrp	x9, _lastTime@GOTPAGE
Lloh16:
	ldr	x9, [x9, _lastTime@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RAND_MAX,4,2                   ; @RAND_MAX
	.comm	_NUM_ANSWERS,4,2                ; @NUM_ANSWERS
	.comm	_UNCERTAIN_BREAK,8,3            ; @UNCERTAIN_BREAK
	.comm	_NO_BREAK,8,3                   ; @NO_BREAK
	.comm	_ANSWERS,8,3                    ; @ANSWERS
	.comm	_lastTime,4,2                   ; @lastTime
.subsections_via_symbols
