	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77843_haptic_bias
_max77843_haptic_bias:                  ## @max77843_haptic_bias
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_TYPE_MAX77843@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movq	_MAX77843_SYS_REG_MAINCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX77843_MAINCTRL1_BIASEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAINCTRL1_BIASEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_MAX77843,8,3              ## @TYPE_MAX77843
	.comm	_MAX77843_SYS_REG_MAINCTRL1,4,2 ## @MAX77843_SYS_REG_MAINCTRL1
	.comm	_MAX77843_MAINCTRL1_BIASEN_MASK,4,2 ## @MAX77843_MAINCTRL1_BIASEN_MASK
	.comm	_MAINCTRL1_BIASEN_SHIFT,4,2     ## @MAINCTRL1_BIASEN_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to %s bias: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.no_dead_strip	_max77843_haptic_bias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77843_haptic_bias
_max77843_haptic_bias:                  ; @max77843_haptic_bias
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TYPE_MAX77843@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPE_MAX77843@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #12]
Lloh3:
	adrp	x8, _MAX77843_SYS_REG_MAINCTRL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX77843_SYS_REG_MAINCTRL1@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MAX77843_MAINCTRL1_BIASEN_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX77843_MAINCTRL1_BIASEN_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, _MAINCTRL1_BIASEN_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAINCTRL1_BIASEN_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w3, w19, w8
	bl	_regmap_update_bits
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #8]
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x9, x8, eq
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_MAX77843,8,3              ; @TYPE_MAX77843
	.comm	_MAX77843_SYS_REG_MAINCTRL1,4,2 ; @MAX77843_SYS_REG_MAINCTRL1
	.comm	_MAX77843_MAINCTRL1_BIASEN_MASK,4,2 ; @MAX77843_MAINCTRL1_BIASEN_MASK
	.comm	_MAINCTRL1_BIASEN_SHIFT,4,2     ; @MAINCTRL1_BIASEN_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to %s bias: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.no_dead_strip	_max77843_haptic_bias
.subsections_via_symbols
