	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lg4ff_raw_event                ## -- Begin function lg4ff_raw_event
	.p2align	4, 0x90
_lg4ff_raw_event:                       ## @lg4ff_raw_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%r8), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.1:
	cmpq	$0, 8(%rcx)
	je	LBB0_13
## %bb.2:
	movl	(%rcx), %ecx
	addl	$-128, %ecx
	cmpl	$10, %ecx
	ja	LBB0_13
## %bb.3:
	movl	$5, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	12(%rdx), %eax
	movl	%eax, 16(%rdx)
	addq	$20, %rdx
	jmp	LBB0_11
LBB0_5:
	movl	$6, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$3, %eax
LBB0_7:
	movl	%eax, %ecx
	movl	(%rdx,%rcx,4), %esi
	subl	4(%rdx,%rcx,4), %esi
	leaq	(%rdx,%rcx,4), %rax
	addq	$4, %rax
	addl	$255, %esi
	sarl	%esi
	movl	%esi, (%rdx,%rcx,4)
	jmp	LBB0_12
LBB0_8:
	movl	12(%rdx), %eax
	jmp	LBB0_10
LBB0_9:
	movl	16(%rdx), %eax
LBB0_10:
	movl	%eax, 20(%rdx)
	addq	$24, %rdx
LBB0_11:
	movq	%rdx, %rax
LBB0_12:
	movl	$127, (%rax)
	movl	$1, %eax
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lg4ff_raw_event                ; -- Begin function lg4ff_raw_event
	.p2align	2
_lg4ff_raw_event:                       ; @lg4ff_raw_event
	.cfi_startproc
; %bb.0:
	ldr	x8, [x4]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #10
	b.hi	LBB0_5
; %bb.3:
	mov	w8, #5
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	w8, [x2, #12]
	str	w8, [x2, #16]
	add	x8, x2, #20
	b	LBB0_12
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	mov	w8, #6
	b	LBB0_8
LBB0_7:
	mov	w8, #3
LBB0_8:
	mov	w9, w8
	lsl	x9, x9, #2
	ldr	w10, [x2, x9]
	add	w8, w8, #1
	add	x8, x2, w8, uxtw #2
	ldr	w11, [x8]
	sub	w10, w10, w11
	add	w10, w10, #255
	asr	w10, w10, #1
	str	w10, [x2, x9]
	b	LBB0_12
LBB0_9:
	ldr	w8, [x2, #12]
	b	LBB0_11
LBB0_10:
	ldr	w8, [x2, #16]
LBB0_11:
	str	w8, [x2, #20]
	add	x8, x2, #24
LBB0_12:
	mov	w9, #127
	str	w9, [x8]
	mov	w0, #1
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
                                        ; -- End function
.subsections_via_symbols
