	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ocotp_set_imx6_timing
_imx_ocotp_set_imx6_timing:             ## @imx_ocotp_set_imx6_timing
	.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	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_clk_get_rate
	movq	%rax, %r15
	movq	_TIMING_RELAX_NS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%r15, %rdi
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	callq	_DIV_ROUND_UP
	movl	%eax, %r12d
	movl	%eax, %r13d
	shll	$12, %r13d
	movq	_TIMING_STROBE_READ_NS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%r15, %rdi
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12,2), %ebx
	decl	%ebx
	movq	_TIMING_STROBE_PROG_US@GOTPCREL(%rip), %rax
	imulq	(%rax), %r15
	movq	%r15, %rdi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_DIV_ROUND_CLOSEST
	leal	(%rax,%r12,2), %r12d
	decl	%r12d
	movq	_IMX_OCOTP_ADDR_TIMING@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	andl	$264241152, %eax                ## imm = 0xFC00000
	andl	$4095, %r12d                    ## imm = 0xFFF
	addl	$-4096, %r13d                   ## imm = 0xF000
	movzwl	%r13w, %ecx
	orq	%r12, %rcx
	andl	$63, %ebx
	shlq	$16, %rbx
	orq	%rcx, %rbx
	orq	%rax, %rbx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMING_RELAX_NS,8,3            ## @TIMING_RELAX_NS
	.comm	_TIMING_STROBE_READ_NS,8,3      ## @TIMING_STROBE_READ_NS
	.comm	_TIMING_STROBE_PROG_US,8,3      ## @TIMING_STROBE_PROG_US
	.comm	_IMX_OCOTP_ADDR_TIMING,8,3      ## @IMX_OCOTP_ADDR_TIMING
	.no_dead_strip	_imx_ocotp_set_imx6_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ocotp_set_imx6_timing
_imx_ocotp_set_imx6_timing:             ; @imx_ocotp_set_imx6_timing
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_clk_get_rate
	mov	x20, x0
Lloh0:
	adrp	x8, _TIMING_RELAX_NS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMING_RELAX_NS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mul	x0, x8, x0
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_DIV_ROUND_UP
	sub	w21, w0, #1
Lloh3:
	adrp	x8, _TIMING_STROBE_READ_NS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIMING_STROBE_READ_NS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mul	x0, x8, x20
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_DIV_ROUND_UP
	mov	w22, #1
	bfi	w22, w21, #1, #31
	add	w23, w22, w0
Lloh6:
	adrp	x8, _TIMING_STROBE_PROG_US@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIMING_STROBE_PROG_US@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mul	x0, x8, x20
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_DIV_ROUND_CLOSEST
	add	w20, w0, w22
	ldr	x8, [x19]
Lloh9:
	adrp	x22, _IMX_OCOTP_ADDR_TIMING@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IMX_OCOTP_ADDR_TIMING@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, #0xfc00000
	lsl	w9, w21, #12
	and	x9, x9, #0xf000
	lsl	w10, w23, #16
	and	x10, x10, #0x3f0000
	bfxil	x9, x20, #0, #12
	orr	x9, x9, x10
	orr	x0, x9, x8
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMING_RELAX_NS,8,3            ; @TIMING_RELAX_NS
	.comm	_TIMING_STROBE_READ_NS,8,3      ; @TIMING_STROBE_READ_NS
	.comm	_TIMING_STROBE_PROG_US,8,3      ; @TIMING_STROBE_PROG_US
	.comm	_IMX_OCOTP_ADDR_TIMING,8,3      ; @IMX_OCOTP_ADDR_TIMING
	.no_dead_strip	_imx_ocotp_set_imx6_timing
.subsections_via_symbols
