	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl6040_vibra_code
_twl6040_vibra_code:                    ## @twl6040_vibra_code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	imull	%edx, %eax
	movq	_TWL6040_VIBRA_MOD@GOTPCREL(%rip), %rdi
	imull	(%rdi), %eax
	addl	%edx, %esi
	imull	$100, %esi, %esi
	cltd
	idivl	%esi
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$36, %rax
	addl	%edx, %eax
	movq	_TWL6040_VIBDAT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	imull	%ecx, %eax
	movq	_USHRT_MAX@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	imull	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL6040_VIBRA_MOD,4,2          ## @TWL6040_VIBRA_MOD
	.comm	_TWL6040_VIBDAT_MAX,4,2         ## @TWL6040_VIBDAT_MAX
	.comm	_USHRT_MAX,4,2                  ## @USHRT_MAX
	.no_dead_strip	_twl6040_vibra_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl6040_vibra_code
_twl6040_vibra_code:                    ; @twl6040_vibra_code
	.cfi_startproc
; %bb.0:
	mul	w8, w2, w0
Lloh0:
	adrp	x9, _TWL6040_VIBRA_MOD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TWL6040_VIBRA_MOD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w8, w9
	add	w9, w2, w1
	mov	w10, #100
	mul	w9, w9, w10
	sdiv	w8, w8, w9
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
Lloh3:
	adrp	x10, _TWL6040_VIBDAT_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TWL6040_VIBDAT_MAX@GOTPAGEOFF]
	asr	x8, x8, #36
Lloh5:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	csel	w8, w8, w10, lt
	mul	w8, w8, w3
Lloh6:
	adrp	x9, _USHRT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USHRT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	mul	w0, w8, w4
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL6040_VIBRA_MOD,4,2          ; @TWL6040_VIBRA_MOD
	.comm	_TWL6040_VIBDAT_MAX,4,2         ; @TWL6040_VIBDAT_MAX
	.comm	_USHRT_MAX,4,2                  ; @USHRT_MAX
	.no_dead_strip	_twl6040_vibra_code
.subsections_via_symbols
