	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_get_time_us
_dib8000_get_time_us:                   ## @dib8000_get_time_us
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	leal	1(%rsi), %edx
	xorl	%r15d, %r15d
	testl	%esi, %esi
	movl	$3, %ecx
	cmovnsl	%edx, %ecx
	movq	(%rax), %rdx
	cmovsl	%r15d, %esi
	movl	$-134, %eax
	addl	(%rdx), %eax
	movl	$32, %r14d
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	L_switch.table.dib8000_get_time_us(%rip), %rdi
	movl	(%rdi,%rax,4), %r14d
LBB0_2:
	cmpl	%ecx, %esi
	jae	LBB0_19
## %bb.3:
	movl	4(%rdx), %eax
	cmpl	$129, %eax
	movl	$768, %edi                      ## imm = 0x300
	movl	$384, %ebx                      ## imm = 0x180
	cmovel	%edi, %ebx
	cmpl	$130, %eax
	movl	$1536, %r11d                    ## imm = 0x600
	cmovnel	%ebx, %r11d
	movq	8(%rdx), %rax
	movl	%esi, %edx
	movl	%ecx, %ecx
	subq	%rdx, %rcx
	shlq	$4, %rdx
	addq	%rax, %rdx
	addq	$12, %rdx
	movl	$1, %r15d
	xorl	%r12d, %r12d
	movl	$-139, %r10d
	leaq	L_switch.table.dib8000_get_time_us.1(%rip), %r8
	leaq	L_switch.table.dib8000_get_time_us.2(%rip), %r9
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rbx
	movl	(%r8,%rbx,4), %eax
	movl	(%r9,%rbx,4), %r15d
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdx), %r12d
	imull	%r11d, %edi
	imull	%esi, %edi
	imull	%eax, %edi
	addl	%edi, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rdx
	decq	%rcx
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rdx), %edi
	testl	%edi, %edi
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$13, %edi
	jg	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-8(%rdx), %eax
	movl	$2, %esi
	cmpl	$131, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$143, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$133, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %esi
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$6, %esi
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%rdx), %eax
	addl	%r10d, %eax
	cmpl	$3, %eax
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$8, %r15d
	movl	$7, %eax
	jmp	LBB0_14
LBB0_16:
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.18:
	imull	$1575000000, %r15d, %edi        ## imm = 0x5DE097C0
	movl	%r14d, %esi
	callq	_do_div
	imull	$-1144967296, %r15d, %eax       ## imm = 0xBBC12F80
	movl	%r13d, %r15d
	shrl	$31, %r15d
	addl	%r13d, %r15d
	sarl	%r15d
	addl	%eax, %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_do_div
	imull	$96768, %r12d, %ecx             ## imm = 0x17A00
	movl	%ecx, %eax
	cltd
	idivl	%r14d
	addl	%ecx, %r15d
	addl	%eax, %r15d
	jmp	LBB0_19
LBB0_17:
	xorl	%r15d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib8000_get_time_us
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dib8000_get_time_us
L_switch.table.dib8000_get_time_us:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	32                              ## 0x20
	.long	16                              ## 0x10

	.p2align	2                               ## @switch.table.dib8000_get_time_us.1
L_switch.table.dib8000_get_time_us.1:
	.long	5                               ## 0x5
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.dib8000_get_time_us.2
L_switch.table.dib8000_get_time_us.2:
	.long	6                               ## 0x6
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_get_time_us
_dib8000_get_time_us:                   ; @dib8000_get_time_us
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	w1, #0
	mov	w9, #3
	csinc	w10, w9, w1, lt
	bic	w11, w1, w1, asr #31
	ldr	w9, [x8]
	sub	w9, w9, #134
	cmp	w9, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x12, l_switch.table.dib8000_get_time_us@PAGE
Lloh1:
	add	x12, x12, l_switch.table.dib8000_get_time_us@PAGEOFF
	ldr	w19, [x12, w9, sxtw #2]
	cmp	w11, w10
	b.lo	LBB0_3
	b	LBB0_12
LBB0_2:
	mov	w19, #32
	cmp	w11, w10
	b.hs	LBB0_12
LBB0_3:
	mov	w22, #0
	mov	w20, #0
	ldr	w9, [x8, #4]
	mov	w12, #384
	mov	w13, #768
	ldr	x14, [x8, #8]
	cmp	w9, #129
	csel	w8, w13, w12, eq
	mov	w12, #1536
	cmp	w9, #130
	csel	w8, w12, w8, eq
	add	x9, x14, w11, uxtw #4
	add	x9, x9, #8
	sub	x10, x10, w11, uxtw
	mov	w21, #1
	mov	w11, #2
	mov	w12, #6
	mov	w13, #4
Lloh2:
	adrp	x14, l_switch.table.dib8000_get_time_us.1@PAGE
Lloh3:
	add	x14, x14, l_switch.table.dib8000_get_time_us.1@PAGEOFF
Lloh4:
	adrp	x15, l_switch.table.dib8000_get_time_us.2@PAGE
Lloh5:
	add	x15, x15, l_switch.table.dib8000_get_time_us.2@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	sbfiz	x1, x0, #2, #32
	ldr	w0, [x14, x1]
	ldr	w21, [x15, x1]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x9, #4]
	mul	w16, w8, w16
	mul	w16, w16, w17
	madd	w20, w16, w0, w20
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #16
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w16, [x9, #-8]
	cmp	w16, #0
	ccmp	w16, #13, #0, ne
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w17, [x9, #-4]
	cmp	w17, #133
	csel	w0, w12, w13, ne
	cmp	w17, #143
	csel	w0, w11, w0, eq
	cmp	w17, #131
	csel	w17, w11, w0, eq
	ldr	w0, [x9]
	sub	w0, w0, #139
	cmp	w0, #3
	b.ls	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #8
	mov	w0, #7
	b	LBB0_5
LBB0_10:
	cbz	w20, LBB0_12
; %bb.11:
	mov	w8, #38848
	movk	w8, #24032, lsl #16
	mul	w0, w21, w8
	mov	x1, x19
	bl	_do_div
	mov	w8, #12160
	movk	w8, #48065, lsl #16
	mul	w8, w21, w8
	cmp	w20, #0
	cinc	w9, w20, lt
	add	w21, w8, w9, asr #1
	mov	x0, x21
	mov	x1, x20
	bl	_do_div
	mov	w8, #31232
	movk	w8, #1, lsl #16
	mul	w8, w22, w8
	sdiv	w9, w8, w19
	add	w8, w21, w8
	add	w0, w8, w9
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib8000_get_time_us
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dib8000_get_time_us
l_switch.table.dib8000_get_time_us:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	32                              ; 0x20
	.long	16                              ; 0x10

	.p2align	2                               ; @switch.table.dib8000_get_time_us.1
l_switch.table.dib8000_get_time_us.1:
	.long	5                               ; 0x5
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.dib8000_get_time_us.2
l_switch.table.dib8000_get_time_us.2:
	.long	6                               ; 0x6
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	2                               ; 0x2

.subsections_via_symbols
