	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iforce_report_hats_buttons
_iforce_report_hats_buttons:            ## @iforce_report_hats_buttons
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iforce_hat_to_axis@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	24(%r15), %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,8), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	24(%r15), %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	4(%rax,%rcx,8), %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	js	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	20(%r15,%rax,4), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax,%rbx,8), %rsi
	incq	%rbx
	testq	%rsi, %rsi
	jns	LBB0_2
## %bb.3:
	cmpl	$8, %ebx
	ja	LBB0_18
LBB0_4:
	movl	24(%r15), %r15d
	movq	_ABS_HAT1X@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movl	$3, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	jmp	LBB0_10
LBB0_7:
	movl	$1, %edi
	callq	_BIT
	movl	(%rbx), %esi
	movq	%r14, %rdi
	testl	%r15d, %eax
	je	LBB0_9
## %bb.8:
	movl	$1, %edx
	jmp	LBB0_10
LBB0_9:
	xorl	%edx, %edx
LBB0_10:
	callq	_input_report_abs
LBB0_11:
	movq	_ABS_HAT1Y@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	xorl	%edi, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	jmp	LBB0_16
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$2, %edi
	callq	_BIT
	movl	(%rbx), %esi
	movq	%r14, %rdi
	testl	%r15d, %eax
	je	LBB0_17
## %bb.15:
	movl	$1, %edx
	jmp	LBB0_16
LBB0_17:
	xorl	%edx, %edx
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_abs               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_iforce_hat_to_axis,8,3         ## @iforce_hat_to_axis
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_ABS_HAT1X,4,2                  ## @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ## @ABS_HAT1Y
	.no_dead_strip	_iforce_report_hats_buttons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iforce_report_hats_buttons
_iforce_report_hats_buttons:            ; @iforce_report_hats_buttons
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _iforce_hat_to_axis@GOTPAGE
Lloh4:
	ldr	x22, [x22, _iforce_hat_to_axis@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x20, #24]
	asr	w9, w9, #4
	sbfiz	x9, x9, #3, #32
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_input_report_abs
Lloh5:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	w9, [x20, #24]
	asr	w9, w9, #4
	add	x8, x8, w9, sxtw #3
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_input_report_abs
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x1, [x8]
	tbnz	x1, #63, LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ubfx	x8, x8, #3, #29
	add	w8, w8, #5
	ldr	w8, [x20, w8, uxtw #2]
	and	w9, w23, #0x7
	lsl	w9, w22, w9
	and	w2, w8, w9
	mov	x0, x19
	bl	_input_report_key
	add	x8, x23, #1
	ldr	x9, [x21]
	ldr	x9, [x9]
	add	x9, x9, x23, lsl #3
	ldr	x1, [x9, #8]
	tbz	x1, #63, LBB0_2
; %bb.3:
	cmp	w8, #8
	b.hi	LBB0_14
LBB0_4:
	ldr	w20, [x20, #24]
Lloh8:
	adrp	x21, _ABS_HAT1X@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ABS_HAT1X@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.5:
	mov	w0, #3
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-1
	b	LBB0_10
LBB0_7:
	mov	w0, #1
	bl	_BIT
	ldr	w1, [x21]
	tst	w0, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w2, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w2, #0
LBB0_10:
	bl	_input_report_abs
LBB0_11:
Lloh10:
	adrp	x21, _ABS_HAT1Y@GOTPAGE
Lloh11:
	ldr	x21, [x21, _ABS_HAT1Y@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.12:
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_15
; %bb.13:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-1
	b	LBB0_18
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w0, #2
	bl	_BIT
	ldr	w1, [x21]
	tst	w0, w20
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w2, #1
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w2, #0
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_report_abs
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_iforce_hat_to_axis,8,3         ; @iforce_hat_to_axis
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_ABS_HAT1X,4,2                  ; @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ; @ABS_HAT1Y
	.no_dead_strip	_iforce_report_hats_buttons
.subsections_via_symbols
