	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodix_ts_probe
_goodix_ts_probe:                       ## @goodix_ts_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, %r15
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	4(%r15), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.2:
	movq	%rax, %r14
	movq	%r15, 48(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	addq	$40, %rdi
	callq	_init_completion
	movq	_GOODIX_CONTACT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	%r14, %rdi
	callq	_goodix_get_gpio_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.3:
	movl	28(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_7:
	movl	32(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	28(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_26
LBB0_9:
	movq	_goodix_disable_regulators@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.10:
	cmpq	$0, 16(%r14)
	je	LBB0_14
## %bb.11:
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_goodix_reset
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_18
LBB0_14:
	movq	%r15, %rdi
	callq	_goodix_i2c_test
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_16:
	movq	%r14, %rdi
	callq	_goodix_read_version
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_18:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_19:
	movl	4(%r14), %edi
	callq	_goodix_get_chip_data
	movl	%eax, 24(%r14)
	cmpq	$0, 16(%r14)
	je	LBB0_27
## %bb.20:
	cmpq	$0, 8(%r14)
	je	LBB0_27
## %bb.21:
	movl	(%r12), %esi
	movl	4(%r14), %ecx
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	callq	_devm_kasprintf
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r12), %r8d
	movq	_goodix_config_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	movq	%r14, %r9
	callq	_request_firmware_nowait
	testl	%eax, %eax
	je	LBB0_28
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_5
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_25:
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_goodix_configure_dev           ## TAILCALL
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C Address: 0x%02x\n"

	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
L_.str.1:                               ## @.str.1
	.asciz	"I2C check functionality failed.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GOODIX_CONTACT_SIZE,4,2        ## @GOODIX_CONTACT_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable AVDD28 regulator: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable VDDIO regulator: %d\n"

	.comm	_goodix_disable_regulators,4,2  ## @goodix_disable_regulators
L_.str.4:                               ## @.str.4
	.asciz	"Controller reset failed.\n"

L_.str.5:                               ## @.str.5
	.asciz	"I2C communication failure: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Read version failed.\n"

L_.str.7:                               ## @.str.7
	.asciz	"goodix_%d_cfg.bin"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_goodix_config_cb,4,2           ## @goodix_config_cb
L_.str.8:                               ## @.str.8
	.asciz	"Failed to invoke firmware loader: %d\n"

	.no_dead_strip	_goodix_ts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodix_ts_probe
_goodix_ts_probe:                       ; @goodix_ts_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	x19, x0
	ldr	w2, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_25
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #48]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #40
	bl	_init_completion
Lloh7:
	adrp	x8, _GOODIX_CONTACT_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GOODIX_CONTACT_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	mov	x0, x20
	bl	_goodix_get_gpio_config
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.3:
	ldr	w0, [x20, #28]
	bl	_regulator_enable
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_6:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_26
LBB0_7:
	ldr	w0, [x20, #32]
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.8:
	mov	x21, x0
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #28]
	bl	_regulator_disable
LBB0_9:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_27
LBB0_10:
Lloh18:
	adrp	x8, _goodix_disable_regulators@GOTPAGE
Lloh19:
	ldr	x8, [x8, _goodix_disable_regulators@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_goodix_reset
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_15:
	mov	x0, x19
	bl	_goodix_i2c_test
	cbz	w0, LBB0_18
; %bb.16:
	mov	x21, x0
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_18:
	mov	x0, x20
	bl	_goodix_read_version
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_20:
	ldr	w0, [x20, #4]
	bl	_goodix_get_chip_data
	str	w0, [x20, #24]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_28
; %bb.21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_28
; %bb.22:
	ldr	w1, [x22]
	ldr	w3, [x20, #4]
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_kasprintf
	str	w0, [x20]
	cbz	w0, LBB0_25
; %bb.23:
	mov	x2, x0
Lloh29:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w4, [x22]
Lloh32:
	adrp	x8, _goodix_config_cb@GOTPAGE
Lloh33:
	ldr	x8, [x8, _goodix_config_cb@GOTPAGEOFF]
Lloh34:
	ldr	w6, [x8]
	mov	w1, #1
	mov	x3, x19
	mov	x5, x20
	bl	_request_firmware_nowait
	mov	x21, x0
	cbz	w0, LBB0_27
; %bb.24:
	str	x21, [sp]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_25:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_27:
	mov	x0, x21
	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_28:
	mov	x0, x20
	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
	b	_goodix_configure_dev
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C Address: 0x%02x\n"

	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
l_.str.1:                               ; @.str.1
	.asciz	"I2C check functionality failed.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GOODIX_CONTACT_SIZE,4,2        ; @GOODIX_CONTACT_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable AVDD28 regulator: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable VDDIO regulator: %d\n"

	.comm	_goodix_disable_regulators,4,2  ; @goodix_disable_regulators
l_.str.4:                               ; @.str.4
	.asciz	"Controller reset failed.\n"

l_.str.5:                               ; @.str.5
	.asciz	"I2C communication failure: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Read version failed.\n"

l_.str.7:                               ; @.str.7
	.asciz	"goodix_%d_cfg.bin"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_goodix_config_cb,4,2           ; @goodix_config_cb
l_.str.8:                               ; @.str.8
	.asciz	"Failed to invoke firmware loader: %d\n"

	.no_dead_strip	_goodix_ts_probe
.subsections_via_symbols
