	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_free_scd
_get_free_scd:                          ## @get_free_scd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	16(%rdi), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_3
## %bb.6:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, (%rcx,%rdx,8)
	movl	%edx, (%rsi)
	movq	_SAR_SRAM_SCD_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movslq	%edx, %rax
	imulq	%rcx, %rax
	addq	8(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAR_SRAM_SCD_SIZE,4,2          ## @SAR_SRAM_SCD_SIZE
	.no_dead_strip	_get_free_scd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_free_scd
_get_free_scd:                          ; @get_free_scd
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	ldr	x10, [x0, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cbz	x11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
	ret
LBB0_5:
	str	x1, [x10, x8, lsl #3]
	str	w8, [x1]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _SAR_SRAM_SCD_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SAR_SRAM_SCD_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	sxtw	x8, w8
	madd	x0, x10, x8, x9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SAR_SRAM_SCD_SIZE,4,2          ; @SAR_SRAM_SCD_SIZE
	.no_dead_strip	_get_free_scd
.subsections_via_symbols
