	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_low_record_time_index
_get_low_record_time_index:             ## @get_low_record_time_index
	.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	%rdx, %r14
	movq	_NUM_ALIAS_GUID_REC_IN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	(%rdi), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	_MLX4_GUID_INFO_STATUS_IDLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	addq	$16, %rcx
	movl	$-1, %r15d
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	addq	$24, %rcx
	cmpq	%rsi, %r8
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, -16(%rcx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rcx), %rdi
	cmpl	$-1, %r15d
	sete	%al
	cmpq	%rbx, %rdi
	setl	%dl
	orb	%al, %dl
	cmovneq	%rdi, %rbx
	cmovnel	%esi, %r15d
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r15d
	xorl	%ebx, %ebx
LBB0_7:
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	subq	%rax, %rbx
	jl	LBB0_10
## %bb.9:
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_div_u64
	movl	%eax, %r12d
LBB0_10:
	movl	%r12d, (%r14)
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_ALIAS_GUID_REC_IN_PORT,4,2 ## @NUM_ALIAS_GUID_REC_IN_PORT
	.comm	_MLX4_GUID_INFO_STATUS_IDLE,8,3 ## @MLX4_GUID_INFO_STATUS_IDLE
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.no_dead_strip	_get_low_record_time_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_low_record_time_index
_get_low_record_time_index:             ; @get_low_record_time_index
	.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, x2
Lloh0:
	adrp	x8, _NUM_ALIAS_GUID_REC_IN_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_ALIAS_GUID_REC_IN_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	mov	x21, #0
	ldr	x10, [x0]
	ldr	x11, [x10, x1, lsl #3]
Lloh3:
	adrp	x10, _MLX4_GUID_INFO_STATUS_IDLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLX4_GUID_INFO_STATUS_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x11, x11, #8
	mov	w20, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x11, x11, #24
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	ldr	x13, [x11, #8]
	cmp	x12, x10
	ccmp	x13, #0, #4, eq
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x11]
	cmn	w20, #1
	ccmp	x12, x21, #8, ne
	cset	w13, lt
	cmp	w13, #0
	csel	w20, w9, w20, ne
	csel	x21, x12, x21, ne
	b	LBB0_2
LBB0_5:
	mov	x21, #0
	mov	w20, #-1
LBB0_6:
	cbz	x19, LBB0_11
; %bb.7:
	bl	_ktime_get_boottime_ns
	subs	x0, x21, x0
	b.ge	LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_div_u64
LBB0_10:
	str	w0, [x19]
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_ALIAS_GUID_REC_IN_PORT,4,2 ; @NUM_ALIAS_GUID_REC_IN_PORT
	.comm	_MLX4_GUID_INFO_STATUS_IDLE,8,3 ; @MLX4_GUID_INFO_STATUS_IDLE
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.no_dead_strip	_get_low_record_time_index
.subsections_via_symbols
