	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_power_on               ## -- Begin function s5p_mfc_power_on
	.p2align	4, 0x90
_s5p_mfc_power_on:                      ## @s5p_mfc_power_on
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pm@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
LBB0_10:
	movl	16(%rax), %edi
	callq	_clk_disable
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	24(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	addq	$2, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_clk_disable_unprepare
	decq	%rbx
	cmpq	$2, %rbx
	jg	LBB0_7
LBB0_8:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_pm_runtime_put
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pm,8,3                         ## @pm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock prepare failed for clock: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_power_on               ; -- Begin function s5p_mfc_power_on
	.p2align	2
_s5p_mfc_power_on:                      ; @s5p_mfc_power_on
	.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
Lloh0:
	adrp	x20, _pm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pm@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.lt	LBB0_3
LBB0_5:
	ldr	w0, [x8, #16]
	bl	_clk_disable
	mov	w19, #0
	b	LBB0_10
LBB0_6:
	mov	x19, x0
	b	LBB0_10
LBB0_7:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	ldr	w1, [x8, x21, lsl #2]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
	cbz	w21, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_clk_disable_unprepare
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #2
	b.gt	LBB0_8
LBB0_9:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_pm_runtime_put
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pm,8,3                         ; @pm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock prepare failed for clock: %s\n"

.subsections_via_symbols
