	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx8654_open
_sx8654_open:                           ## @sx8654_open
	.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
	callq	_input_get_drvdata
	movq	(%rax), %rbx
	movq	_I2C_REG_TOUCH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RATE_5000CPS@GOTPCREL(%rip), %rax
	movq	_POWDLY_1_1MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_CMD_PENTRG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edi
	callq	_enable_irq
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_REG_TOUCH0,4,2             ## @I2C_REG_TOUCH0
	.comm	_RATE_5000CPS,4,2               ## @RATE_5000CPS
	.comm	_POWDLY_1_1MS,4,2               ## @POWDLY_1_1MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing to I2C_REG_TOUCH0 failed"

	.comm	_CMD_PENTRG,4,2                 ## @CMD_PENTRG
L_.str.1:                               ## @.str.1
	.asciz	"writing command CMD_PENTRG failed"

	.no_dead_strip	_sx8654_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx8654_open
_sx8654_open:                           ; @sx8654_open
	.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
	bl	_input_get_drvdata
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _I2C_REG_TOUCH0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_REG_TOUCH0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RATE_5000CPS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RATE_5000CPS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _POWDLY_1_1MS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POWDLY_1_1MS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x19, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _CMD_PENTRG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_PENTRG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #4
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_enable_irq
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_REG_TOUCH0,4,2             ; @I2C_REG_TOUCH0
	.comm	_RATE_5000CPS,4,2               ; @RATE_5000CPS
	.comm	_POWDLY_1_1MS,4,2               ; @POWDLY_1_1MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing to I2C_REG_TOUCH0 failed"

	.comm	_CMD_PENTRG,4,2                 ; @CMD_PENTRG
l_.str.1:                               ; @.str.1
	.asciz	"writing command CMD_PENTRG failed"

	.no_dead_strip	_sx8654_open
.subsections_via_symbols
