	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt_touch_input_configured
_mt_touch_input_configured:             ## @mt_touch_input_configured
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movq	(%r12), %r14
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_MT_DEFAULT_MAXCONTACT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt_post_parse
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt_post_parse_default_settings
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_6:
	movq	_MT_QUIRK_NOT_SEEN_MEANS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_7
## %bb.8:
	movq	_INPUT_MT_DROP_UNUSED@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_7:
	movl	(%r15), %eax
LBB0_9:
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	cmpl	$1, 8(%r15)
	jne	LBB0_12
## %bb.11:
	movl	$1, (%rbx)
LBB0_12:
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.13:
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	___set_bit
LBB0_14:
	movq	(%r12), %r12
	movq	8(%rbx), %rdi
	callq	_BITS_TO_LONGS
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	8(%rbx), %rsi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_input_mt_init_slots
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	$0, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DEFAULT_MAXCONTACT,8,3      ## @MT_DEFAULT_MAXCONTACT
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_MT_QUIRK_NOT_SEEN_MEANS_UP,4,2 ## @MT_QUIRK_NOT_SEEN_MEANS_UP
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ## @INPUT_MT_DROP_UNUSED
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mt_touch_input_configured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt_touch_input_configured
_mt_touch_input_configured:             ; @mt_touch_input_configured
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_hid_get_drvdata
	mov	x21, x0
	ldr	x20, [x22]
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MT_DEFAULT_MAXCONTACT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_DEFAULT_MAXCONTACT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21, #8]
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_mt_post_parse
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_mt_post_parse_default_settings
LBB0_4:
	ldr	x9, [x21, #24]
Lloh3:
	adrp	x8, _INPUT_MT_POINTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INPUT_MT_POINTER@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_6:
	ldr	w9, [x19, #4]
Lloh5:
	adrp	x10, _MT_QUIRK_NOT_SEEN_MEANS_UP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MT_QUIRK_NOT_SEEN_MEANS_UP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _INPUT_MT_DROP_UNUSED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INPUT_MT_DROP_UNUSED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	b	LBB0_9
LBB0_8:
	ldr	w9, [x19]
LBB0_9:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.11:
	str	w8, [x21]
LBB0_12:
	ldr	w8, [x21]
	cbz	w8, LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	___set_bit
LBB0_14:
	ldr	x22, [x22]
	ldr	x0, [x21, #8]
	bl	_BITS_TO_LONGS
	mov	x1, x0
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #8
	bl	_devm_kcalloc
	str	w0, [x19, #12]
	cbz	w0, LBB0_17
; %bb.15:
	ldr	x1, [x21, #8]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_input_mt_init_slots
	cbnz	w0, LBB0_18
; %bb.16:
	str	wzr, [x19]
	b	LBB0_18
LBB0_17:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DEFAULT_MAXCONTACT,8,3      ; @MT_DEFAULT_MAXCONTACT
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_MT_QUIRK_NOT_SEEN_MEANS_UP,4,2 ; @MT_QUIRK_NOT_SEEN_MEANS_UP
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ; @INPUT_MT_DROP_UNUSED
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mt_touch_input_configured
.subsections_via_symbols
