	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_disable_auto_conversion
_palmas_disable_auto_conversion:        ## @palmas_disable_auto_conversion
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_PALMAS_GPADC_BASE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PALMAS_GPADC_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_PALMAS_GPADC_CTRL1_GPADC_FORCE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ecx, %r8d
	callq	_palmas_update_bits
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movq	_PALMAS_GPADC_AUTO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1@GOTPCREL(%rip), %rax
	movq	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_palmas_update_bits
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	xorl	%r8d, %r8d
	callq	_palmas_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PALMAS_GPADC_BASE,4,2          ## @PALMAS_GPADC_BASE
	.comm	_PALMAS_GPADC_CTRL1,4,2         ## @PALMAS_GPADC_CTRL1
	.comm	_PALMAS_GPADC_CTRL1_GPADC_FORCE,4,2 ## @PALMAS_GPADC_CTRL1_GPADC_FORCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPADC_CTRL1 update failed: %d\n"

	.comm	_PALMAS_GPADC_AUTO_CTRL,4,2     ## @PALMAS_GPADC_AUTO_CTRL
	.comm	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1,4,2 ## @PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1
	.comm	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0,4,2 ## @PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0
L_.str.1:                               ## @.str.1
	.asciz	"AUTO_CTRL update failed: %d\n"

	.no_dead_strip	_palmas_disable_auto_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_disable_auto_conversion
_palmas_disable_auto_conversion:        ; @palmas_disable_auto_conversion
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x21, _PALMAS_GPADC_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PALMAS_GPADC_BASE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _PALMAS_GPADC_CTRL1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PALMAS_GPADC_CTRL1@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x23, _PALMAS_GPADC_CTRL1_GPADC_FORCE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PALMAS_GPADC_CTRL1_GPADC_FORCE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x4, x3
	bl	_palmas_update_bits
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _PALMAS_GPADC_AUTO_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PALMAS_GPADC_AUTO_CTRL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w4, #0
	bl	_palmas_update_bits
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	w0, #100
	bl	_udelay
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	w4, #0
	bl	_palmas_update_bits
	mov	x20, x0
	tbz	w0, #31, LBB0_7
	b	LBB0_4
LBB0_3:
	mov	x20, x0
LBB0_4:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PALMAS_GPADC_BASE,4,2          ; @PALMAS_GPADC_BASE
	.comm	_PALMAS_GPADC_CTRL1,4,2         ; @PALMAS_GPADC_CTRL1
	.comm	_PALMAS_GPADC_CTRL1_GPADC_FORCE,4,2 ; @PALMAS_GPADC_CTRL1_GPADC_FORCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPADC_CTRL1 update failed: %d\n"

	.comm	_PALMAS_GPADC_AUTO_CTRL,4,2     ; @PALMAS_GPADC_AUTO_CTRL
	.comm	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1,4,2 ; @PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1
	.comm	_PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0,4,2 ; @PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0
l_.str.1:                               ; @.str.1
	.asciz	"AUTO_CTRL update failed: %d\n"

	.no_dead_strip	_palmas_disable_auto_conversion
.subsections_via_symbols
