	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ocotp_write
_imx_ocotp_write:                       ## @imx_ocotp_write
	.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, %r12
	movq	24(%rdi), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %rcx
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %r15d
	movq	%r15, %rdx
	cmpq	%r12, %r15
	jb	LBB0_3
## %bb.2:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_ocotp_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_imx_ocotp_wait_for_busy
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:
	movq	16(%r14), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.9:
	movq	24(%r14), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r15
	jb	LBB0_14
## %bb.10:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %r13d
	movq	_ocotp_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r13d, %r12d
	jmp	LBB0_5
LBB0_12:
	movl	%eax, %r13d
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_33
LBB0_13:
	shrl	$2, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_14:
	xorl	%ecx, %ecx
LBB0_15:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ebx
	decl	%r13d
	andl	%ecx, %r13d
LBB0_16:
	movq	_IMX_OCOTP_ADDR_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_IMX_OCOTP_BM_CTRL_ADDR@GOTPCREL(%rip), %rcx
	xorl	%eax, %ebx
	andl	(%rcx), %ebx
	xorl	%eax, %ebx
	movq	_IMX_OCOTP_WR_UNLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.17:
	cmpl	$3, %r13d
	ja	LBB0_27
## %bb.18:
	movl	%r13d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_IMX_OCOTP_ADDR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_IMX_OCOTP_ADDR_DATA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_IMX_OCOTP_ADDR_DATA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_IMX_OCOTP_ADDR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_IMX_OCOTP_ADDR_DATA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_23
LBB0_22:
	movq	_IMX_OCOTP_ADDR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_IMX_OCOTP_ADDR_DATA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
LBB0_23:
	callq	_writel
	movq	_IMX_OCOTP_ADDR_DATA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	jmp	LBB0_25
LBB0_24:
	movq	_IMX_OCOTP_ADDR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movq	_IMX_OCOTP_ADDR_DATA2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_IMX_OCOTP_ADDR_DATA3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
LBB0_25:
	callq	_writel
LBB0_26:
	movq	_IMX_OCOTP_ADDR_DATA0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
LBB0_27:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_imx_ocotp_wait_for_busy
	testl	%eax, %eax
	js	LBB0_30
## %bb.28:
	movl	$2, %edi
	callq	_udelay
	movq	_IMX_OCOTP_BM_CTRL_REL_SHADOWS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_IMX_OCOTP_ADDR_CTRL_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	8(%r14), %rdi
	movl	(%rbx), %esi
	callq	_imx_ocotp_wait_for_busy
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_34
## %bb.29:
	movl	4(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_33
LBB0_30:
	movl	%eax, %r13d
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%r14), %edi
	addl	%r13d, %eax
	jne	LBB0_32
## %bb.31:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	8(%r14), %rdi
	callq	_imx_ocotp_clr_err_if_set
	jmp	LBB0_34
LBB0_32:
	leaq	L_.str.3(%rip), %rsi
LBB0_33:
	callq	_dev_err
LBB0_34:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	movq	_ocotp_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	cmovsl	%r13d, %r12d
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ocotp_mutex,4,2                ## @ocotp_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to prepare/enable ocotp clk\n"

L_.str.1:                               ## @.str.1
	.asciz	"timeout during timing setup\n"

	.comm	_IMX_OCOTP_ADDR_CTRL,8,3        ## @IMX_OCOTP_ADDR_CTRL
	.comm	_IMX_OCOTP_BM_CTRL_ADDR,4,2     ## @IMX_OCOTP_BM_CTRL_ADDR
	.comm	_IMX_OCOTP_WR_UNLOCK,4,2        ## @IMX_OCOTP_WR_UNLOCK
	.comm	_IMX_OCOTP_ADDR_DATA1,8,3       ## @IMX_OCOTP_ADDR_DATA1
	.comm	_IMX_OCOTP_ADDR_DATA2,8,3       ## @IMX_OCOTP_ADDR_DATA2
	.comm	_IMX_OCOTP_ADDR_DATA3,8,3       ## @IMX_OCOTP_ADDR_DATA3
	.comm	_IMX_OCOTP_ADDR_DATA0,8,3       ## @IMX_OCOTP_ADDR_DATA0
	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"failed write to locked region"

L_.str.3:                               ## @.str.3
	.asciz	"timeout during data write\n"

	.comm	_IMX_OCOTP_BM_CTRL_REL_SHADOWS,4,2 ## @IMX_OCOTP_BM_CTRL_REL_SHADOWS
	.comm	_IMX_OCOTP_ADDR_CTRL_SET,8,3    ## @IMX_OCOTP_ADDR_CTRL_SET
L_.str.4:                               ## @.str.4
	.asciz	"timeout during shadow register reload\n"

	.no_dead_strip	_imx_ocotp_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ocotp_write
_imx_ocotp_write:                       ; @imx_ocotp_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	cmp	x8, x3
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x23, x1
	mov	w24, w1
	udiv	x8, x24, x3
	msub	x8, x8, x3, x24
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x21, x2
	mov	x20, x0
Lloh3:
	adrp	x0, _ocotp_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ocotp_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w0, [x20]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldr	x0, [x20, #8]
	mov	w1, #0
	bl	_imx_ocotp_wait_for_busy
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	udiv	x9, x24, x9
	sub	w10, w8, #1
	and	w22, w10, w9
	udiv	w23, w9, w8
	b	LBB0_11
LBB0_8:
	mov	x22, x0
Lloh5:
	adrp	x0, _ocotp_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ocotp_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	w0, [x20, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_9:
	mov	x22, x0
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_10:
	mov	w22, #0
	lsr	w23, w23, #2
LBB0_11:
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x24, _IMX_OCOTP_ADDR_CTRL@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IMX_OCOTP_ADDR_CTRL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh13:
	adrp	x8, _IMX_OCOTP_BM_CTRL_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMX_OCOTP_BM_CTRL_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w9, w0, w8
	and	w8, w8, w23
Lloh16:
	adrp	x10, _IMX_OCOTP_WR_UNLOCK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IMX_OCOTP_WR_UNLOCK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh18:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.12:
	cmp	w22, #3
	b.hi	LBB0_22
; %bb.13:
	mov	w8, w22
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh24:
	adrp	x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh27:
	adrp	x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_15:
	ldr	w0, [x21]
	b	LBB0_21
LBB0_16:
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
Lloh30:
	adrp	x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
Lloh33:
	adrp	x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20, #8]
Lloh36:
	adrp	x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
Lloh39:
	adrp	x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
LBB0_18:
	bl	_writel
	ldr	x8, [x20, #8]
Lloh42:
	adrp	x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	ldr	x8, [x20, #8]
Lloh45:
	adrp	x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA1@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
Lloh48:
	adrp	x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA2@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
Lloh51:
	adrp	x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA3@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
LBB0_20:
	bl	_writel
	mov	w0, #0
LBB0_21:
	ldr	x8, [x20, #8]
Lloh54:
	adrp	x9, _IMX_OCOTP_ADDR_DATA0@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_DATA0@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_22:
	ldr	x0, [x20, #8]
	mov	w1, #0
	bl	_imx_ocotp_wait_for_busy
	tbnz	w0, #31, LBB0_25
; %bb.23:
	mov	w0, #2
	bl	_udelay
Lloh57:
	adrp	x21, _IMX_OCOTP_BM_CTRL_REL_SHADOWS@GOTPAGE
Lloh58:
	ldr	x21, [x21, _IMX_OCOTP_BM_CTRL_REL_SHADOWS@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
Lloh59:
	adrp	x9, _IMX_OCOTP_ADDR_CTRL_SET@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_CTRL_SET@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x20, #8]
	ldr	w1, [x21]
	bl	_imx_ocotp_wait_for_busy
	mov	x22, x0
	tbz	w0, #31, LBB0_29
; %bb.24:
	ldr	w0, [x20, #4]
Lloh62:
	adrp	x1, l_.str.4@PAGE
Lloh63:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_25:
	mov	x22, x0
Lloh64:
	adrp	x8, _EPERM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	ldr	w0, [x20, #4]
	cmn	w22, w8
	b.ne	LBB0_27
; %bb.26:
Lloh67:
	adrp	x1, l_.str.2@PAGE
Lloh68:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x20, #8]
	bl	_imx_ocotp_clr_err_if_set
	b	LBB0_29
LBB0_27:
Lloh69:
	adrp	x1, l_.str.3@PAGE
Lloh70:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_28:
	bl	_dev_err
LBB0_29:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
Lloh71:
	adrp	x0, _ocotp_mutex@GOTPAGE
Lloh72:
	ldr	x0, [x0, _ocotp_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w22, w22, w19, lt
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_16-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_19-LBB0_14)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ocotp_mutex,4,2                ; @ocotp_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to prepare/enable ocotp clk\n"

l_.str.1:                               ; @.str.1
	.asciz	"timeout during timing setup\n"

	.comm	_IMX_OCOTP_ADDR_CTRL,8,3        ; @IMX_OCOTP_ADDR_CTRL
	.comm	_IMX_OCOTP_BM_CTRL_ADDR,4,2     ; @IMX_OCOTP_BM_CTRL_ADDR
	.comm	_IMX_OCOTP_WR_UNLOCK,4,2        ; @IMX_OCOTP_WR_UNLOCK
	.comm	_IMX_OCOTP_ADDR_DATA1,8,3       ; @IMX_OCOTP_ADDR_DATA1
	.comm	_IMX_OCOTP_ADDR_DATA2,8,3       ; @IMX_OCOTP_ADDR_DATA2
	.comm	_IMX_OCOTP_ADDR_DATA3,8,3       ; @IMX_OCOTP_ADDR_DATA3
	.comm	_IMX_OCOTP_ADDR_DATA0,8,3       ; @IMX_OCOTP_ADDR_DATA0
	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"failed write to locked region"

l_.str.3:                               ; @.str.3
	.asciz	"timeout during data write\n"

	.comm	_IMX_OCOTP_BM_CTRL_REL_SHADOWS,4,2 ; @IMX_OCOTP_BM_CTRL_REL_SHADOWS
	.comm	_IMX_OCOTP_ADDR_CTRL_SET,8,3    ; @IMX_OCOTP_ADDR_CTRL_SET
l_.str.4:                               ; @.str.4
	.asciz	"timeout during shadow register reload\n"

	.no_dead_strip	_imx_ocotp_write
.subsections_via_symbols
