	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_config_loop
_key_config_loop:                       ## @key_config_loop
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	$0, -92(%rbp)
	movq	_IN_MAX_DEVS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_41
## %bb.1:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	leal	-1(%rsi), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movl	$-1, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	movl	%r14d, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%rax, %r12
	callq	_in_get_dev_name
	testl	%ebx, %ebx
	cmovsl	%r14d, %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	cmovel	%r15d, %ebx
	addl	%ecx, %r13d
	movq	%r12, %rax
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_2
## %bb.3:
	cmpl	$-1, %ebx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_41
## %bb.4:
	xorl	%eax, %eax
	cmpl	$1, %ebx
	sete	%al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jns	LBB0_5
## %bb.6:
	movq	_IN_BINDTYPE_EMU@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_41:
	leaq	L_.str(%rip), %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lprintf                        ## TAILCALL
LBB0_5:
	movq	_IN_BINDTYPE_PLAYER12@GOTPCREL(%rip), %rax
LBB0_7:
	shll	$4, -48(%rbp)                   ## 4-byte Folded Spill
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movl	$-1, %eax
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_33 Depth 4
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movl	%eax, %r14d
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_33 Depth 4
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_33 Depth 4
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_draw_key_config
	movl	$135, %edi
	xorl	%esi, %esi
	movl	$100, %edx
	callq	_in_menu_wait
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=4
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_42:                                ##   in Loop: Header=BB0_11 Depth=4
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%r15,%rax,4), %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%r14d, %edi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_in_unbind_all
	jmp	LBB0_11
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_40
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	xorl	%edi, %edi
	movl	$30, %esi
	callq	_in_menu_wait_any
	testb	$-126, %al
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	$1, (%rsp)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_draw_key_config
	movl	$1, -88(%rbp)
	leaq	-88(%rbp), %rbx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	leaq	-52(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$-1, %ecx
	callq	_in_update_keycode
	cmpl	$0, -88(%rbp)
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	%eax, %r15d
	movl	-52(%rbp), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_count_bound_keys
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %edi
	movq	_IN_CFG_DOES_COMBOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-92(%rbp), %rdx
	callq	_in_get_config
	movl	-116(%rbp), %edx                ## 4-byte Reload
	cmpl	$1, %edx
	jne	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	_IN_BINDTYPE_EMU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setne	%al
	cmpl	$0, -92(%rbp)
	sete	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_10 Depth=3
	testl	%edx, %edx
	jg	LBB0_38
	jmp	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_10 Depth=3
	jl	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	-52(%rbp), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%ebx, %edx
	callq	_in_unbind_all
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_10 Depth=3
	movl	-52(%rbp), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%r15d, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_in_bind_key
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%ebx, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	movl	$1, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%ebx, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	1(%rbx), %ecx
	xorl	%eax, %eax
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpl	%edx, %ebx
	cmovll	%ecx, %eax
	movl	%eax, %r15d
	movl	%esi, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
	movl	(%r12), %ecx
	movl	%r14d, %eax
	testl	%ecx, %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$-1, %r14d
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=2
	cmpl	%ecx, %r14d
	jge	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_in_get_dev_name
	testq	%rax, %rax
	jne	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_25 Depth=2
	incl	%ebx
	incl	%r14d
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_25
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%r14), %eax
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%ecx
	testl	%r14d, %r14d
	movl	%ecx, %r14d
	cmovnsl	%eax, %r14d
	cmpl	$-1, %r14d
	je	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_in_get_dev_name
	testq	%rax, %rax
	jne	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	leal	-1(%r14), %eax
	movl	(%r12), %ecx
	incl	%ebx
	cmpl	%ecx, %ebx
	jl	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$-1, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_40:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_13
	.long	L0_0_set_30
	.long	L0_0_set_40
	.long	L0_0_set_42
	.long	L0_0_set_15
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_IN_MAX_DEVS,4,2                ## @IN_MAX_DEVS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no devs, can't do config\n"

	.comm	_IN_BINDTYPE_PLAYER12,4,2       ## @IN_BINDTYPE_PLAYER12
	.comm	_IN_BINDTYPE_EMU,4,2            ## @IN_BINDTYPE_EMU
	.comm	_IN_CFG_DOES_COMBOS,4,2         ## @IN_CFG_DOES_COMBOS
	.no_dead_strip	_key_config_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_config_loop
_key_config_loop:                       ; @key_config_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	wzr, [sp, #44]
Lloh0:
	adrp	x24, _IN_MAX_DEVS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IN_MAX_DEVS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.1:
	mov	x27, x2
	mov	x20, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	w23, #0
	mov	w22, #0
	sub	w8, w1, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w19, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #1
	mov	w2, #0
	bl	_in_get_dev_name
	cmp	w19, #0
	csel	w8, w23, w19, lt
	cmp	x0, #0
	csel	w19, w19, w8, eq
	cinc	w22, w22, ne
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w23, w8
	b.lt	LBB0_2
; %bb.3:
	cmn	w19, #1
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.eq	LBB0_36
; %bb.4:
	mov	w26, #0
	cmp	w27, #1
	cset	w8, eq
	lsl	w24, w8, #4
Lloh2:
	adrp	x8, _IN_BINDTYPE_PLAYER12@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IN_BINDTYPE_PLAYER12@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IN_BINDTYPE_EMU@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IN_BINDTYPE_EMU@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x9, x8, lt
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	mov	w8, #-1
Lloh6:
	adrp	x21, lJTI0_0@PAGE
Lloh7:
	add	x21, x21, lJTI0_0@PAGEOFF
	mov	w28, #130
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_13 Depth 4
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	mov	x25, x8
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_13 Depth 4
	sxtw	x19, w26
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=3
	ldr	w8, [x23, x19, lsl #2]
	lsl	w1, w8, w24
	mov	x0, x25
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_in_unbind_all
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_13 Depth 4
	mov	x0, x23
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	mov	x4, x25
	mov	x5, x22
	mov	w6, #0
	bl	_draw_key_config
	mov	w0, #135
	mov	x1, #0
	mov	w2, #100
	bl	_in_menu_wait
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	adr	x9, LBB0_7
	ldrb	w10, [x21, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=3
	cmp	w26, w20
	b.ge	LBB0_37
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	mov	x0, #0
	mov	w1, #30
	bl	_in_menu_wait_any
	tst	w0, w28
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	x0, x23
	mov	x23, x20
	mov	x1, x20
	mov	x20, x27
	mov	x2, x27
	mov	x3, x26
	mov	x4, x25
	mov	x5, x22
	mov	w6, #1
	bl	_draw_key_config
	mov	w8, #1
	str	w8, [sp, #36]
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	x0, sp, #40
	add	x1, sp, #36
	mov	x2, #0
	mov	w3, #-1
	bl	_in_update_keycode
	ldr	w8, [sp, #36]
	cbnz	w8, LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	x26, x0
	ldr	w0, [sp, #40]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x19, lsl #2]
	lsl	w1, w8, w24
	ldr	w21, [sp, #32]                  ; 4-byte Folded Reload
	mov	x2, x21
	bl	_count_bound_keys
	mov	x27, x0
	ldr	w0, [sp, #40]
Lloh8:
	adrp	x8, _IN_CFG_DOES_COMBOS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IN_CFG_DOES_COMBOS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #44
	bl	_in_get_config
	cmp	w27, #1
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=3
Lloh11:
	adrp	x8, _IN_BINDTYPE_EMU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IN_BINDTYPE_EMU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [sp, #44]
	cmp	w9, #0
	ccmp	w21, w8, #0, ne
	ccmp	w27, #0, #4, ne
	mov	x27, x20
	mov	x20, x23
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.gt	LBB0_17
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=3
	mov	x27, x20
	mov	x20, x23
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.lt	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w0, [sp, #40]
	ldr	w8, [x23, x19, lsl #2]
	lsl	w1, w8, w24
	mov	x2, x21
	bl	_in_unbind_all
	ldr	w21, [sp, #32]                  ; 4-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w0, [sp, #40]
	ldr	w8, [x23, x19, lsl #2]
	lsl	w2, w8, w24
	mov	x1, x26
	mov	x3, x21
	mov	w4, #0
	bl	_in_bind_key
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
Lloh14:
	adrp	x21, lJTI0_0@PAGE
Lloh15:
	add	x21, x21, lJTI0_0@PAGEOFF
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=2
	sub	w8, w26, #1
	mov	w9, #1
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w8, #0
	add	w10, w26, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w26, w9
	csel	w26, w10, w8, lt
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w25, #1
Lloh16:
	adrp	x9, _IN_MAX_DEVS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
LBB0_24:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w10, w25, w19
	add	w0, w10, #1
	mov	w8, #-1
	cmn	w10, #2
	b.eq	LBB0_5
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	cmp	w0, w9
	b.ge	LBB0_5
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	w1, #0
	mov	w2, #0
	bl	_in_get_dev_name
	cbnz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
	add	w19, w19, #1
Lloh19:
	adrp	x8, _IN_MAX_DEVS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
	cmp	w19, w9
	b.lt	LBB0_24
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w25, w19
	add	w8, w8, #1
	b	LBB0_5
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w25, #1
Lloh22:
	adrp	x9, _IN_MAX_DEVS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tbnz	w9, #31, LBB0_5
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #-1
LBB0_31:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w9, #1
	cmp	w25, #0
	csel	w25, w9, w8, lt
	cmn	w25, #1
	b.eq	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	mov	x0, x25
	mov	w1, #0
	mov	w2, #0
	bl	_in_get_dev_name
	cbnz	x0, LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=2
	sub	w8, w25, #1
Lloh25:
	adrp	x9, _IN_MAX_DEVS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	add	w19, w19, #1
	cmp	w19, w9
	b.lt	LBB0_31
	b	LBB0_5
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #-1
	b	LBB0_5
LBB0_35:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x25
	b	LBB0_5
LBB0_36:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_lprintf
LBB0_37:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_37-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
                                        ; -- End function
	.comm	_IN_MAX_DEVS,4,2                ; @IN_MAX_DEVS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no devs, can't do config\n"

	.comm	_IN_BINDTYPE_PLAYER12,4,2       ; @IN_BINDTYPE_PLAYER12
	.comm	_IN_BINDTYPE_EMU,4,2            ; @IN_BINDTYPE_EMU
	.comm	_IN_CFG_DOES_COMBOS,4,2         ; @IN_CFG_DOES_COMBOS
	.no_dead_strip	_key_config_loop
.subsections_via_symbols
