	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grip_poll
_grip_poll:                             ## @grip_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_gameport_get_drvdata
	movq	%rax, %r14
	movq	_GRIP_LENGTH_XT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movb	$1, %r12b
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r14), %edi
	addl	%esi, %esi
	orl	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_grip_gpp_read_packet
	testl	%eax, %eax
	je	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	8(%r14)
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_input_sync
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %esi
	testb	$1, %r12b
	movl	$0, %r12d
	je	LBB0_22
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movq	24(%r14), %rax
	movq	(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	16(%r14)
	movq	(%r14), %rax
	movl	(%rax,%rsi,4), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r14), %edi
	addl	%esi, %esi
	orl	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_grip_xt_read_packet
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$2, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$8, %edx
	notl	%edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_BRAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	shrl	$2, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_GAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	andl	$1, %edx
	btl	$1, %eax
	sbbl	$0, %edx
	negl	%edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	shll	$28, %edx
	sarl	$31, %edx
	btl	$2, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT1X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	shll	$27, %edx
	sarl	$31, %edx
	btl	$5, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT1Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movsbl	%al, %edx
	sarl	$7, %edx
	btl	$6, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_grip_btn_xt@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movl	12(%r15), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movl	12(%r15), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movl	12(%r15), %edx
	shrl	$6, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movl	12(%r15), %edx
	shrl	$7, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	20(%rax), %esi
	movl	12(%r15), %edx
	shrl	$8, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	24(%rax), %esi
	movl	12(%r15), %edx
	shrl	$9, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	28(%rax), %esi
	movl	12(%r15), %edx
	shrl	$10, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	32(%rax), %esi
	movl	12(%r15), %edx
	shrl	$11, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	36(%rax), %esi
	movl	12(%r15), %edx
	shrl	$12, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	40(%rax), %esi
	movl	12(%r15), %edx
	shrl	$13, %edx
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r14), %edi
	addl	%esi, %esi
	orl	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_grip_xt_read_packet
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$2, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	shrl	$2, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	andl	$1, %edx
	btl	$1, %eax
	sbbl	$0, %edx
	negl	%edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	shll	$28, %edx
	sarl	$31, %edx
	btl	$2, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_grip_btn_dc@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movl	12(%r15), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movl	12(%r15), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movl	12(%r15), %edx
	shrl	$6, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movl	12(%r15), %edx
	shrl	$7, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	20(%rax), %esi
	movl	12(%r15), %edx
	shrl	$8, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	24(%rax), %esi
	movl	12(%r15), %edx
	shrl	$9, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	28(%rax), %esi
	movl	12(%r15), %edx
	shrl	$10, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	32(%rax), %esi
	movl	12(%r15), %edx
	shrl	$11, %edx
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r14), %edi
	addl	%esi, %esi
	orl	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_grip_xt_read_packet
	testl	%eax, %eax
	jne	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$2, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$8, %edx
	notl	%edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	shrl	$8, %edx
	andl	$63, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	andl	$1, %edx
	btl	$1, %eax
	sbbl	$0, %edx
	negl	%edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %eax
	movl	%eax, %edx
	shll	$28, %edx
	sarl	$31, %edx
	btl	$2, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_grip_btn_bd@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movl	12(%r15), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movl	12(%r15), %edx
	shrl	$6, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movl	12(%r15), %edx
	shrl	$7, %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movl	12(%r15), %edx
	shrl	$8, %edx
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	%eax, %edx
	shll	$15, %edx
	sarl	$31, %edx
	btl	$15, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	%eax, %edx
	shll	$19, %edx
	sarl	$31, %edx
	btl	$13, %eax
	adcl	$0, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r13
	cmpq	$12, %r13
	je	LBB0_3
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_grip_btn_gpp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	(%r15), %eax
	xorl	%edx, %edx
	btl	%r13d, %eax
	setb	%dl
	movq	%rbx, %rdi
	callq	_input_report_key
	jmp	LBB0_18
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_GRIP_LENGTH_XT,4,2             ## @GRIP_LENGTH_XT
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_grip_btn_gpp,8,3               ## @grip_btn_gpp
	.comm	_ABS_THROTTLE,4,2               ## @ABS_THROTTLE
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_grip_btn_bd,8,3                ## @grip_btn_bd
	.comm	_ABS_BRAKE,4,2                  ## @ABS_BRAKE
	.comm	_ABS_GAS,4,2                    ## @ABS_GAS
	.comm	_ABS_HAT1X,4,2                  ## @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ## @ABS_HAT1Y
	.comm	_grip_btn_xt,8,3                ## @grip_btn_xt
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_grip_btn_dc,8,3                ## @grip_btn_dc
	.no_dead_strip	_grip_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grip_poll
_grip_poll:                             ; @grip_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_gameport_get_drvdata
	mov	x19, x0
Lloh3:
	adrp	x8, _GRIP_LENGTH_XT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRIP_LENGTH_XT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x8, #0
Lloh8:
	adrp	x25, lJTI0_0@PAGE
Lloh9:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w9, #1
Lloh10:
	adrp	x28, _grip_btn_xt@GOTPAGE
Lloh11:
	ldr	x28, [x28, _grip_btn_xt@GOTPAGEOFF]
Lloh12:
	adrp	x27, _grip_btn_gpp@GOTPAGE
Lloh13:
	ldr	x27, [x27, _grip_btn_gpp@GOTPAGEOFF]
Lloh14:
	adrp	x24, _grip_btn_dc@GOTPAGE
Lloh15:
	ldr	x24, [x24, _grip_btn_dc@GOTPAGEOFF]
Lloh16:
	adrp	x26, _grip_btn_bd@GOTPAGE
Lloh17:
	ldr	x26, [x26, _grip_btn_bd@GOTPAGEOFF]
	b	LBB0_5
LBB0_1:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #12]
	lsl	w8, w8, #1
	orr	w1, w8, #0x4
	mov	x2, x20
	bl	_grip_gpp_read_packet
	cbz	w0, LBB0_15
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_input_sync
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
	mov	w8, #1
	tbz	w22, #0, LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x22, x9
	ldr	x9, [x19, #24]
	ldr	x21, [x9, x8, lsl #3]
	cbz	x21, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
	ldr	x9, [x19]
	ldr	w9, [x9, x8, lsl #2]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x10, LBB0_1
	ldrh	w11, [x25, x9, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #12]
	lsl	w8, w8, #1
	orr	w1, w8, #0x4
	mov	x2, x20
	bl	_grip_xt_read_packet
	cbnz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _ABS_X@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w2, w8, #2, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x20]
	mov	w9, #63
	bic	w2, w9, w8, lsr #8
	mov	x0, x21
	bl	_input_report_abs
Lloh24:
	adrp	x8, _ABS_BRAKE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_BRAKE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	ubfx	w2, w8, #2, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh27:
	adrp	x8, _ABS_GAS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_GAS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh30:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh33:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #1, #1
	and	w8, w8, #0x1
	sub	w2, w9, w8
	mov	x0, x21
	bl	_input_report_abs
Lloh36:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #2, #1
	lsl	w8, w8, #28
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
Lloh39:
	adrp	x8, _ABS_HAT1X@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ABS_HAT1X@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #5, #1
	lsl	w8, w8, #27
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
Lloh42:
	adrp	x8, _ABS_HAT1Y@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ABS_HAT1Y@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #6, #1
	lsl	w8, w8, #24
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
	ldr	x8, [x28]
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #3, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #4, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #5, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #12]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #6, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #16]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #7, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #20]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #8, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #24]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #9, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #28]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #10, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #32]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #11, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #36]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #12, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x28]
	ldr	w1, [x8, #40]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #13, #1
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #12]
	lsl	w8, w8, #1
	orr	w1, w8, #0x4
	mov	x2, x20
	bl	_grip_xt_read_packet
	cbnz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh45:
	adrp	x8, _ABS_X@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w2, w8, #2, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh48:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh51:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	ubfx	w2, w8, #2, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh54:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh57:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh60:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #1, #1
	and	w8, w8, #0x1
	sub	w2, w9, w8
	mov	x0, x21
	bl	_input_report_abs
Lloh63:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #2, #1
	lsl	w8, w8, #28
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
	ldr	x8, [x24]
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #3, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #4, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #5, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #12]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #6, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #16]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #7, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #20]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #8, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #24]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #9, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #28]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #10, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x24]
	ldr	w1, [x8, #32]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #11, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #12]
	lsl	w8, w8, #1
	orr	w1, w8, #0x4
	mov	x2, x20
	bl	_grip_xt_read_packet
	cbnz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh66:
	adrp	x8, _ABS_X@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w2, w8, #2, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh69:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	ldr	w8, [x20]
	mov	w9, #63
	bic	w2, w9, w8, lsr #8
	mov	x0, x21
	bl	_input_report_abs
Lloh72:
	adrp	x8, _ABS_THROTTLE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ABS_THROTTLE@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w2, w8, #8, #6
	mov	x0, x21
	bl	_input_report_abs
Lloh75:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #1, #1
	and	w8, w8, #0x1
	sub	w2, w9, w8
	mov	x0, x21
	bl	_input_report_abs
Lloh78:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh79:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	ubfx	w9, w8, #2, #1
	lsl	w8, w8, #28
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
	ldr	x8, [x26]
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #4, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #5, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #6, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #12]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #7, #1
	mov	x0, x21
	bl	_input_report_key
	ldr	x8, [x26]
	ldr	w1, [x8, #16]
	ldr	w8, [x20, #12]
	ubfx	w2, w8, #8, #1
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_input_report_key
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh81:
	adrp	x8, _ABS_X@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w9, w8, #15, #1
	lsl	w8, w8, #15
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
Lloh84:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ubfx	w9, w8, #13, #1
	lsl	w8, w8, #19
	add	w2, w9, w8, asr #31
	mov	x0, x21
	bl	_input_report_abs
	mov	x23, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x23, x23, #1
	cmp	x23, #12
	b.eq	LBB0_3
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	ldr	w1, [x8, x23, lsl #2]
	cbz	w1, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x20]
	lsr	w8, w8, w23
	and	w2, w8, #0x1
	mov	x0, x21
	bl	_input_report_key
	b	LBB0_16
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh87:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh88:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh89:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_8-LBB0_1)>>2
	.short	(LBB0_1-LBB0_1)>>2
	.short	(LBB0_10-LBB0_1)>>2
	.short	(LBB0_12-LBB0_1)>>2
                                        ; -- End function
	.comm	_GRIP_LENGTH_XT,4,2             ; @GRIP_LENGTH_XT
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_grip_btn_gpp,8,3               ; @grip_btn_gpp
	.comm	_ABS_THROTTLE,4,2               ; @ABS_THROTTLE
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_grip_btn_bd,8,3                ; @grip_btn_bd
	.comm	_ABS_BRAKE,4,2                  ; @ABS_BRAKE
	.comm	_ABS_GAS,4,2                    ; @ABS_GAS
	.comm	_ABS_HAT1X,4,2                  ; @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ; @ABS_HAT1Y
	.comm	_grip_btn_xt,8,3                ; @grip_btn_xt
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_grip_btn_dc,8,3                ; @grip_btn_dc
	.no_dead_strip	_grip_poll
.subsections_via_symbols
