	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_init_slots            ## -- Begin function input_mt_init_slots
	.p2align	4, 0x90
_input_mt_init_slots:                   ## @input_mt_init_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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %r13
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	cmpl	%r15d, (%r13)
	cmovel	%ecx, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%r15d, (%r13)
	movq	_ABS_MT_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%r15), %ecx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TRACKING_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_TRKID_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	%r15d, %r15d
	shlq	$2, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movl	(%r12), %esi
	movl	$-1, %edx
	callq	_input_mt_set_value
	addq	$4, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ABS_MT_SLOT,4,2                ## @ABS_MT_SLOT
	.comm	_ABS_MT_TRACKING_ID,4,2         ## @ABS_MT_TRACKING_ID
	.comm	_TRKID_MAX,4,2                  ## @TRKID_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_init_slots            ; -- Begin function input_mt_init_slots
	.p2align	2
_input_mt_init_slots:                   ; @input_mt_init_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
	cbz	w1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w20
	csneg	w0, wzr, w9, eq
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.4:
	str	w20, [x19]
Lloh6:
	adrp	x8, _ABS_MT_SLOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_MT_SLOT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	w3, w20, #1
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh9:
	adrp	x21, _ABS_MT_TRACKING_ID@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ABS_MT_TRACKING_ID@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _TRKID_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRKID_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x22, #0
	mov	w8, w20
	lsl	x20, x8, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	ldr	w1, [x21]
	mov	w2, #-1
	bl	_input_mt_set_value
	add	x22, x22, #4
	cmp	x20, x22
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
LBB0_7:
	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_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ABS_MT_SLOT,4,2                ; @ABS_MT_SLOT
	.comm	_ABS_MT_TRACKING_ID,4,2         ; @ABS_MT_TRACKING_ID
	.comm	_TRKID_MAX,4,2                  ; @TRKID_MAX
.subsections_via_symbols
