	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos4x12_power_off
_exynos4x12_power_off:                  ## @exynos4x12_power_off
	.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	16(%rdi), %r14
	movl	8(%rdi), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 8(%rdi)
	cmpl	$1, %eax
	jg	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_EXYNOS4x12_DEVICE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	movq	_EXYNOS_4x12_MODE_SWITCH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXYNOS_4x12_MODE_SWITCH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EXYNOS_4x12_MODE_SWITCH_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movq	(%rbx), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	_EXYNOS4x12_HOST@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	(%r14), %rdi
	callq	_exynos4x12_power_off_int
	movq	(%rbx), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	_EXYNOS4x12_HSIC0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_EXYNOS4x12_HSIC1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	(%r14), %rdi
	callq	_exynos4x12_power_off_int
	movq	(%r12), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	(%r14), %rdi
	callq	_exynos4x12_power_off_int
LBB0_9:
	movq	%rbx, %rdi
	callq	_exynos4x12_power_off_int
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS4x12_DEVICE,8,3          ## @EXYNOS4x12_DEVICE
	.comm	_EXYNOS_4x12_MODE_SWITCH_OFFSET,4,2 ## @EXYNOS_4x12_MODE_SWITCH_OFFSET
	.comm	_EXYNOS_4x12_MODE_SWITCH_MASK,4,2 ## @EXYNOS_4x12_MODE_SWITCH_MASK
	.comm	_EXYNOS_4x12_MODE_SWITCH_HOST,4,2 ## @EXYNOS_4x12_MODE_SWITCH_HOST
	.comm	_EXYNOS4x12_HOST,8,3            ## @EXYNOS4x12_HOST
	.comm	_EXYNOS4x12_HSIC0,8,3           ## @EXYNOS4x12_HSIC0
	.comm	_EXYNOS4x12_HSIC1,8,3           ## @EXYNOS4x12_HSIC1
	.no_dead_strip	_exynos4x12_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos4x12_power_off
_exynos4x12_power_off:                  ; @exynos4x12_power_off
	.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
	ldr	x20, [x0, #16]
	ldr	w8, [x0, #8]
	subs	w8, w8, #1
	str	w8, [x0, #8]
	b.gt	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _EXYNOS4x12_DEVICE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EXYNOS4x12_DEVICE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _EXYNOS_4x12_MODE_SWITCH_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXYNOS_4x12_MODE_SWITCH_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EXYNOS_4x12_MODE_SWITCH_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXYNOS_4x12_MODE_SWITCH_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _EXYNOS_4x12_MODE_SWITCH_HOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXYNOS_4x12_MODE_SWITCH_HOST@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	ldr	x8, [x19]
	ldr	x8, [x8]
LBB0_4:
Lloh11:
	adrp	x22, _EXYNOS4x12_HOST@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EXYNOS4x12_HOST@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x0, x9, x10, x8
	bl	_exynos4x12_power_off_int
	ldr	x8, [x19]
	ldr	x8, [x8]
LBB0_6:
Lloh13:
	adrp	x9, _EXYNOS4x12_HSIC0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EXYNOS4x12_HSIC0@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _EXYNOS4x12_HSIC1@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EXYNOS4x12_HSIC1@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	x9, [x21]
	mov	w21, #24
	madd	x0, x9, x21, x8
	bl	_exynos4x12_power_off_int
	ldr	x8, [x20]
	ldr	x9, [x22]
	madd	x0, x9, x21, x8
	bl	_exynos4x12_power_off_int
LBB0_8:
	mov	x0, x19
	bl	_exynos4x12_power_off_int
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS4x12_DEVICE,8,3          ; @EXYNOS4x12_DEVICE
	.comm	_EXYNOS_4x12_MODE_SWITCH_OFFSET,4,2 ; @EXYNOS_4x12_MODE_SWITCH_OFFSET
	.comm	_EXYNOS_4x12_MODE_SWITCH_MASK,4,2 ; @EXYNOS_4x12_MODE_SWITCH_MASK
	.comm	_EXYNOS_4x12_MODE_SWITCH_HOST,4,2 ; @EXYNOS_4x12_MODE_SWITCH_HOST
	.comm	_EXYNOS4x12_HOST,8,3            ; @EXYNOS4x12_HOST
	.comm	_EXYNOS4x12_HSIC0,8,3           ; @EXYNOS4x12_HSIC0
	.comm	_EXYNOS4x12_HSIC1,8,3           ; @EXYNOS4x12_HSIC1
	.no_dead_strip	_exynos4x12_power_off
.subsections_via_symbols
