	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_init_pm                ## -- Begin function s5p_mfc_init_pm
	.p2align	4, 0x90
_s5p_mfc_init_pm:                       ## @s5p_mfc_init_pm
	.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, %r14
	leaq	16(%rdi), %rax
	movq	_pm@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_p_dev@GOTPCREL(%rip), %rcx
	movq	%rdi, (%rcx)
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movl	(%rcx), %esi
	movl	%esi, 16(%rdi)
	movq	16(%rcx), %rdi
	movq	%rdi, 48(%r14)
	movq	%rdx, 24(%r14)
	movq	$0, 40(%r14)
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movq	$0, (%rax,%rbx,8)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdi
	movq	32(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_devm_clk_get
	movq	(%r15), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_PTR_ERR
	addl	(%r12), %eax
	je	LBB0_5
LBB0_11:
	movq	(%r15), %rax
	movq	32(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_mfc_err
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	(%r14), %rcx
LBB0_8:
	cmpq	$0, 8(%rcx)
	je	LBB0_10
## %bb.9:
	movq	16(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
LBB0_10:
	movq	8(%rax), %rdi
	callq	_pm_runtime_enable
	movq	_clk_ref@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pm,8,3                         ## @pm
	.comm	_p_dev,8,3                      ## @p_dev
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get clock: %s\n"

	.comm	_clk_ref,4,2                    ## @clk_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_init_pm                ; -- Begin function s5p_mfc_init_pm
	.p2align	2
_s5p_mfc_init_pm:                       ; @s5p_mfc_init_pm
	.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
	add	x8, x0, #16
Lloh0:
	adrp	x20, _pm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pm@GOTPAGEOFF]
	str	x8, [x20]
Lloh2:
	adrp	x9, _p_dev@GOTPAGE
Lloh3:
	ldr	x9, [x9, _p_dev@GOTPAGEOFF]
Lloh4:
	str	x0, [x9]
	ldp	x9, x10, [x0]
	ldr	w11, [x9]
	str	w11, [x0, #16]
	str	x10, [x0, #24]
	ldr	x10, [x9, #16]
	stp	xzr, x10, [x0, #40]
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x21, #0
Lloh5:
	adrp	x22, _ENOENT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	str	xzr, [x8, x21, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, #8]
	ldr	x8, [x8, #32]
	ldr	w1, [x8, x21, lsl #2]
	bl	_devm_clk_get
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, x21, lsl #3]
	bl	_PTR_ERR
	ldr	w8, [x22]
	cmn	w0, w8
	b.eq	LBB0_2
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8, #32]
	ldr	w1, [x8, x21, lsl #2]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, x21, lsl #3]
	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
	b	_PTR_ERR
LBB0_8:
	ldr	x9, [x19]
LBB0_9:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	str	x9, [x8, #24]
LBB0_11:
	ldr	x0, [x8, #8]
	bl	_pm_runtime_enable
Lloh9:
	adrp	x0, _clk_ref@GOTPAGE
Lloh10:
	ldr	x0, [x0, _clk_ref@GOTPAGEOFF]
	mov	w1, #0
	bl	_atomic_set
	mov	w0, #0
	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 AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pm,8,3                         ; @pm
	.comm	_p_dev,8,3                      ; @p_dev
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get clock: %s\n"

	.comm	_clk_ref,4,2                    ; @clk_ref
.subsections_via_symbols
