	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arizona_clk32k_enable          ## -- Begin function arizona_clk32k_enable
	.p2align	4, 0x90
_arizona_clk32k_enable:                 ## @arizona_clk32k_enable
	.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, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	28(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.3:
	movl	24(%rbx), %edi
	callq	_pm_runtime_get_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	16(%rbx), %rax
	movq	_ARIZONA_MCLK1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movl	24(%rbx), %edi
	callq	_pm_runtime_put_sync
	jmp	LBB0_8
LBB0_6:
	movq	16(%rbx), %rax
	movq	_ARIZONA_MCLK2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	8(%rbx), %edi
	movq	_ARIZONA_CLOCK_32K_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_CLK_32K_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	decl	(%rbx)
	movl	%r12d, %r15d
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_MCLK1,8,3              ## @ARIZONA_MCLK1
	.comm	_ARIZONA_MCLK2,8,3              ## @ARIZONA_MCLK2
	.comm	_ARIZONA_CLOCK_32K_1,4,2        ## @ARIZONA_CLOCK_32K_1
	.comm	_ARIZONA_CLK_32K_ENA,4,2        ## @ARIZONA_CLK_32K_ENA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arizona_clk32k_enable          ; -- Begin function arizona_clk32k_enable
	.p2align	2
_arizona_clk32k_enable:                 ; @arizona_clk32k_enable
	.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
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_10
LBB0_2:
	ldr	w8, [x20, #28]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20, #24]
	bl	_pm_runtime_get_sync
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _ARIZONA_MCLK1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARIZONA_MCLK1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w0, [x20, #24]
	bl	_pm_runtime_put_sync
	b	LBB0_9
LBB0_7:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _ARIZONA_MCLK2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARIZONA_MCLK2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_9
LBB0_8:
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _ARIZONA_CLOCK_32K_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARIZONA_CLOCK_32K_1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ARIZONA_CLK_32K_ENA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARIZONA_CLK_32K_ENA@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_9:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_MCLK1,8,3              ; @ARIZONA_MCLK1
	.comm	_ARIZONA_MCLK2,8,3              ; @ARIZONA_MCLK2
	.comm	_ARIZONA_CLOCK_32K_1,4,2        ; @ARIZONA_CLOCK_32K_1
	.comm	_ARIZONA_CLK_32K_ENA,4,2        ; @ARIZONA_CLK_32K_ENA
.subsections_via_symbols
