	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl6040_vibra_set_effect
_twl6040_vibra_set_effect:              ## @twl6040_vibra_set_effect
	.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	16(%rdi), %rax
	movq	40(%rdi), %r14
	movl	(%rax), %edi
	callq	_regulator_get_voltage
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	sarl	$6, %edi
	addl	%eax, %edi
	movl	32(%rbx), %esi
	movl	28(%rbx), %edx
	movl	(%rbx), %r8d
	movl	24(%rbx), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_twl6040_vibra_code
	movl	%eax, %r15d
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_regulator_get_voltage
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	sarl	$6, %edi
	addl	%eax, %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_twl6040_vibra_code
	movl	%eax, %ebx
	movq	_TWL6040_REG_VIBDATL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_twl6040_reg_write
	movq	_TWL6040_REG_VIBDATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_twl6040_reg_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL6040_REG_VIBDATL,4,2        ## @TWL6040_REG_VIBDATL
	.comm	_TWL6040_REG_VIBDATR,4,2        ## @TWL6040_REG_VIBDATR
	.no_dead_strip	_twl6040_vibra_set_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl6040_vibra_set_effect
_twl6040_vibra_set_effect:              ; @twl6040_vibra_set_effect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #40]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_regulator_get_voltage
	mov	w22, #19923
	movk	w22, #4194, lsl #16
	smull	x8, w0, w22
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #6
	ldp	w2, w1, [x20, #28]
	ldr	w3, [x20, #24]
	ldr	w4, [x20]
	bl	_twl6040_vibra_code
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #4]
	bl	_regulator_get_voltage
	smull	x8, w0, w22
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #6
	ldp	w2, w1, [x20, #8]
	ldp	w4, w3, [x20]
	bl	_twl6040_vibra_code
	mov	x20, x0
Lloh0:
	adrp	x8, _TWL6040_REG_VIBDATL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL6040_REG_VIBDATL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_twl6040_reg_write
Lloh3:
	adrp	x8, _TWL6040_REG_VIBDATR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TWL6040_REG_VIBDATR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_twl6040_reg_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL6040_REG_VIBDATL,4,2        ; @TWL6040_REG_VIBDATL
	.comm	_TWL6040_REG_VIBDATR,4,2        ; @TWL6040_REG_VIBDATR
	.no_dead_strip	_twl6040_vibra_set_effect
.subsections_via_symbols
