	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodix_reset
_goodix_reset:                          ## @goodix_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_gpiod_direction_output
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$20, %edi
	callq	_msleep
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	xorl	%esi, %esi
	cmpl	$20, (%rax)
	sete	%sil
	callq	_gpiod_direction_output
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	$100, %edi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_gpiod_direction_output
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$6000, %edi                     ## imm = 0x1770
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%rbx), %edi
	callq	_gpiod_direction_input
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_goodix_int_sync                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_goodix_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodix_reset
_goodix_reset:                          ; @goodix_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #0
	bl	_gpiod_direction_output
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #20
	cset	w1, eq
	bl	_gpiod_direction_output
	cbnz	w0, LBB0_4
; %bb.2:
	mov	w0, #100
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19]
	mov	w1, #1
	bl	_gpiod_direction_output
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w0, #6000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_gpiod_direction_input
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_goodix_int_sync
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_goodix_reset
.subsections_via_symbols
