	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsia6b_serio_irq
_fsia6b_serio_irq:                      ## @fsia6b_serio_irq
	.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
	callq	_serio_get_drvdata
	movq	%rax, %r15
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movb	$0, (%r15)
	movl	4(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_17
## %bb.2:
	movl	$129, 4(%r15)
	jmp	LBB0_17
LBB0_3:
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	movl	$0, (%rax,%rdx,4)
	incq	%rdx
	movq	%rdx, 16(%r15)
	movq	_IBUS_SERVO_COUNT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_16
## %bb.4:
	movq	$0, 16(%r15)
	movl	$128, 4(%r15)
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	_fsia6b_axes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-4(%rcx,%rbx,4), %esi
	movl	-4(%rax,%rbx,4), %edx
	callq	_input_report_abs
	movq	8(%r15), %rax
	movl	-4(%rax,%rbx,4), %r12d
	xorl	%r13d, %r13d
	cmpl	$1100, %r12d                    ## imm = 0x44C
	setl	%cl
	movq	_switch_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%rbx,4), %eax
	cmpl	$49, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$50, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$51, %eax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	cmpl	$1100, %r12d                    ## imm = 0x44C
	setl	%al
	cmpl	$1901, %r12d                    ## imm = 0x76D
	setge	%cl
	xorb	%al, %cl
	xorb	$1, %cl
	movzbl	%cl, %edx
	movl	24(%r15), %edi
	leal	1(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %esi
	callq	_input_report_key
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	cmpl	$1901, %r12d                    ## imm = 0x76D
	setge	%dl
	movl	24(%r15), %edi
	leal	1(%r14), %r12d
	movl	%r14d, %esi
	callq	_input_report_key
	movl	%r12d, %r14d
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, %r13b
	movl	24(%r15), %edi
	leal	1(%r14), %r12d
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movl	%r12d, %r14d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_IBUS_SERVO_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	incq	%rbx
	jmp	LBB0_6
LBB0_16:
	movl	$130, 4(%r15)
	jmp	LBB0_17
LBB0_15:
	movl	24(%r15), %edi
	callq	_input_sync
LBB0_17:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_0,4,2                      ## @BTN_0
	.comm	_IBUS_SERVO_COUNT,4,2           ## @IBUS_SERVO_COUNT
	.comm	_fsia6b_axes,8,3                ## @fsia6b_axes
	.comm	_switch_config,8,3              ## @switch_config
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fsia6b_serio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsia6b_serio_irq
_fsia6b_serio_irq:                      ; @fsia6b_serio_irq
	.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
	bl	_serio_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _BTN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	strb	wzr, [x0]
	ldr	w8, [x0, #4]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.2:
	mov	w8, #129
	b	LBB0_15
LBB0_3:
	ldp	x8, x9, [x19, #8]
	str	wzr, [x8, x9, lsl #2]
	add	x10, x9, #1
	str	x10, [x19, #16]
Lloh3:
	adrp	x22, _IBUS_SERVO_COUNT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IBUS_SERVO_COUNT@GOTPAGEOFF]
	ldrsw	x9, [x22]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.4:
	str	xzr, [x19, #16]
	mov	w10, #128
	str	w10, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.5:
	mov	x23, #0
Lloh5:
	adrp	x24, _fsia6b_axes@GOTPAGE
Lloh6:
	ldr	x24, [x24, _fsia6b_axes@GOTPAGEOFF]
Lloh7:
	adrp	x25, _switch_config@GOTPAGE
Lloh8:
	ldr	x25, [x25, _switch_config@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	x9, [x24]
	lsl	x27, x23, #2
	ldr	w1, [x9, x27]
	ldr	w2, [x8, x27]
	bl	_input_report_abs
	ldr	x8, [x19, #8]
	ldr	w26, [x8, x27]
	cmp	w26, #1100
	cset	w21, lt
	ldr	x8, [x25]
	ldr	w8, [x8, x27]
	cmp	w8, #49
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #50
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #51
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #1100
	cset	w8, lt
	cmp	w26, #1900
	cset	w9, gt
	eor	w8, w8, w9
	eor	w2, w8, #0x1
	ldr	w0, [x19, #24]
	add	w27, w20, #1
	mov	x1, x20
	bl	_input_report_key
	mov	x20, x27
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #1900
	cset	w2, gt
	ldr	w0, [x19, #24]
	add	w26, w20, #1
	mov	x1, x20
	bl	_input_report_key
	mov	x20, x26
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #24]
	add	w26, w20, #1
	mov	x1, x20
	mov	x2, x21
	bl	_input_report_key
	mov	x20, x26
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_6
LBB0_14:
	mov	w8, #130
LBB0_15:
	str	w8, [x19, #4]
	b	LBB0_17
LBB0_16:
	ldr	w0, [x19, #24]
	bl	_input_sync
LBB0_17:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_0,4,2                      ; @BTN_0
	.comm	_IBUS_SERVO_COUNT,4,2           ; @IBUS_SERVO_COUNT
	.comm	_fsia6b_axes,8,3                ; @fsia6b_axes
	.comm	_switch_config,8,3              ; @switch_config
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fsia6b_serio_irq
.subsections_via_symbols
