	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodix_i2c_test
_goodix_i2c_test:                       ## @goodix_i2c_test
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GOODIX_REG_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movl	$1, %ecx
	callq	_goodix_i2c_read
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_goodix_i2c_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	$20, %edi
	callq	_msleep
	movl	%r15d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GOODIX_REG_ID,4,2              ## @GOODIX_REG_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c test failed attempt %d: %d\n"

	.no_dead_strip	_goodix_i2c_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodix_i2c_test
_goodix_i2c_test:                       ; @goodix_i2c_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _GOODIX_REG_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GOODIX_REG_ID@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	w3, #1
	bl	_goodix_i2c_read
	cbz	w0, LBB0_3
; %bb.1:
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_dev_err
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_goodix_i2c_read
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	bl	_dev_err
	mov	w0, #20
	bl	_msleep
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GOODIX_REG_ID,4,2              ; @GOODIX_REG_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c test failed attempt %d: %d\n"

	.no_dead_strip	_goodix_i2c_test
.subsections_via_symbols
