	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmdc_setup_port
_tmdc_setup_port:                       ## @tmdc_setup_port
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movslq	%r14d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movq	_TMDC_BYTE_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r15,%rax), %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r9b, (%rax)
	movq	_tmdc_models@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	%r9b, %al
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	64(%rbx), %eax
	addq	$64, %rbx
	testb	%al, %al
	jne	LBB0_6
LBB0_8:
	movq	8(%rbx), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r13
	addq	$8, %r13
	movq	%rax, 8(%r14)
	movq	56(%rbx), %rax
	movq	%rax, 40(%r14)
	movq	_TMDC_BYTE_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movb	(%r15,%rsi), %al
	shrb	$4, %al
	movb	%al, 16(%r14)
	xorl	%edx, %edx
	testb	$15, (%r15,%rsi)
	movq	24(%r14), %rcx
	setne	%dl
	shll	$3, %edx
	movl	%edx, (%rcx)
	xorl	%edx, %edx
	testb	$14, (%r15,%rsi)
	setne	%dl
	shll	$3, %edx
	movl	%edx, 4(%rcx)
	movb	(%r15,%rsi), %dl
	andb	$15, %dl
	xorl	%edi, %edi
	cmpb	$3, %dl
	setae	%dil
	shll	$3, %edi
	movl	%edi, 8(%rcx)
	xorl	%edx, %edx
	testb	$12, (%r15,%rsi)
	setne	%dl
	shll	$3, %edx
	movl	%edx, 12(%rcx)
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_9:
	movq	8(%rbx), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r13
	addq	$8, %r13
	movq	%rax, 8(%r14)
	movq	56(%rbx), %rax
	movq	%rax, 40(%r14)
	movb	16(%rbx), %al
	movb	%al, 16(%r14)
	movq	24(%rbx), %rcx
	movq	24(%r14), %rdx
	movl	(%rcx), %esi
	movl	%esi, (%rdx)
	movl	4(%rcx), %esi
	movl	%esi, 4(%rdx)
	movl	8(%rcx), %esi
	movl	%esi, 8(%rdx)
	movl	12(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movq	_TMDC_BYTE_DEF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
LBB0_10:
	movq	48(%rbx), %rcx
	movq	56(%r14), %rdx
	movl	(%rcx), %edi
	movl	%edi, (%rdx)
	movl	4(%rcx), %edi
	movl	%edi, 4(%rdx)
	movl	8(%rcx), %edi
	movl	%edi, 8(%rdx)
	movl	12(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	movl	52(%r14), %edi
	movq	32(%rbx), %rdx
	movzbl	%al, %ecx
	movzbl	(%r15,%rsi), %r8d
	shll	$3, %r8d
	andl	$120, %r8d
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	48(%r14), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	$4, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, 32(%r14)
	movl	52(%r14), %eax
	movl	%eax, 52(%r12)
	movl	48(%r14), %eax
	movl	%eax, 48(%r12)
	movq	_BUS_GAMEPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_GAMEPORT_ID_VENDOR_THRUSTMASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movb	(%rbx), %al
	movb	%al, 32(%r12)
	movl	$256, 36(%r12)                  ## imm = 0x100
	movq	(%r15), %rax
	addq	$8, %rax
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	_tmdc_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_tmdc_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r15d
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%r15d, %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movb	16(%r14), %al
	testb	%al, %al
	je	LBB0_16
## %bb.11:
	movq	_TMDC_ABS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.12:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	movq	-8(%rdx,%r15,8), %rsi
	testq	%rsi, %rsi
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$8, %edx
	movl	$248, %ecx
	movl	$2, %r8d
	movl	$4, %r9d
	callq	_input_set_abs_params
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	16(%rax), %eax
	movl	(%r14), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movzbl	%al, %edx
	cmpq	%rdx, %r15
	jae	LBB0_16
## %bb.45:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%r15), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %r15
	movq	%rdx, %r15
	jl	LBB0_13
LBB0_16:
	cmpl	$0, 40(%rbx)
	jle	LBB0_21
## %bb.17:
	movq	_TMDC_ABS_HAT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_21
## %bb.18:
	movl	$1, %r15d
	movq	_tmdc_abs_hat@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	-8(%rax,%r15,8), %rsi
	movq	%r12, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movslq	40(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%r15), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %r15
	movq	%rax, %r15
	jl	LBB0_19
LBB0_21:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rax
	movl	(%rax), %r12d
	movq	_TMDC_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, %r12d
	jle	LBB0_26
## %bb.22:
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.23:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movl	-4(%rax,%rbx,4), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_set_bit
	movq	24(%r14), %rax
	movslq	(%rax), %r12
	movq	_TMDC_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%r12, %rbx
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	1(%rbx), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %rbx
	movq	%rdx, %rbx
	jl	LBB0_24
LBB0_26:
	movl	4(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_31
## %bb.27:
	testl	%ecx, %ecx
	jle	LBB0_31
## %bb.28:
	movslq	%r12d, %r15
	shlq	$2, %r15
	movl	$1, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rax
	addq	%r15, %rax
	movl	-4(%rax,%r14,4), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_set_bit
	movq	24(%rbx), %rax
	movslq	4(%rax), %r13
	movq	_TMDC_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%r13, %r14
	jge	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	1(%r14), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %r14
	movq	%rdx, %r14
	jl	LBB0_29
LBB0_31:
	addl	%r12d, %r13d
	movl	8(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_32
## %bb.33:
	testl	%ecx, %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_37
## %bb.34:
	movslq	%r13d, %r14
	shlq	$2, %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	addq	%r14, %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	8(%r12), %esi
	callq	_set_bit
	movq	24(%r15), %rax
	movslq	8(%rax), %rdx
	movq	_TMDC_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rdx, %rbx
	jge	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	leaq	1(%rbx), %rsi
	movslq	%ecx, %rdi
	cmpq	%rdi, %rbx
	movq	%rsi, %rbx
	jl	LBB0_35
	jmp	LBB0_37
LBB0_32:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_37:
	cmpl	$0, 12(%rax)
	jle	LBB0_42
## %bb.38:
	testl	%ecx, %ecx
	jle	LBB0_42
## %bb.39:
	addl	%r13d, %edx
	movslq	%edx, %r14
	shlq	$2, %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	addq	%r14, %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	8(%r12), %esi
	callq	_set_bit
	movq	24(%r15), %rax
	movslq	12(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	leaq	1(%rbx), %rax
	movq	_TMDC_BTN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_40
LBB0_42:
	movq	32(%r15), %rdi
	callq	_input_register_device
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_43
LBB0_3:
	movq	%r12, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
LBB0_44:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	xorl	%r13d, %r13d
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TMDC_BYTE_ID,8,3               ## @TMDC_BYTE_ID
	.comm	_tmdc_models,8,3                ## @tmdc_models
	.comm	_TMDC_BYTE_DEF,8,3              ## @TMDC_BYTE_DEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/input%d"

	.comm	_BUS_GAMEPORT,4,2               ## @BUS_GAMEPORT
	.comm	_GAMEPORT_ID_VENDOR_THRUSTMASTER,4,2 ## @GAMEPORT_ID_VENDOR_THRUSTMASTER
	.comm	_tmdc_open,4,2                  ## @tmdc_open
	.comm	_tmdc_close,4,2                 ## @tmdc_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_TMDC_ABS,4,2                   ## @TMDC_ABS
	.comm	_TMDC_ABS_HAT,4,2               ## @TMDC_ABS_HAT
	.comm	_tmdc_abs_hat,8,3               ## @tmdc_abs_hat
	.comm	_TMDC_BTN,4,2                   ## @TMDC_BTN
	.no_dead_strip	_tmdc_setup_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmdc_setup_port
_tmdc_setup_port:                       ; @tmdc_setup_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	ldr	x8, [x21, #8]
	str	x0, [x8, w20, sxtw #3]
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_32
LBB0_2:
Lloh6:
	adrp	x8, _TMDC_BYTE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMDC_BYTE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldrb	w8, [x22, x8]
	strb	w8, [x19]
Lloh9:
	adrp	x9, _tmdc_models@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tmdc_models@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x9]
	ldrb	w9, [x23]
	cbz	w9, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x23, #64]!
	cbnz	w9, LBB0_3
LBB0_5:
	ldr	x9, [x23, #8]
	mov	x24, x19
	str	x9, [x24, #8]!
	ldr	x9, [x23, #56]
	str	x9, [x24, #32]
Lloh12:
	adrp	x9, _TMDC_BYTE_DEF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TMDC_BYTE_DEF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x9]
	ldrb	w9, [x22, x10]
	lsr	w9, w9, #4
	strb	w9, [x24, #8]
	ldr	x11, [x24, #16]
	ldrb	w12, [x22, x10]
	tst	w12, #0xf
	cset	w12, ne
	lsl	w12, w12, #3
	str	w12, [x11]
	ldrb	w12, [x22, x10]
	tst	w12, #0xe
	cset	w12, ne
	lsl	w12, w12, #3
	str	w12, [x11, #4]
	ldrb	w12, [x22, x10]
	and	w12, w12, #0xf
	cmp	w12, #2
	cset	w12, hi
	lsl	w12, w12, #3
	str	w12, [x11, #8]
	ldrb	w12, [x22, x10]
	tst	w12, #0xc
	cset	w12, ne
	lsl	w12, w12, #3
	str	w12, [x11, #12]
	b	LBB0_7
LBB0_6:
	ldr	x9, [x23, #8]
	mov	x24, x19
	str	x9, [x24, #8]!
	ldr	x9, [x23, #56]
	str	x9, [x24, #32]
	ldrb	w9, [x23, #16]
	strb	w9, [x24, #8]
	ldr	x10, [x23, #24]
	ldr	x11, [x24, #16]
	ldr	w12, [x10]
	str	w12, [x11]
	ldr	w12, [x10, #4]
	str	w12, [x11, #4]
	ldr	w12, [x10, #8]
	str	w12, [x11, #8]
	ldr	w10, [x10, #12]
	str	w10, [x11, #12]
Lloh15:
	adrp	x10, _TMDC_BYTE_DEF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TMDC_BYTE_DEF@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
LBB0_7:
	ldr	x11, [x23, #48]
	ldr	x12, [x19, #56]
	ldr	w13, [x11]
	str	w13, [x12]
	ldr	w13, [x11, #4]
	str	w13, [x12, #4]
	ldr	w13, [x11, #8]
	str	w13, [x12, #8]
	ldr	w11, [x11, #12]
	str	w11, [x12, #12]
	ldr	w0, [x19, #52]
	ldr	x2, [x23, #32]
	ldrb	w10, [x22, x10]
	ubfiz	w10, w10, #3, #4
	stp	x10, x8, [sp, #8]
	mov	w8, w9
	str	x8, [sp]
	mov	w22, #4
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x19, #48]
	ldr	x8, [x21]
	ldr	x8, [x8]
	stp	x8, x22, [sp]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	str	x20, [x19, #32]
	ldr	d0, [x19, #48]
	str	d0, [x20, #48]
Lloh20:
	adrp	x8, _BUS_GAMEPORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BUS_GAMEPORT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #44]
Lloh23:
	adrp	x8, _GAMEPORT_ID_VENDOR_THRUSTMASTER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GAMEPORT_ID_VENDOR_THRUSTMASTER@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldrb	w9, [x23]
	strb	w9, [x20, #32]
	mov	w9, #256
	stp	w9, w8, [x20, #36]
	ldr	x8, [x21]
	add	x8, x8, #8
	str	x8, [x20, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_input_set_drvdata
Lloh26:
	adrp	x8, _tmdc_open@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tmdc_open@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _tmdc_close@GOTPAGE
Lloh30:
	ldr	x9, [x9, _tmdc_close@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
Lloh32:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x21, x0
Lloh35:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w21
	ldr	x9, [x20]
	str	w8, [x9]
	ldrb	w8, [x19, #16]
	cbz	w8, LBB0_14
; %bb.8:
Lloh38:
	adrp	x21, _TMDC_ABS@GOTPAGE
Lloh39:
	ldr	x21, [x21, _TMDC_ABS@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24]
	ldr	x1, [x10, x22, lsl #3]
	tbnz	x1, #63, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	w2, #8
	mov	w3, #248
	mov	w4, #2
	mov	w5, #4
	bl	_input_set_abs_params
	ldrb	w8, [x19, #16]
	ldr	w9, [x21]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtb
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x10, w9
	cmp	x22, x10
	b.lt	LBB0_10
LBB0_14:
	ldr	w8, [x23, #40]
Lloh40:
	adrp	x21, _TMDC_ABS_HAT@GOTPAGE
Lloh41:
	ldr	x21, [x21, _TMDC_ABS_HAT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_17
; %bb.15:
	mov	x22, #0
Lloh42:
	adrp	x24, _tmdc_abs_hat@GOTPAGE
Lloh43:
	ldr	x24, [x24, _tmdc_abs_hat@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x20
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	add	x22, x22, #1
	ldrsw	x8, [x23, #40]
	ldrsw	x9, [x21]
	cmp	x22, x8
	ccmp	x22, x9, #0, lt
	b.lt	LBB0_16
LBB0_17:
	ldr	x8, [x19, #24]
	ldr	w22, [x8]
Lloh44:
	adrp	x21, _TMDC_BTN@GOTPAGE
Lloh45:
	ldr	x21, [x21, _TMDC_BTN@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w22, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_20
; %bb.18:
	mov	x23, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20, #8]
	bl	_set_bit
	add	x23, x23, #1
	ldr	x8, [x19, #24]
	ldrsw	x22, [x8]
	ldr	w9, [x21]
	sxtw	x10, w9
	cmp	x23, x22
	ccmp	x23, x10, #0, lt
	b.lt	LBB0_19
LBB0_20:
	ldr	w10, [x8, #4]
	cmp	w10, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_24
; %bb.21:
	mov	x23, #0
	mov	x8, x22
	sbfiz	x24, x8, #2, #32
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, x24
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20, #8]
	bl	_set_bit
	add	x23, x23, #1
	ldr	x8, [x19, #24]
	ldrsw	x10, [x8, #4]
	ldr	w9, [x21]
	sxtw	x11, w9
	cmp	x23, x10
	ccmp	x23, x11, #0, lt
	b.lt	LBB0_22
; %bb.23:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_24:
	add	w22, w10, w22
	ldr	w10, [x8, #8]
	cmp	w10, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_28
; %bb.25:
	mov	x23, #0
	sbfiz	x24, x22, #2, #32
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, x24
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20, #8]
	bl	_set_bit
	add	x23, x23, #1
	ldr	x8, [x19, #24]
	ldrsw	x10, [x8, #8]
	ldr	w9, [x21]
	sxtw	x11, w9
	cmp	x23, x10
	ccmp	x23, x11, #0, lt
	b.lt	LBB0_26
; %bb.27:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_28:
	ldr	w8, [x8, #12]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.lt	LBB0_31
; %bb.29:
	mov	x23, #0
	add	w8, w10, w22
	sbfiz	x22, x8, #2, #32
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, x22
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20, #8]
	bl	_set_bit
	add	x23, x23, #1
	ldr	x8, [x19, #24]
	ldrsw	x8, [x8, #12]
	ldrsw	x9, [x21]
	cmp	x23, x8
	ccmp	x23, x9, #0, lt
	b.lt	LBB0_30
LBB0_31:
	ldr	x0, [x19, #32]
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_33
LBB0_32:
	mov	x0, x20
	bl	_input_free_device
	mov	x0, x19
	bl	_kfree
LBB0_33:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TMDC_BYTE_ID,8,3               ; @TMDC_BYTE_ID
	.comm	_tmdc_models,8,3                ; @tmdc_models
	.comm	_TMDC_BYTE_DEF,8,3              ; @TMDC_BYTE_DEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/input%d"

	.comm	_BUS_GAMEPORT,4,2               ; @BUS_GAMEPORT
	.comm	_GAMEPORT_ID_VENDOR_THRUSTMASTER,4,2 ; @GAMEPORT_ID_VENDOR_THRUSTMASTER
	.comm	_tmdc_open,4,2                  ; @tmdc_open
	.comm	_tmdc_close,4,2                 ; @tmdc_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_TMDC_ABS,4,2                   ; @TMDC_ABS
	.comm	_TMDC_ABS_HAT,4,2               ; @TMDC_ABS_HAT
	.comm	_tmdc_abs_hat,8,3               ; @tmdc_abs_hat
	.comm	_TMDC_BTN,4,2                   ; @TMDC_BTN
	.no_dead_strip	_tmdc_setup_port
.subsections_via_symbols
