	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_free_idx
_get_free_idx:                          ## @get_free_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	_GDT_ENTRY_TLS_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_3
LBB0_5:
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	_GDT_ENTRY_TLS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movq	_GDT_ENTRY_TLS_MIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_ENTRY_TLS_MIN,4,2          ## @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_ENTRIES,4,2      ## @GDT_ENTRY_TLS_ENTRIES
	.comm	_ESRCH,4,2                      ## @ESRCH
	.no_dead_strip	_get_free_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_free_idx
_get_free_idx:                          ; @get_free_idx
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _GDT_ENTRY_TLS_ENTRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GDT_ENTRY_TLS_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x10, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x10, lsl #2]
	cbz	w11, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_5:
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
Lloh6:
	adrp	x8, _GDT_ENTRY_TLS_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GDT_ENTRY_TLS_MIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh9:
	adrp	x8, _GDT_ENTRY_TLS_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GDT_ENTRY_TLS_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w0, w8, w10
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_ENTRY_TLS_MIN,4,2          ; @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_ENTRIES,4,2      ; @GDT_ENTRY_TLS_ENTRIES
	.comm	_ESRCH,4,2                      ; @ESRCH
	.no_dead_strip	_get_free_idx
.subsections_via_symbols
