	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8997_haptic_configure
_max8997_haptic_configure:              ## @max8997_haptic_configure
	.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
	movq	%rdi, %rbx
	movq	_MAX8997_MOTOR_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%rdi), %eax
	movl	4(%rdi), %esi
	shll	%cl, %eax
	movq	_MAX8997_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_MAX8997_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	8(%rdi), %edx
	shll	%cl, %edx
	orl	%eax, %esi
	orl	%esi, %edx
	orl	12(%rdi), %edx
	movl	28(%rdi), %edi
	movq	_MAX8997_HAPTIC_REG_CONF2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max8997_write_reg
	movl	8(%rbx), %eax
	movq	_MAX8997_INTERNAL_MODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_10
## %bb.2:
	movq	_MAX8997_CYCLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	16(%rbx), %edx
	movl	%edx, %eax
	shll	%cl, %eax
	movq	_MAX8997_SIG_PERIOD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	movl	28(%rbx), %edi
	orl	%eax, %esi
	movq	_MAX8997_SIG_DUTY_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %eax
	shll	%cl, %eax
	movq	_MAX8997_PWM_DUTY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	orl	%esi, %edx
	movq	_MAX8997_HAPTIC_REG_DRVCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max8997_write_reg
	movl	16(%rbx), %eax
	cmpq	$3, %rax
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	20(%rbx), %edx
	shll	$4, %edx
	movq	_MAX8997_HAPTIC_REG_SIGCONF1@GOTPCREL(%rip), %r14
	movq	_MAX8997_HAPTIC_REG_CYCLECONF1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	20(%rbx), %edx
	movq	_MAX8997_HAPTIC_REG_SIGCONF2@GOTPCREL(%rip), %r14
	movq	_MAX8997_HAPTIC_REG_CYCLECONF1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movl	20(%rbx), %edx
	shll	$4, %edx
	movq	_MAX8997_HAPTIC_REG_SIGCONF3@GOTPCREL(%rip), %r14
	jmp	LBB0_8
LBB0_7:
	movl	20(%rbx), %edx
	movq	_MAX8997_HAPTIC_REG_SIGCONF4@GOTPCREL(%rip), %r14
LBB0_8:
	movq	_MAX8997_HAPTIC_REG_CYCLECONF2@GOTPCREL(%rip), %rax
LBB0_9:
	movl	28(%rbx), %edi
	movl	(%rax), %esi
	callq	_max8997_write_reg
	movl	24(%rbx), %edx
	movl	28(%rbx), %edi
	movl	(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_max8997_write_reg              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MAX8997_MOTOR_TYPE_SHIFT,4,2   ## @MAX8997_MOTOR_TYPE_SHIFT
	.comm	_MAX8997_ENABLE_SHIFT,4,2       ## @MAX8997_ENABLE_SHIFT
	.comm	_MAX8997_MODE_SHIFT,4,2         ## @MAX8997_MODE_SHIFT
	.comm	_MAX8997_HAPTIC_REG_CONF2,4,2   ## @MAX8997_HAPTIC_REG_CONF2
	.comm	_MAX8997_INTERNAL_MODE,4,2      ## @MAX8997_INTERNAL_MODE
	.comm	_MAX8997_CYCLE_SHIFT,4,2        ## @MAX8997_CYCLE_SHIFT
	.comm	_MAX8997_SIG_PERIOD_SHIFT,4,2   ## @MAX8997_SIG_PERIOD_SHIFT
	.comm	_MAX8997_SIG_DUTY_SHIFT,4,2     ## @MAX8997_SIG_DUTY_SHIFT
	.comm	_MAX8997_PWM_DUTY_SHIFT,4,2     ## @MAX8997_PWM_DUTY_SHIFT
	.comm	_MAX8997_HAPTIC_REG_DRVCONF,4,2 ## @MAX8997_HAPTIC_REG_DRVCONF
	.comm	_MAX8997_HAPTIC_REG_CYCLECONF1,4,2 ## @MAX8997_HAPTIC_REG_CYCLECONF1
	.comm	_MAX8997_HAPTIC_REG_SIGCONF1,4,2 ## @MAX8997_HAPTIC_REG_SIGCONF1
	.comm	_MAX8997_HAPTIC_REG_SIGCONF2,4,2 ## @MAX8997_HAPTIC_REG_SIGCONF2
	.comm	_MAX8997_HAPTIC_REG_CYCLECONF2,4,2 ## @MAX8997_HAPTIC_REG_CYCLECONF2
	.comm	_MAX8997_HAPTIC_REG_SIGCONF3,4,2 ## @MAX8997_HAPTIC_REG_SIGCONF3
	.comm	_MAX8997_HAPTIC_REG_SIGCONF4,4,2 ## @MAX8997_HAPTIC_REG_SIGCONF4
	.no_dead_strip	_max8997_haptic_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8997_haptic_configure
_max8997_haptic_configure:              ; @max8997_haptic_configure
	.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, _MAX8997_MOTOR_TYPE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX8997_MOTOR_TYPE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	lsl	w8, w9, w8
Lloh3:
	adrp	x9, _MAX8997_ENABLE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX8997_ENABLE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MAX8997_MODE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX8997_MODE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	w10, w11, [x0, #8]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	orr	w2, w8, w11
	ldr	w0, [x0, #28]
Lloh9:
	adrp	x8, _MAX8997_HAPTIC_REG_CONF2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_CONF2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_max8997_write_reg
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _MAX8997_INTERNAL_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX8997_INTERNAL_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x19, #16]
Lloh15:
	adrp	x9, _MAX8997_CYCLE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX8997_CYCLE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MAX8997_SIG_PERIOD_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MAX8997_SIG_PERIOD_SHIFT@GOTPAGEOFF]
	lsl	w9, w8, w9
Lloh20:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _MAX8997_SIG_DUTY_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MAX8997_SIG_DUTY_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _MAX8997_PWM_DUTY_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MAX8997_PWM_DUTY_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w2, w9, w8
	ldr	w0, [x19, #28]
Lloh27:
	adrp	x8, _MAX8997_HAPTIC_REG_DRVCONF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_DRVCONF@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_max8997_write_reg
	ldr	w8, [x19, #16]
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh30:
	adrp	x9, lJTI0_0@PAGE
Lloh31:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x19, #20]
	lsl	w2, w8, #4
Lloh32:
	adrp	x20, _MAX8997_HAPTIC_REG_SIGCONF1@GOTPAGE
Lloh33:
	ldr	x20, [x20, _MAX8997_HAPTIC_REG_SIGCONF1@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w2, [x19, #20]
Lloh34:
	adrp	x20, _MAX8997_HAPTIC_REG_SIGCONF2@GOTPAGE
Lloh35:
	ldr	x20, [x20, _MAX8997_HAPTIC_REG_SIGCONF2@GOTPAGEOFF]
LBB0_7:
Lloh36:
	adrp	x8, _MAX8997_HAPTIC_REG_CYCLECONF1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_CYCLECONF1@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19, #20]
	lsl	w2, w8, #4
Lloh38:
	adrp	x20, _MAX8997_HAPTIC_REG_SIGCONF3@GOTPAGE
Lloh39:
	ldr	x20, [x20, _MAX8997_HAPTIC_REG_SIGCONF3@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	w2, [x19, #20]
Lloh40:
	adrp	x20, _MAX8997_HAPTIC_REG_SIGCONF4@GOTPAGE
Lloh41:
	ldr	x20, [x20, _MAX8997_HAPTIC_REG_SIGCONF4@GOTPAGEOFF]
LBB0_10:
Lloh42:
	adrp	x8, _MAX8997_HAPTIC_REG_CYCLECONF2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MAX8997_HAPTIC_REG_CYCLECONF2@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x19, #28]
	ldr	w1, [x8]
	bl	_max8997_write_reg
	ldp	w2, w0, [x19, #24]
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_max8997_write_reg
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_MAX8997_MOTOR_TYPE_SHIFT,4,2   ; @MAX8997_MOTOR_TYPE_SHIFT
	.comm	_MAX8997_ENABLE_SHIFT,4,2       ; @MAX8997_ENABLE_SHIFT
	.comm	_MAX8997_MODE_SHIFT,4,2         ; @MAX8997_MODE_SHIFT
	.comm	_MAX8997_HAPTIC_REG_CONF2,4,2   ; @MAX8997_HAPTIC_REG_CONF2
	.comm	_MAX8997_INTERNAL_MODE,4,2      ; @MAX8997_INTERNAL_MODE
	.comm	_MAX8997_CYCLE_SHIFT,4,2        ; @MAX8997_CYCLE_SHIFT
	.comm	_MAX8997_SIG_PERIOD_SHIFT,4,2   ; @MAX8997_SIG_PERIOD_SHIFT
	.comm	_MAX8997_SIG_DUTY_SHIFT,4,2     ; @MAX8997_SIG_DUTY_SHIFT
	.comm	_MAX8997_PWM_DUTY_SHIFT,4,2     ; @MAX8997_PWM_DUTY_SHIFT
	.comm	_MAX8997_HAPTIC_REG_DRVCONF,4,2 ; @MAX8997_HAPTIC_REG_DRVCONF
	.comm	_MAX8997_HAPTIC_REG_CYCLECONF1,4,2 ; @MAX8997_HAPTIC_REG_CYCLECONF1
	.comm	_MAX8997_HAPTIC_REG_SIGCONF1,4,2 ; @MAX8997_HAPTIC_REG_SIGCONF1
	.comm	_MAX8997_HAPTIC_REG_SIGCONF2,4,2 ; @MAX8997_HAPTIC_REG_SIGCONF2
	.comm	_MAX8997_HAPTIC_REG_CYCLECONF2,4,2 ; @MAX8997_HAPTIC_REG_CYCLECONF2
	.comm	_MAX8997_HAPTIC_REG_SIGCONF3,4,2 ; @MAX8997_HAPTIC_REG_SIGCONF3
	.comm	_MAX8997_HAPTIC_REG_SIGCONF4,4,2 ; @MAX8997_HAPTIC_REG_SIGCONF4
	.no_dead_strip	_max8997_haptic_configure
.subsections_via_symbols
