	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_ocotp_read
_mxs_ocotp_read:                        ## @mxs_ocotp_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
	pushq	%rax
	.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_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_BM_OCOTP_CTRL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movq	%r12, %rdi
	callq	_mxs_ocotp_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_BM_OCOTP_CTRL_RD_BANK_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_mxs_ocotp_wait
	movl	%eax, %ebx
	testq	%r14, %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_9
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.4:
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, (%rdx,%r15)
	addq	$4, %r15
	cmpq	%r15, %r14
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r13), %rcx
	movl	$0, %eax
	testb	$15, %cl
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, %eax
	movq	_OCOTP_DATA_OFFSET@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %edi
	addq	8(%r12), %rdi
	callq	_readl
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	_BM_OCOTP_CTRL_RD_BANK_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
LBB0_10:
	movl	(%r12), %edi
	callq	_clk_disable
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_OCOTP_CTRL_ERROR,4,2        ## @BM_OCOTP_CTRL_ERROR
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_BM_OCOTP_CTRL_RD_BANK_OPEN,4,2 ## @BM_OCOTP_CTRL_RD_BANK_OPEN
	.comm	_STMP_OFFSET_REG_SET,8,3        ## @STMP_OFFSET_REG_SET
	.comm	_OCOTP_DATA_OFFSET,4,2          ## @OCOTP_DATA_OFFSET
	.no_dead_strip	_mxs_ocotp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_ocotp_read
_mxs_ocotp_read:                        ; @mxs_ocotp_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_clk_enable
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _BM_OCOTP_CTRL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BM_OCOTP_CTRL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x24, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_mxs_ocotp_wait
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.2:
Lloh5:
	adrp	x25, _BM_OCOTP_CTRL_RD_BANK_OPEN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _BM_OCOTP_CTRL_RD_BANK_OPEN@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _STMP_OFFSET_REG_SET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _STMP_OFFSET_REG_SET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	mov	x0, x19
	bl	_mxs_ocotp_wait
	mov	x23, x0
	cbz	x20, LBB0_9
; %bb.3:
	cbnz	w23, LBB0_9
; %bb.4:
Lloh10:
	adrp	x26, _OCOTP_DATA_OFFSET@GOTPAGE
Lloh11:
	ldr	x26, [x26, _OCOTP_DATA_OFFSET@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x21], #4
	add	w22, w22, #4
	subs	x20, x20, #4
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	tst	w22, #0xf
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	cmp	w22, w8
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, w22, uxtw
	bl	_readl
	b	LBB0_5
LBB0_9:
	ldr	w0, [x25]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
LBB0_10:
	ldr	w0, [x19]
	bl	_clk_disable
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_OCOTP_CTRL_ERROR,4,2        ; @BM_OCOTP_CTRL_ERROR
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_BM_OCOTP_CTRL_RD_BANK_OPEN,4,2 ; @BM_OCOTP_CTRL_RD_BANK_OPEN
	.comm	_STMP_OFFSET_REG_SET,8,3        ; @STMP_OFFSET_REG_SET
	.comm	_OCOTP_DATA_OFFSET,4,2          ; @OCOTP_DATA_OFFSET
	.no_dead_strip	_mxs_ocotp_read
.subsections_via_symbols
