	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_rk3288_efuse_read
_rockchip_rk3288_efuse_read:            ## @rockchip_rk3288_efuse_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%r13d, %ebx
	movq	_RK3288_LOAD@GOTPCREL(%rip), %rax
	movq	_RK3288_PGENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_REG_EFUSE_CTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movq	%r14, %rax
	movl	%ebx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %ebx
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	_RK3288_A_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_RK3288_A_SHIFT@GOTPCREL(%rip), %r15
	movzbl	(%r15), %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	_RK3288_A_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movzbl	(%r15), %ecx
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movq	_RK3288_STROBE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	_REG_EFUSE_DOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readb
	movl	%eax, (%r15,%r14,4)
	movq	(%r13), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	(%rbx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%r14
	cmpq	%r14, %rax
	jne	LBB0_4
LBB0_5:
	movq	_RK3288_CSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RK3288_PGENB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movl	(%r12), %edi
	callq	_clk_disable_unprepare
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to prepare/enable efuse clk\n"

	.comm	_RK3288_LOAD,4,2                ## @RK3288_LOAD
	.comm	_RK3288_PGENB,4,2               ## @RK3288_PGENB
	.comm	_REG_EFUSE_CTRL,8,3             ## @REG_EFUSE_CTRL
	.comm	_RK3288_A_MASK,4,2              ## @RK3288_A_MASK
	.comm	_RK3288_A_SHIFT,4,2             ## @RK3288_A_SHIFT
	.comm	_RK3288_STROBE,4,2              ## @RK3288_STROBE
	.comm	_REG_EFUSE_DOUT,8,3             ## @REG_EFUSE_DOUT
	.comm	_RK3288_CSB,4,2                 ## @RK3288_CSB
	.no_dead_strip	_rockchip_rk3288_efuse_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_rk3288_efuse_read
_rockchip_rk3288_efuse_read:            ; @rockchip_rk3288_efuse_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _RK3288_LOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3288_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RK3288_PGENB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RK3288_PGENB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x24, _REG_EFUSE_CTRL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _REG_EFUSE_CTRL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	cbz	x20, LBB0_4
; %bb.2:
Lloh8:
	adrp	x25, _RK3288_A_MASK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RK3288_A_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x26, _RK3288_A_SHIFT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _RK3288_A_SHIFT@GOTPAGEOFF]
Lloh12:
	adrp	x27, _RK3288_STROBE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _RK3288_STROBE@GOTPAGEOFF]
Lloh14:
	adrp	x28, _REG_EFUSE_DOUT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _REG_EFUSE_DOUT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x20, x20, #1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsl	w8, w8, w9
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	add	w23, w22, #1
	ldr	w8, [x25]
	and	w8, w8, w22
	ldr	w9, [x26]
	lsl	w8, w8, w9
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x27]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x28]
	add	x0, x9, x8
	bl	_readb
	str	w0, [x21], #4
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x27]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	mov	x22, x23
	cbnz	x20, LBB0_3
LBB0_4:
Lloh16:
	adrp	x8, _RK3288_CSB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RK3288_CSB@GOTPAGEOFF]
Lloh18:
	adrp	x9, _RK3288_PGENB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RK3288_PGENB@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	ldr	w8, [x8]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	mov	x23, x0
	ldr	w0, [x19, #16]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to prepare/enable efuse clk\n"

	.comm	_RK3288_LOAD,4,2                ; @RK3288_LOAD
	.comm	_RK3288_PGENB,4,2               ; @RK3288_PGENB
	.comm	_REG_EFUSE_CTRL,8,3             ; @REG_EFUSE_CTRL
	.comm	_RK3288_A_MASK,4,2              ; @RK3288_A_MASK
	.comm	_RK3288_A_SHIFT,4,2             ; @RK3288_A_SHIFT
	.comm	_RK3288_STROBE,4,2              ; @RK3288_STROBE
	.comm	_REG_EFUSE_DOUT,8,3             ; @REG_EFUSE_DOUT
	.comm	_RK3288_CSB,4,2                 ; @RK3288_CSB
	.no_dead_strip	_rockchip_rk3288_efuse_read
.subsections_via_symbols
