	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_assign_slots          ## -- Begin function input_mt_assign_slots
	.p2align	4, 0x90
_input_mt_assign_slots:                 ## @input_mt_assign_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
## %bb.4:
	movl	%ecx, %r14d
	cmpl	%ecx, (%rbx)
	jge	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.7:
	movl	%r8d, %r12d
	movq	%rsi, %r15
	imull	%r8d, %r12d
	addl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_input_mt_set_matrix
	movl	%eax, %ecx
	movl	4(%rbx), %edi
	cltd
	idivl	%r14d
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%r12d, %r8d
	callq	_find_reduced_matrix
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_input_mt_set_slots
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_assign_slots          ; -- Begin function input_mt_assign_slots
	.p2align	2
_input_mt_assign_slots:                 ; @input_mt_assign_slots
	.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	x21, [x0]
	cbz	x21, LBB0_4
; %bb.1:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x3
	ldr	w8, [x21]
	cmp	w8, w3
	b.ge	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x20, x1
	mul	w8, w4, w4
	lsl	w22, w8, #1
	mov	x0, x21
	mov	x1, x2
	mov	x2, x19
	mov	x3, x22
	bl	_input_mt_set_matrix
	mov	x3, x0
	ldr	w0, [x21, #4]
	sdiv	w2, w3, w19
	mov	x1, x19
	mov	x4, x22
	bl	_find_reduced_matrix
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_input_mt_set_slots
LBB0_9:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
