	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_enable_freerun_sysclk
_arizona_enable_freerun_sysclk:         ## @arizona_enable_freerun_sysclk
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_ARIZONA_FLL1_CONTROL_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	movl	4(%r14), %edi
	movq	_ARIZONA_SYSTEM_CLOCK_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	4(%r15), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movq	_ARIZONA_FLL1_ENA@GOTPCREL(%rip), %rax
	movq	_ARIZONA_FLL1_FREERUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movq	_ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ARIZONA_FLL1_CLOCK_OK_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$180, %esi
	movl	%ecx, %r8d
	callq	_arizona_poll_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movl	$324, %edx                      ## imm = 0x144
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_9:
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movl	(%r15), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	movl	%eax, %edx
	callq	_dev_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_FLL1_CONTROL_1,4,2     ## @ARIZONA_FLL1_CONTROL_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to cache FLL settings: %d\n"

	.comm	_ARIZONA_SYSTEM_CLOCK_1,4,2     ## @ARIZONA_SYSTEM_CLOCK_1
L_.str.1:                               ## @.str.1
	.asciz	"Failed to cache SYSCLK settings: %d\n"

	.comm	_ARIZONA_FLL1_ENA,4,2           ## @ARIZONA_FLL1_ENA
	.comm	_ARIZONA_FLL1_FREERUN,4,2       ## @ARIZONA_FLL1_FREERUN
L_.str.2:                               ## @.str.2
	.asciz	"Failed to start FLL in freerunning mode: %d\n"

	.comm	_ARIZONA_INTERRUPT_RAW_STATUS_5,4,2 ## @ARIZONA_INTERRUPT_RAW_STATUS_5
	.comm	_ARIZONA_FLL1_CLOCK_OK_STS,4,2  ## @ARIZONA_FLL1_CLOCK_OK_STS
L_.str.3:                               ## @.str.3
	.asciz	"Failed to start SYSCLK: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to re-apply old FLL settings: %d\n"

	.no_dead_strip	_arizona_enable_freerun_sysclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_enable_freerun_sysclk
_arizona_enable_freerun_sysclk:         ; @arizona_enable_freerun_sysclk
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x22, _ARIZONA_FLL1_CONTROL_1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ARIZONA_FLL1_CONTROL_1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	b	LBB0_11
LBB0_2:
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x23, _ARIZONA_SYSTEM_CLOCK_1@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ARIZONA_SYSTEM_CLOCK_1@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, x21, #4
	bl	_regmap_read
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _ARIZONA_FLL1_ENA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARIZONA_FLL1_ENA@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ARIZONA_FLL1_FREERUN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ARIZONA_FLL1_FREERUN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	b	LBB0_11
LBB0_6:
Lloh16:
	adrp	x8, _ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _ARIZONA_FLL1_CLOCK_OK_STS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARIZONA_FLL1_CLOCK_OK_STS@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #180
	mov	x4, x3
	bl	_arizona_poll_reg
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	mov	w2, #324
	bl	_regmap_write
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.8:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	ldr	w2, [x21]
	bl	_regmap_write
	cbz	w0, LBB0_12
; %bb.10:
	mov	x2, x0
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	bl	_dev_err
LBB0_12:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_FLL1_CONTROL_1,4,2     ; @ARIZONA_FLL1_CONTROL_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to cache FLL settings: %d\n"

	.comm	_ARIZONA_SYSTEM_CLOCK_1,4,2     ; @ARIZONA_SYSTEM_CLOCK_1
l_.str.1:                               ; @.str.1
	.asciz	"Failed to cache SYSCLK settings: %d\n"

	.comm	_ARIZONA_FLL1_ENA,4,2           ; @ARIZONA_FLL1_ENA
	.comm	_ARIZONA_FLL1_FREERUN,4,2       ; @ARIZONA_FLL1_FREERUN
l_.str.2:                               ; @.str.2
	.asciz	"Failed to start FLL in freerunning mode: %d\n"

	.comm	_ARIZONA_INTERRUPT_RAW_STATUS_5,4,2 ; @ARIZONA_INTERRUPT_RAW_STATUS_5
	.comm	_ARIZONA_FLL1_CLOCK_OK_STS,4,2  ; @ARIZONA_FLL1_CLOCK_OK_STS
l_.str.3:                               ; @.str.3
	.asciz	"Failed to start SYSCLK: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to re-apply old FLL settings: %d\n"

	.no_dead_strip	_arizona_enable_freerun_sysclk
.subsections_via_symbols
