	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_mt_set_slots
_input_mt_set_slots:                    ## @input_mt_set_slots
	.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	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movl	%edx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	(,%r14,4), %rdx
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_memset
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	je	LBB0_20
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	16(%rdx), %rcx
	shrq	$2, %rcx
	movl	%ecx, (%r12,%rax,4)
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %r15
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	movslq	8(%rax), %rax
	leaq	(%rbx,%rax,4), %rcx
	cmpq	%rcx, %r13
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r13, %rdi
	callq	_input_mt_is_active
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r15,%rax,4)
	js	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_7
	jmp	LBB0_16
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_10
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subq	16(%rdx), %rcx
	shrq	$2, %rcx
	movl	%ecx, (%r12,%rax,4)
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$4, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	8(%rcx), %rax
	shlq	$2, %rax
	addq	16(%rcx), %rax
	cmpq	%rax, %rbx
	je	LBB0_20
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rbx, %rdi
	callq	_input_mt_is_active
	testq	%rax, %rax
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r12,%rax,4)
	js	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_13
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_input_mt_set_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_mt_set_slots
_input_mt_set_slots:                    ; @input_mt_set_slots
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x0]
	cbz	w2, LBB0_2
; %bb.1:
	mov	w8, w19
	lsl	x2, x8, #2
	mov	x0, x20
	mov	w1, #255
	bl	_memset
LBB0_2:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_13
; %bb.3:
	ldr	x22, [x21, #16]
	sxtw	x26, w19
	mov	w24, w19
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21, #16]
	sub	x9, x22, x9
	lsr	x9, x9, #2
	str	w9, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, x26, lsl #2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #4
	ldr	x23, [x21, #16]
	ldrsw	x8, [x21, #8]
	add	x9, x23, x8, lsl #2
	cmp	x22, x9
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x22
	bl	_input_mt_is_active
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w19, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x24
	mov	x10, x25
	mov	x8, x20
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	tbnz	w11, #31, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x8, x8, #4
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_10
	b	LBB0_5
LBB0_12:
	cbnz	w8, LBB0_16
LBB0_13:
	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_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x21, #16]
	sub	x9, x23, x9
	lsr	x9, x9, #2
	str	w9, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #4
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21, #8]
	add	x8, x8, x9, lsl #2
	cmp	x23, x8
	b.eq	LBB0_13
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x0, x23
	bl	_input_mt_is_active
	cbnz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w19, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x9, x24
	mov	x8, x20
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x8]
	tbnz	w10, #31, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #4
	subs	x9, x9, #1
	b.ne	LBB0_19
	b	LBB0_15
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_input_mt_set_slots
.subsections_via_symbols
