	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8997_haptic_set_duty_cycle
_max8997_haptic_set_duty_cycle:         ## @max8997_haptic_set_duty_cycle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_MAX8997_EXTERNAL_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.21:
	movl	8(%rdi), %edx
	movl	24(%rdi), %eax
	movl	12(%rdi), %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$37, %rsi
	addl	%ecx, %esi
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_pwm_config                     ## TAILCALL
LBB0_1:
	movl	12(%rdi), %eax
	movl	$4, %edx
	movl	$400, %ecx                      ## imm = 0x190
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-400(%rcx), %esi
	shrl	$6, %esi
	cmpl	%esi, %eax
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-300(%rcx), %esi
	shrl	$6, %esi
	cmpl	%esi, %eax
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-200(%rcx), %esi
	shrl	$6, %esi
	cmpl	%esi, %eax
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-100(%rcx), %esi
	shrl	$6, %esi
	cmpl	%esi, %eax
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %esi
	shrl	$6, %esi
	cmpl	%esi, %eax
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$5, %edx
	addl	$500, %ecx                      ## imm = 0x1F4
	cmpl	$69, %edx
	jne	LBB0_2
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_10:
	addl	$-4, %edx
	jmp	LBB0_13
LBB0_9:
	addl	$-3, %edx
	jmp	LBB0_13
LBB0_11:
	addl	$-2, %edx
	jmp	LBB0_13
LBB0_12:
	decl	%edx
LBB0_13:
	movl	16(%rdi), %eax
	cmpq	$3, %rax
	ja	LBB0_20
## %bb.14:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movl	20(%rdi), %edi
	movq	_MAX8997_HAPTIC_REG_SIGPWMDC1@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movl	20(%rdi), %edi
	movq	_MAX8997_HAPTIC_REG_SIGPWMDC2@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movl	20(%rdi), %edi
	movq	_MAX8997_HAPTIC_REG_SIGPWMDC3@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movl	20(%rdi), %edi
	movq	_MAX8997_HAPTIC_REG_SIGPWMDC4@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	callq	_max8997_write_reg
LBB0_20:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_MAX8997_EXTERNAL_MODE,8,3      ## @MAX8997_EXTERNAL_MODE
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC1,4,2 ## @MAX8997_HAPTIC_REG_SIGPWMDC1
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC2,4,2 ## @MAX8997_HAPTIC_REG_SIGPWMDC2
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC3,4,2 ## @MAX8997_HAPTIC_REG_SIGPWMDC3
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC4,4,2 ## @MAX8997_HAPTIC_REG_SIGPWMDC4
	.no_dead_strip	_max8997_haptic_set_duty_cycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8997_haptic_set_duty_cycle
_max8997_haptic_set_duty_cycle:         ; @max8997_haptic_set_duty_cycle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX8997_EXTERNAL_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX8997_EXTERNAL_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w2, w8, [x0, #8]
	mul	w8, w8, w2
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w1, w8, w9
	ldr	w0, [x0, #24]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pwm_config
LBB0_2:
	mov	w8, #0
	mov	w2, #0
	ldr	w9, [x0, #12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w8, lsr #6
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w2, w2, #1
	add	w8, w8, #100
	cmp	w2, #65
	b.ne	LBB0_3
; %bb.5:
	mov	w2, #0
LBB0_6:
	ldr	w8, [x0, #16]
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.7:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	w0, [x0, #20]
Lloh5:
	adrp	x8, _MAX8997_HAPTIC_REG_SIGPWMDC1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_SIGPWMDC1@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldr	w0, [x0, #20]
Lloh7:
	adrp	x8, _MAX8997_HAPTIC_REG_SIGPWMDC2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_SIGPWMDC2@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x0, #20]
Lloh9:
	adrp	x8, _MAX8997_HAPTIC_REG_SIGPWMDC3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_SIGPWMDC3@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x0, #20]
Lloh11:
	adrp	x8, _MAX8997_HAPTIC_REG_SIGPWMDC4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_SIGPWMDC4@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	bl	_max8997_write_reg
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
                                        ; -- End function
	.comm	_MAX8997_EXTERNAL_MODE,8,3      ; @MAX8997_EXTERNAL_MODE
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC1,4,2 ; @MAX8997_HAPTIC_REG_SIGPWMDC1
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC2,4,2 ; @MAX8997_HAPTIC_REG_SIGPWMDC2
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC3,4,2 ; @MAX8997_HAPTIC_REG_SIGPWMDC3
	.comm	_MAX8997_HAPTIC_REG_SIGPWMDC4,4,2 ; @MAX8997_HAPTIC_REG_SIGPWMDC4
	.no_dead_strip	_max8997_haptic_set_duty_cycle
.subsections_via_symbols
