	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx274_clamp_coarse_time
_imx274_clamp_coarse_time:              ## @imx274_clamp_coarse_time
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	_imx274_get_frame_length
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rdx
	movq	(%rbx), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_3
## %bb.2:
	movq	%rsi, (%r15)
	movq	%rsi, %rdx
LBB0_3:
	subq	(%r14), %rdx
	movq	%rdx, (%r14)
	movq	(%r15), %rsi
	movq	_IMX274_SHR_LIMIT_CONST@GOTPCREL(%rip), %rdi
	subq	(%rdi), %rsi
	cmpq	%rsi, %rdx
	jg	LBB0_5
## %bb.4:
	movq	8(%rcx), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_6
LBB0_5:
	movq	%rsi, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX274_SHR_LIMIT_CONST,8,3     ## @IMX274_SHR_LIMIT_CONST
	.no_dead_strip	_imx274_clamp_coarse_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx274_clamp_coarse_time
_imx274_clamp_coarse_time:              ; @imx274_clamp_coarse_time
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x1, x2
	bl	_imx274_get_frame_length
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x9, [x20]
	ldr	x8, [x21]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.2:
	str	x10, [x20]
	mov	x9, x10
LBB0_3:
	ldr	x10, [x19]
	sub	x9, x9, x10
	str	x9, [x19]
	ldr	x10, [x20]
Lloh0:
	adrp	x11, _IMX274_SHR_LIMIT_CONST@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IMX274_SHR_LIMIT_CONST@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	sub	x10, x10, x11
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.4:
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ge	LBB0_6
LBB0_5:
	str	x10, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX274_SHR_LIMIT_CONST,8,3     ; @IMX274_SHR_LIMIT_CONST
	.no_dead_strip	_imx274_clamp_coarse_time
.subsections_via_symbols
