	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_gpt_do_delay
_imx_gpt_do_delay:                      ## @imx_gpt_do_delay
	.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	%rsi, %r12
	movl	%edi, %r14d
	imull	(%rsi), %r14d
	movq	_IMX_GPT_CNT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_READ4
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-999999, %r14d                 ## imm = 0xFFF0BDC1
	jl	LBB0_3
## %bb.1:
	movslq	%r14d, %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	leal	(%rax,%rcx), %ebx
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_READ4
	cmpl	%ebx, %eax
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_GPT_CNT,4,2                ## @IMX_GPT_CNT
	.no_dead_strip	_imx_gpt_do_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_gpt_do_delay
_imx_gpt_do_delay:                      ; @imx_gpt_do_delay
	.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, x1
	ldr	w8, [x1]
	mul	w21, w8, w0
Lloh0:
	adrp	x20, _IMX_GPT_CNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IMX_GPT_CNT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
	mov	w8, #48577
	movk	w8, #65520, lsl #16
	cmp	w21, w8
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	add	w8, w8, w0
	add	w21, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
	cmp	w0, w21
	b.lt	LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_GPT_CNT,4,2                ; @IMX_GPT_CNT
	.no_dead_strip	_imx_gpt_do_delay
.subsections_via_symbols
