	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synaptics_i2c_reset_config
_synaptics_i2c_reset_config:            ## @synaptics_i2c_reset_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_DEV_COMMAND_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RESET_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_synaptics_i2c_reg_set
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_SOFT_RESET_DELAY_US@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	100(%rdi), %rsi
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_synaptics_i2c_config
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_COMMAND_REG,4,2            ## @DEV_COMMAND_REG
	.comm	_RESET_COMMAND,4,2              ## @RESET_COMMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to reset device\n"

	.comm	_SOFT_RESET_DELAY_US,8,3        ## @SOFT_RESET_DELAY_US
L_.str.1:                               ## @.str.1
	.asciz	"Unable to config device\n"

	.no_dead_strip	_synaptics_i2c_reset_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synaptics_i2c_reset_config
_synaptics_i2c_reset_config:            ; @synaptics_i2c_reset_config
	.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
Lloh0:
	adrp	x8, _DEV_COMMAND_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_COMMAND_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RESET_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_synaptics_i2c_reg_set
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _SOFT_RESET_DELAY_US@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOFT_RESET_DELAY_US@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	add	x1, x0, #100
	bl	_usleep_range
	mov	x0, x19
	bl	_synaptics_i2c_config
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_COMMAND_REG,4,2            ; @DEV_COMMAND_REG
	.comm	_RESET_COMMAND,4,2              ; @RESET_COMMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to reset device\n"

	.comm	_SOFT_RESET_DELAY_US,8,3        ; @SOFT_RESET_DELAY_US
l_.str.1:                               ; @.str.1
	.asciz	"Unable to config device\n"

	.no_dead_strip	_synaptics_i2c_reset_config
.subsections_via_symbols
