	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_get_slot_by_key       ## -- Begin function input_mt_get_slot_by_key
	.p2align	4, 0x90
_input_mt_get_slot_by_key:              ## @input_mt_get_slot_by_key
	.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
	movq	(%rdi), %r12
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_13
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_13
## %bb.2:
	movl	%esi, %r15d
	movq	8(%r12), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	movq	8(%r12), %r13
	movslq	(%r12), %rax
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	cmpq	%rcx, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_input_mt_is_active
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %r13
	jmp	LBB0_11
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %r13
	movslq	(%r12), %rax
	shlq	$2, %rax
	addq	8(%r12), %rax
	cmpq	%rax, %r13
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_input_mt_is_active
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_input_mt_is_used
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	%r15d, (%r13)
LBB0_11:
	subq	8(%r12), %r13
	shrq	$2, %r13
	movl	%r13d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_get_slot_by_key       ; -- Begin function input_mt_get_slot_by_key
	.p2align	2
_input_mt_get_slot_by_key:              ; @input_mt_get_slot_by_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_13
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_13
; %bb.2:
	mov	x20, x1
	ldr	x21, [x19, #8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #4
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x10, x8, x9, lsl #2
	cmp	x21, x10
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_input_mt_is_active
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_3
	b	LBB0_12
LBB0_6:
	cbz	w9, LBB0_13
; %bb.7:
	mov	x21, x8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #4
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	cmp	x21, x8
	b.eq	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_input_mt_is_active
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_input_mt_is_used
	cbnz	w0, LBB0_8
; %bb.11:
	str	w20, [x21]
LBB0_12:
	ldr	x8, [x19, #8]
	sub	x8, x21, x8
	lsr	x0, x8, #2
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
