	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synaptics_i2c_config
_synaptics_i2c_config:                  ## @synaptics_i2c_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_DEV_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$193, %edx
	callq	_synaptics_i2c_reg_set
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_INT_ENA_ABS_MSK@GOTPCREL(%rip), %rax
	movq	_INT_ENA_REL_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_polling_req@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	cmovnel	%r14d, %edx
	movq	_INTERRUPT_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_synaptics_i2c_reg_set
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GENERAL_2D_CONTROL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_synaptics_i2c_reg_get
	movq	_NO_DECELERATION@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	_no_decel@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmpq	$0, (%rcx)
	cmovel	%r14d, %esi
	movq	_REDUCE_REPORTING@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	orl	%eax, %esi
	movq	_reduce_report@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	cmovel	%r14d, %edi
	movq	_no_filter@GOTPCREL(%rip), %rax
	movq	_NO_FILTER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	cmpq	$0, (%rax)
	cmovel	%r14d, %edx
	orl	%edi, %edx
	orl	%esi, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_synaptics_i2c_reg_set          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_CONTROL_REG,4,2            ## @DEV_CONTROL_REG
	.comm	_polling_req,8,3                ## @polling_req
	.comm	_INT_ENA_ABS_MSK,4,2            ## @INT_ENA_ABS_MSK
	.comm	_INT_ENA_REL_MSK,4,2            ## @INT_ENA_REL_MSK
	.comm	_INTERRUPT_EN_REG,4,2           ## @INTERRUPT_EN_REG
	.comm	_GENERAL_2D_CONTROL_REG,4,2     ## @GENERAL_2D_CONTROL_REG
	.comm	_no_decel,8,3                   ## @no_decel
	.comm	_NO_DECELERATION,4,2            ## @NO_DECELERATION
	.comm	_reduce_report,8,3              ## @reduce_report
	.comm	_REDUCE_REPORTING,4,2           ## @REDUCE_REPORTING
	.comm	_no_filter,8,3                  ## @no_filter
	.comm	_NO_FILTER,4,2                  ## @NO_FILTER
	.no_dead_strip	_synaptics_i2c_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_config
_synaptics_i2c_config:                  ; @synaptics_i2c_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_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_CONTROL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #193
	bl	_synaptics_i2c_reg_set
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _polling_req@GOTPAGE
Lloh4:
	ldr	x8, [x8, _polling_req@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _INT_ENA_ABS_MSK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_ENA_ABS_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _INT_ENA_REL_MSK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INT_ENA_REL_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x8, #0
	csel	w2, w9, wzr, eq
Lloh12:
	adrp	x8, _INTERRUPT_EN_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTERRUPT_EN_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_synaptics_i2c_reg_set
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh15:
	adrp	x20, _GENERAL_2D_CONTROL_REG@GOTPAGE
Lloh16:
	ldr	x20, [x20, _GENERAL_2D_CONTROL_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_synaptics_i2c_reg_get
Lloh17:
	adrp	x8, _no_decel@GOTPAGE
Lloh18:
	ldr	x8, [x8, _no_decel@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _NO_DECELERATION@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NO_DECELERATION@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
Lloh23:
	adrp	x9, _reduce_report@GOTPAGE
Lloh24:
	ldr	x9, [x9, _reduce_report@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x11, _REDUCE_REPORTING@GOTPAGE
Lloh27:
	ldr	x11, [x11, _REDUCE_REPORTING@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	lsl	w11, w10, w11
	cmp	x9, #0
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _no_filter@GOTPAGE
Lloh30:
	ldr	x9, [x9, _no_filter@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
Lloh32:
	adrp	x11, _NO_FILTER@GOTPAGE
Lloh33:
	ldr	x11, [x11, _NO_FILTER@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_synaptics_i2c_reg_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_CONTROL_REG,4,2            ; @DEV_CONTROL_REG
	.comm	_polling_req,8,3                ; @polling_req
	.comm	_INT_ENA_ABS_MSK,4,2            ; @INT_ENA_ABS_MSK
	.comm	_INT_ENA_REL_MSK,4,2            ; @INT_ENA_REL_MSK
	.comm	_INTERRUPT_EN_REG,4,2           ; @INTERRUPT_EN_REG
	.comm	_GENERAL_2D_CONTROL_REG,4,2     ; @GENERAL_2D_CONTROL_REG
	.comm	_no_decel,8,3                   ; @no_decel
	.comm	_NO_DECELERATION,4,2            ; @NO_DECELERATION
	.comm	_reduce_report,8,3              ; @reduce_report
	.comm	_REDUCE_REPORTING,4,2           ; @REDUCE_REPORTING
	.comm	_no_filter,8,3                  ; @no_filter
	.comm	_NO_FILTER,4,2                  ; @NO_FILTER
	.no_dead_strip	_synaptics_i2c_config
.subsections_via_symbols
