	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_peak_usb_get_ts_time           ## -- Begin function peak_usb_get_ts_time
	.p2align	4, 0x90
_peak_usb_get_ts_time:                  ## @peak_usb_get_ts_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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_ktime_to_ns
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	movq	16(%rbx), %rax
	movl	%r15d, %esi
	subl	%ecx, %esi
	cmpq	%rcx, %r15
	jge	LBB0_3
## %bb.2:
	movb	(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %esi
LBB0_3:
	addl	24(%rbx), %esi
	imull	4(%rax), %esi
	movb	8(%rax), %cl
	sarl	%cl, %esi
	movl	8(%rbx), %edi
	callq	_ktime_add_us
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_ktime_get
LBB0_5:
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_peak_usb_get_ts_time           ; -- Begin function peak_usb_get_ts_time
	.p2align	2
_peak_usb_get_ts_time:                  ; @peak_usb_get_ts_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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #32]
	bl	_ktime_to_ns
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x10, [x20]
	sub	w9, w21, w10
	ldr	x8, [x20, #16]
	cmp	x21, x10
	b.ge	LBB0_3
; %bb.2:
	ldr	w10, [x8]
	mov	w11, #-1
	lsl	w10, w11, w10
	bic	w9, w9, w10
LBB0_3:
	ldr	w10, [x20, #24]
	add	w9, w9, w10
	ldp	w10, w8, [x8, #4]
	mul	w9, w9, w10
	asr	w1, w9, w8
	ldr	w0, [x20, #8]
	bl	_ktime_add_us
	b	LBB0_5
LBB0_4:
	bl	_ktime_get
LBB0_5:
	str	w0, [x19]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
