	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analog_init_device
_analog_init_device:                    ## @analog_init_device
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_analog_name
	movl	24(%r12), %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	%r14d, %r8d
	callq	_snprintf
	movq	_ANALOG_GAMEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	jne	LBB0_1
## %bb.2:
	movq	_analog_joy_btn@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_analog_pad_btn@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	28(%r12), %eax
	movl	%eax, 52(%rbx)
	movl	24(%r12), %eax
	movl	%eax, 48(%rbx)
	movq	_BUS_GAMEPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_GAMEPORT_ID_VENDOR_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	(%r12), %eax
	sarl	$4, %eax
	movl	%eax, 32(%rbx)
	movl	$256, 36(%rbx)                  ## imm = 0x100
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	24(%rsi), %rax
	addq	$8, %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_input_set_drvdata
	movq	_analog_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_analog_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%r14d, %eax
	movq	%rbx, %r14
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_analog_axes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	%ebx, %edx
	cmovnel	%ecx, %edi
	movslq	%r13d, %rsi
	movq	_ANALOG_SAITEK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r10d
	cmpq	$2, %r15
	cmovnel	%edi, %ecx
	movl	%ecx, %ebx
	sarl	$2, %ebx
	movl	%ecx, %edx
	subl	%ebx, %edx
	movl	%ecx, %r9d
	sarl	$4, %r9d
	testl	%r10d, %r10d
	cmovel	%r8d, %edx
	cmovel	%r8d, %r9d
	cmovel	%edi, %ecx
	movl	(%rax,%rsi,4), %esi
	addl	%ecx, %ecx
	subl	%edx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %r8d
	movq	%r14, %rdi
	callq	_input_set_abs_params
	incl	%r13d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	$4, %r15
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r10d
	btl	%r15d, %r10d
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movl	(%rdx,%r15,4), %ecx
	movl	4(%rdx), %esi
	addl	(%rdx), %esi
	movl	%esi, %edi
	sarl	%edi
	movl	%edi, %edx
	subl	%ecx, %edx
	movl	%edx, %eax
	negl	%eax
	cmovsl	%edx, %eax
	movl	%ecx, %r8d
	sarl	$3, %r8d
	movl	%r15d, %edx
	andl	$2147483646, %edx               ## imm = 0x7FFFFFFE
	xorl	$2, %edx
	movl	%r13d, %ebx
	andl	$-2, %ebx
	xorl	$2, %ebx
	sarl	$4, %esi
	cmpl	%esi, %eax
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %edi
	jmp	LBB0_9
LBB0_11:
	movl	(%r12), %eax
	movq	_analog_exts@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.13:
	movq	_analog_hats@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rbx
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r12), %eax
	movq	(%r13), %rcx
	movl	$2, %r15d
	testl	%eax, 4(%rcx)
	je	LBB0_16
LBB0_15:
	movl	%r15d, %ebx
	movq	_analog_hats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	shlq	$2, %rbx
	movq	%r14, %r13
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_analog_hats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	$2, %r15d
	orq	$4, %rbx
	movl	(%rax,%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r12), %eax
	movq	_analog_exts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_16:
	testl	%eax, 8(%rcx)
	je	LBB0_18
## %bb.17:
	movl	%r15d, %r15d
	movq	_analog_hats@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r14, %rbx
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	(%r13), %rax
	movl	4(%rax,%r15,4), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r12), %eax
LBB0_18:
	xorl	%ebx, %ebx
	testb	$16, %al
	movq	%r14, %r15
	jne	LBB0_19
## %bb.20:
	testb	$32, %al
	jne	LBB0_21
LBB0_22:
	testb	$64, %al
	jne	LBB0_23
LBB0_24:
	testb	$-128, %al
	je	LBB0_26
LBB0_25:
	movq	16(%r12), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movl	(%rax,%rcx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
LBB0_26:
	movq	_ANALOG_BTNS_CHF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:
	movl	%ebx, %r14d
	movq	16(%r12), %rax
	movl	(%rax,%r14,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movq	16(%r12), %rax
	addl	$2, %ebx
	movl	4(%rax,%r14,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
LBB0_28:
	movq	_ANALOG_HBTN_CHF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.29:
	movl	%ebx, %ebx
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movq	16(%r12), %rax
	movl	4(%rax,%rbx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movq	16(%r12), %rax
	movl	8(%rax,%rbx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movq	16(%r12), %rax
	movl	12(%rax,%rbx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
LBB0_30:
	movq	_ANALOG_BTN_TL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_32
## %bb.31:
	movq	_analog_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	movl	(%rbx), %ecx
LBB0_32:
	leal	(%rcx,%rcx), %edx
	testl	%eax, %edx
	je	LBB0_34
## %bb.33:
	movq	_analog_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	movl	(%rbx), %ecx
LBB0_34:
	leal	(,%rcx,4), %edx
	testl	%eax, %edx
	je	LBB0_36
## %bb.35:
	movq	_analog_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	movl	(%rbx), %ecx
LBB0_36:
	shll	$3, %ecx
	testl	%eax, %ecx
	je	LBB0_38
## %bb.37:
	movq	_analog_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
LBB0_38:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	12(%rax), %edx
	movl	8(%rax), %ecx
	movq	%r12, %rdi
	callq	_analog_decode
	movq	8(%r12), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_39
## %bb.40:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	callq	_input_free_device
	jmp	LBB0_41
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_41
LBB0_19:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	movl	$1, %ebx
	testb	$32, %al
	je	LBB0_22
LBB0_21:
	movq	16(%r12), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movl	(%rax,%rcx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	testb	$64, %al
	je	LBB0_24
LBB0_23:
	movq	16(%r12), %rax
	movl	%ebx, %ecx
	incl	%ebx
	movl	(%rax,%rcx,4), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	(%r12), %eax
	testb	$-128, %al
	jne	LBB0_25
	jmp	LBB0_26
LBB0_12:
	xorl	%r15d, %r15d
	testl	%eax, 4(%rcx)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_39:
	xorl	%ebx, %ebx
LBB0_41:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/input%d"

	.comm	_ANALOG_GAMEPAD,4,2             ## @ANALOG_GAMEPAD
	.comm	_analog_pad_btn,8,3             ## @analog_pad_btn
	.comm	_analog_joy_btn,8,3             ## @analog_joy_btn
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_GAMEPORT,4,2               ## @BUS_GAMEPORT
	.comm	_GAMEPORT_ID_VENDOR_ANALOG,4,2  ## @GAMEPORT_ID_VENDOR_ANALOG
	.comm	_analog_open,4,2                ## @analog_open
	.comm	_analog_close,4,2               ## @analog_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_analog_axes,8,3                ## @analog_axes
	.comm	_ANALOG_SAITEK,4,2              ## @ANALOG_SAITEK
	.comm	_analog_exts,8,3                ## @analog_exts
	.comm	_analog_hats,8,3                ## @analog_hats
	.comm	_ANALOG_BTNS_CHF,4,2            ## @ANALOG_BTNS_CHF
	.comm	_ANALOG_HBTN_CHF,4,2            ## @ANALOG_HBTN_CHF
	.comm	_ANALOG_BTN_TL,4,2              ## @ANALOG_BTN_TL
	.comm	_analog_pads,8,3                ## @analog_pads
	.no_dead_strip	_analog_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analog_init_device
_analog_init_device:                    ; @analog_init_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_analog_name
	ldr	w0, [x19, #24]
	ldr	x8, [x20, #24]
	ldr	x3, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ANALOG_GAMEPAD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ANALOG_GAMEPAD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _analog_pad_btn@GOTPAGE
Lloh6:
	ldr	x10, [x10, _analog_pad_btn@GOTPAGEOFF]
Lloh7:
	adrp	x11, _analog_joy_btn@GOTPAGE
Lloh8:
	ldr	x11, [x11, _analog_joy_btn@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	x8, [x8]
	str	x8, [x19, #16]
	bl	_input_allocate_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	d0, [x19, #24]
	str	d0, [x0, #48]
Lloh9:
	adrp	x8, _BUS_GAMEPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUS_GAMEPORT@GOTPAGEOFF]
Lloh11:
	adrp	x9, _GAMEPORT_ID_VENDOR_ANALOG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GAMEPORT_ID_VENDOR_ANALOG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
	ldr	w8, [x19]
	asr	w8, w8, #4
	mov	w9, #256
	stp	w8, w9, [x0, #32]
	ldr	x8, [x20, #24]
	add	x8, x8, #8
	str	x8, [x0, #24]
	mov	x1, x20
	bl	_input_set_drvdata
Lloh15:
	adrp	x8, _analog_open@GOTPAGE
Lloh16:
	ldr	x8, [x8, _analog_open@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _analog_close@GOTPAGE
Lloh19:
	ldr	x9, [x9, _analog_close@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
Lloh21:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x22, x0
Lloh24:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x23, #0
	mov	w24, #0
	orr	w8, w0, w22
	ldr	x9, [x21]
	str	w8, [x9]
Lloh27:
	adrp	x22, _analog_axes@GOTPAGE
Lloh28:
	ldr	x22, [x22, _analog_axes@GOTPAGEOFF]
Lloh29:
	adrp	x25, _ANALOG_SAITEK@GOTPAGE
Lloh30:
	ldr	x25, [x25, _ANALOG_SAITEK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, #4
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	lsr	w9, w8, w23
	tbz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	ldr	w1, [x9, w24, sxtw #2]
	ldr	x9, [x20]
	ldr	w10, [x9, x23, lsl #2]
	ldp	w11, w9, [x9]
	add	w9, w9, w11
	asr	w11, w9, #1
	subs	w12, w11, w10
	cneg	w12, w12, mi
	asr	w13, w10, #3
	and	w14, w23, #0x7ffffffe
	and	w15, w24, #0xfffffffe
	cmp	w12, w9, asr #4
	ccmp	w15, #2, #0, gt
	ccmp	w14, #2, #0, eq
	csel	w9, w11, w10, eq
	ldr	w11, [x25]
	cmp	x23, #2
	csel	w10, w10, w9, eq
	sub	w12, w10, w10, asr #2
	asr	w14, w10, #4
	tst	w11, w8
	csel	w2, w13, w12, eq
	csel	w5, w13, w14, eq
	csel	w8, w9, w10, eq
	lsl	w8, w8, #1
	sub	w3, w8, w2
	ldr	w4, [x20, #16]
	mov	x0, x21
	bl	_input_set_abs_params
	add	w24, w24, #1
	b	LBB0_2
LBB0_5:
Lloh31:
	adrp	x23, _analog_exts@GOTPAGE
Lloh32:
	ldr	x23, [x23, _analog_exts@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	x9, [x23]
	ldr	w10, [x9]
Lloh33:
	adrp	x22, _analog_hats@GOTPAGE
Lloh34:
	ldr	x22, [x22, _analog_hats@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x19]
	ldr	x9, [x23]
	mov	w24, #2
	b	LBB0_9
LBB0_7:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_34
LBB0_8:
	mov	w24, #0
LBB0_9:
	ldr	w10, [x9, #4]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, w24
	ldr	x9, [x22]
	lsl	x25, x8, #2
	ldr	w1, [x9, x25]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x22]
	add	w24, w24, #2
	orr	x9, x25, #0x4
	ldr	w1, [x8, x9]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x19]
	ldr	x9, [x23]
LBB0_11:
	ldr	w9, [x9, #8]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	w8, w24
	ldr	x9, [x22]
	lsl	x23, x8, #2
	ldr	w1, [x9, x23]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x22]
	add	x8, x23, x8
	ldr	w1, [x8, #4]
	mov	x0, x21
	mov	w2, #-1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w8, [x19]
LBB0_13:
	tbnz	w8, #4, LBB0_15
; %bb.14:
	mov	w22, #0
	tbnz	w8, #5, LBB0_16
	b	LBB0_17
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	mov	w22, #1
	tbz	w8, #5, LBB0_17
LBB0_16:
	ldr	x8, [x19, #16]
	add	w23, w22, #1
	ldr	w0, [x8, w22, uxtw #2]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	mov	x22, x23
LBB0_17:
	tbnz	w8, #6, LBB0_35
; %bb.18:
	tbz	w8, #7, LBB0_20
LBB0_19:
	ldr	x8, [x19, #16]
	add	w23, w22, #1
	ldr	w0, [x8, w22, uxtw #2]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	mov	x22, x23
LBB0_20:
Lloh38:
	adrp	x9, _ANALOG_BTNS_CHF@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ANALOG_BTNS_CHF@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	w8, w22
	ldr	x9, [x19, #16]
	lsl	x23, x8, #2
	ldr	w0, [x9, x23]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	w22, w22, #2
	add	x8, x23, x8
	ldr	w0, [x8, #4]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
LBB0_22:
Lloh41:
	adrp	x9, _ANALOG_HBTN_CHF@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ANALOG_HBTN_CHF@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	w8, w22
	ldr	x9, [x19, #16]
	lsl	x22, x8, #2
	ldr	w0, [x9, x22]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	x8, x22, x8
	ldr	w0, [x8, #4]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	x8, x22, x8
	ldr	w0, [x8, #8]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	x8, x22, x8
	ldr	w0, [x8, #12]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
LBB0_24:
Lloh44:
	adrp	x23, _ANALOG_BTN_TL@GOTPAGE
Lloh45:
	ldr	x23, [x23, _ANALOG_BTN_TL@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh46:
	adrp	x22, _analog_pads@GOTPAGE
Lloh47:
	ldr	x22, [x22, _analog_pads@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	ldr	w9, [x23]
LBB0_26:
	tst	w8, w9, lsl #1
	b.eq	LBB0_28
; %bb.27:
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	ldr	w9, [x23]
LBB0_28:
	tst	w8, w9, lsl #2
	b.eq	LBB0_30
; %bb.29:
	ldr	x8, [x22]
	ldr	w0, [x8, #8]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	ldr	w9, [x23]
LBB0_30:
	tst	w8, w9, lsl #3
	b.eq	LBB0_32
; %bb.31:
	ldr	x8, [x22]
	ldr	w0, [x8, #12]
	ldr	w1, [x21, #8]
	bl	_set_bit
LBB0_32:
	ldr	x1, [x20]
	ldp	w3, w2, [x20, #8]
	mov	x0, x19
	bl	_analog_decode
	ldr	x0, [x19, #8]
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_34
; %bb.33:
	ldr	x0, [x19, #8]
	bl	_input_free_device
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_35:
	ldr	x8, [x19, #16]
	add	w23, w22, #1
	ldr	w0, [x8, w22, uxtw #2]
	ldr	w1, [x21, #8]
	bl	_set_bit
	ldr	w8, [x19]
	mov	x22, x23
	tbnz	w8, #7, LBB0_19
	b	LBB0_20
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/input%d"

	.comm	_ANALOG_GAMEPAD,4,2             ; @ANALOG_GAMEPAD
	.comm	_analog_pad_btn,8,3             ; @analog_pad_btn
	.comm	_analog_joy_btn,8,3             ; @analog_joy_btn
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_GAMEPORT,4,2               ; @BUS_GAMEPORT
	.comm	_GAMEPORT_ID_VENDOR_ANALOG,4,2  ; @GAMEPORT_ID_VENDOR_ANALOG
	.comm	_analog_open,4,2                ; @analog_open
	.comm	_analog_close,4,2               ; @analog_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_analog_axes,8,3                ; @analog_axes
	.comm	_ANALOG_SAITEK,4,2              ; @ANALOG_SAITEK
	.comm	_analog_exts,8,3                ; @analog_exts
	.comm	_analog_hats,8,3                ; @analog_hats
	.comm	_ANALOG_BTNS_CHF,4,2            ; @ANALOG_BTNS_CHF
	.comm	_ANALOG_HBTN_CHF,4,2            ; @ANALOG_HBTN_CHF
	.comm	_ANALOG_BTN_TL,4,2              ; @ANALOG_BTN_TL
	.comm	_analog_pads,8,3                ; @analog_pads
	.no_dead_strip	_analog_init_device
.subsections_via_symbols
