	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_presence
_cache_presence:                        ## @cache_presence
	.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
	movq	%rdi, %r14
	movq	_description@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	(%rax), %rax
	movq	_CHAR_BIT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	decq	%rax
	shlq	$2, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	shll	$2, %eax
	movl	%eax, %edi
	callq	_create_node
	movq	%rax, (%r14)
	movq	(%r12), %rax
	cmpl	$0, 4(%rax)
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	movq	_units_array@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	%dil, %sil
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %esi
	movq	(%r14), %rcx
	orl	%esi, (%rcx,%rax,4)
	incl	%r15d
	movq	(%r12), %rax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	4(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_first_cycle_unit_presence
	xorl	%esi, %esi
	testl	%eax, %eax
	setne	%dil
	movslq	%r15d, %rax
	movq	_CHAR_BIT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_description,8,3                ## @description
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.comm	_units_array,8,3                ## @units_array
	.no_dead_strip	_cache_presence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_presence
_cache_presence:                        ; @cache_presence
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _description@GOTPAGE
Lloh1:
	ldr	x21, [x21, _description@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x8, [x8]
Lloh2:
	adrp	x22, _CHAR_BIT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CHAR_BIT@GOTPAGEOFF]
	ldrsw	x9, [x22]
	lsl	x9, x9, #2
	add	x8, x8, x9
	sub	x8, x8, #1
	udiv	x8, x8, x9
	lsl	w0, w8, #2
	bl	_create_node
	str	x0, [x19]
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	w23, #0
Lloh4:
	adrp	x24, _units_array@GOTPAGE
Lloh5:
	ldr	x24, [x24, _units_array@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x9, [x8, #4]
	cmp	x20, x9
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_first_cycle_unit_presence
	cmp	w0, #0
	cset	w8, ne
	sxtw	x9, w23
	ldrsw	x10, [x22]
	lsl	x10, x10, #2
	udiv	x11, x9, x10
	msub	w9, w11, w10, w9
	ldr	x10, [x19]
	lsl	x11, x11, #2
	ldr	w12, [x10, x11]
	lsl	w8, w8, w9
	orr	w8, w12, w8
	str	w8, [x10, x11]
	add	w23, w23, #1
	ldr	x8, [x21]
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_description,8,3                ; @description
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.comm	_units_array,8,3                ; @units_array
	.no_dead_strip	_cache_presence
.subsections_via_symbols
