	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_probe
_mxt_probe:                             ## @mxt_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_ACPI_COMPANION
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$63, (%r12)
	jg	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movl	40(%rax), %edi
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r12, 32(%r15)
	movl	8(%r12), %eax
	movl	%eax, 24(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	leaq	20(%r15), %rdi
	callq	_init_completion
	leaq	16(%r15), %rdi
	callq	_init_completion
	movq	%r15, %rdi
	addq	$12, %rdi
	callq	_init_completion
	movq	_chromebook_T9_suspend_dmi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_MXT_SUSPEND_DEEP_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MXT_SUSPEND_T9_CTRL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_mxt_parse_device_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_13:
	movq	_mxt_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%r12), %esi
	movl	12(%r12), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_15:
	movl	8(%r12), %edi
	callq	_disable_irq
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movq	_MXT_RESET_GPIO_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_gpiod_set_value
	movq	_MXT_RESET_INVALID_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
LBB0_17:
	movq	%r15, %rdi
	callq	_mxt_initialize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	movq	_mxt_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mxt_free_input_device
	movq	%r15, %rdi
	callq	_mxt_free_object_table
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compatible"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"i2c-%u-%04x/input0"

	.comm	_chromebook_T9_suspend_dmi,4,2  ## @chromebook_T9_suspend_dmi
	.comm	_MXT_SUSPEND_T9_CTRL,4,2        ## @MXT_SUSPEND_T9_CTRL
	.comm	_MXT_SUSPEND_DEEP_SLEEP,4,2     ## @MXT_SUSPEND_DEEP_SLEEP
L_.str.2:                               ## @.str.2
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get reset gpio: %d\n"

	.comm	_mxt_interrupt,4,2              ## @mxt_interrupt
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register interrupt\n"

	.comm	_MXT_RESET_GPIO_TIME,4,2        ## @MXT_RESET_GPIO_TIME
	.comm	_MXT_RESET_INVALID_CHG,4,2      ## @MXT_RESET_INVALID_CHG
	.comm	_mxt_attr_group,4,2             ## @mxt_attr_group
L_.str.5:                               ## @.str.5
	.asciz	"Failure %d creating sysfs group\n"

	.no_dead_strip	_mxt_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_probe
_mxt_probe:                             ; @mxt_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	add	x19, x0, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ACPI_COMPANION
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #63
	b.gt	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x0, #40]
	ldr	x8, [x21, #16]
	ldr	w3, [x8]
	ldr	w4, [x21]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	str	x21, [x20, #32]
	ldr	w8, [x21, #8]
	str	w8, [x20, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #20
	bl	_init_completion
	add	x0, x20, #16
	bl	_init_completion
	add	x0, x20, #12
	bl	_init_completion
Lloh9:
	adrp	x8, _chromebook_T9_suspend_dmi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _chromebook_T9_suspend_dmi@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_dmi_check_system
Lloh12:
	adrp	x8, _MXT_SUSPEND_T9_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MXT_SUSPEND_T9_CTRL@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MXT_SUSPEND_DEEP_SLEEP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MXT_SUSPEND_DEEP_SLEEP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_mxt_parse_device_properties
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.6:
Lloh16:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh25:
	adrp	x8, _mxt_interrupt@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mxt_interrupt@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	ldp	w1, w5, [x21, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.12:
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_14:
	ldr	w0, [x21, #8]
	bl	_disable_irq
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _MXT_RESET_GPIO_TIME@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MXT_RESET_GPIO_TIME@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_msleep
	ldr	x0, [x20]
	mov	w1, #1
	bl	_gpiod_set_value
Lloh36:
	adrp	x8, _MXT_RESET_INVALID_CHG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MXT_RESET_INVALID_CHG@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_msleep
LBB0_16:
	mov	x0, x20
	bl	_mxt_initialize
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.17:
Lloh39:
	adrp	x1, _mxt_attr_group@GOTPAGE
Lloh40:
	ldr	x1, [x1, _mxt_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.18:
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_mxt_free_input_device
	mov	x0, x20
	bl	_mxt_free_object_table
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compatible"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"i2c-%u-%04x/input0"

	.comm	_chromebook_T9_suspend_dmi,4,2  ; @chromebook_T9_suspend_dmi
	.comm	_MXT_SUSPEND_T9_CTRL,4,2        ; @MXT_SUSPEND_T9_CTRL
	.comm	_MXT_SUSPEND_DEEP_SLEEP,4,2     ; @MXT_SUSPEND_DEEP_SLEEP
l_.str.2:                               ; @.str.2
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get reset gpio: %d\n"

	.comm	_mxt_interrupt,4,2              ; @mxt_interrupt
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register interrupt\n"

	.comm	_MXT_RESET_GPIO_TIME,4,2        ; @MXT_RESET_GPIO_TIME
	.comm	_MXT_RESET_INVALID_CHG,4,2      ; @MXT_RESET_INVALID_CHG
	.comm	_mxt_attr_group,4,2             ; @mxt_attr_group
l_.str.5:                               ; @.str.5
	.asciz	"Failure %d creating sysfs group\n"

	.no_dead_strip	_mxt_probe
.subsections_via_symbols
