	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_retention_init          ## -- Begin function exynos_retention_init
	.p2align	4, 0x90
_exynos_retention_init:                 ## @exynos_retention_init
	.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	%rsi, %r15
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_exynos_get_pmu_regmap
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	%r14, 32(%r12)
	movq	16(%r15), %rax
	movq	%rax, 8(%r12)
	movl	(%r15), %ecx
	movl	%ecx, (%r12)
	movl	8(%r15), %edx
	movl	%edx, 4(%r12)
	movl	4(%r15), %esi
	movl	%esi, 24(%r12)
	movq	_exynos_retention_enable@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%r12)
	movq	_exynos_retention_disable@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 16(%r12)
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_regmap_write
	cmpl	$2, (%r12)
	jl	LBB0_6
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	4(%r12), %edx
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_regmap_write
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_exynos_retention_enable,4,2    ## @exynos_retention_enable
	.comm	_exynos_retention_disable,4,2   ## @exynos_retention_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_retention_init          ; -- Begin function exynos_retention_init
	.p2align	2
_exynos_retention_init:                 ; @exynos_retention_init
	.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	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_exynos_get_pmu_regmap
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	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	_ERR_CAST
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_4:
	str	x20, [x19, #32]
	ldr	x8, [x21, #16]
	str	x8, [x19, #8]
	ldp	w10, w2, [x21, #4]
	ldr	w9, [x21]
	stp	w9, w2, [x19]
	str	w10, [x19, #24]
Lloh6:
	adrp	x10, _exynos_retention_enable@GOTPAGE
Lloh7:
	ldr	x10, [x10, _exynos_retention_enable@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _exynos_retention_disable@GOTPAGE
Lloh10:
	ldr	x11, [x11, _exynos_retention_disable@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	stp	w11, w10, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_regmap_write
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x19, #4]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_regmap_write
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_exynos_retention_enable,4,2    ; @exynos_retention_enable
	.comm	_exynos_retention_disable,4,2   ; @exynos_retention_disable
.subsections_via_symbols
