	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ocotp_set_imx7_timing
_imx_ocotp_set_imx7_timing:             ## @imx_ocotp_set_imx7_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_clk_get_rate
	movq	%rax, %r15
	movq	_DEF_FSOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r15d, %edi
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_DIV_ROUND_UP_ULL
	movl	%eax, %ebx
	movq	_DEF_STROBE_PROG@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_DIV_ROUND_CLOSEST_ULL
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	andl	$4095, %eax                     ## imm = 0xFFF
	shll	$12, %ebx
	addl	$4096, %ebx                     ## imm = 0x1000
	andl	$1044480, %ebx                  ## imm = 0xFF000
	orl	%eax, %ebx
	movq	_IMX_OCOTP_ADDR_TIMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEF_FSOURCE,4,2                ## @DEF_FSOURCE
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_DEF_STROBE_PROG,4,2            ## @DEF_STROBE_PROG
	.comm	_IMX_OCOTP_ADDR_TIMING,8,3      ## @IMX_OCOTP_ADDR_TIMING
	.no_dead_strip	_imx_ocotp_set_imx7_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_imx7_timing
_imx_ocotp_set_imx7_timing:             ; @imx_ocotp_set_imx7_timing
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_clk_get_rate
	mov	x20, x0
Lloh0:
	adrp	x8, _DEF_FSOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEF_FSOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w0, w8, w20
Lloh3:
	adrp	x22, _NSEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NSEC_PER_SEC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_DIV_ROUND_UP_ULL
	mov	x21, x0
Lloh5:
	adrp	x8, _DEF_STROBE_PROG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEF_STROBE_PROG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mul	w0, w8, w20
	ldr	w1, [x22]
	bl	_DIV_ROUND_CLOSEST_ULL
	add	w8, w0, #1
	lsl	w9, w21, #12
	add	w9, w9, #1, lsl #12             ; =4096
	and	w0, w9, #0xff000
	bfxil	w0, w8, #0, #12
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _IMX_OCOTP_ADDR_TIMING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IMX_OCOTP_ADDR_TIMING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEF_FSOURCE,4,2                ; @DEF_FSOURCE
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_DEF_STROBE_PROG,4,2            ; @DEF_STROBE_PROG
	.comm	_IMX_OCOTP_ADDR_TIMING,8,3      ; @IMX_OCOTP_ADDR_TIMING
	.no_dead_strip	_imx_ocotp_set_imx7_timing
.subsections_via_symbols
