	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf_find_free_id
_adf_find_free_id:                      ## @adf_find_free_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ADF_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_id_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
LBB0_4:
	incl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movl	$1, (%rdx,%rcx,4)
	movl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF_MAX_DEVICES,4,2            ## @ADF_MAX_DEVICES
	.comm	_id_map,8,3                     ## @id_map
	.no_dead_strip	_adf_find_free_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf_find_free_id
_adf_find_free_id:                      ; @adf_find_free_id
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ADF_MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADF_MAX_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, #0
Lloh3:
	adrp	x9, _id_map@GOTPAGE
Lloh4:
	ldr	x9, [x9, _id_map@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
LBB0_4:
	add	w0, w8, #1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x9, x0, lsl #2]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF_MAX_DEVICES,4,2            ; @ADF_MAX_DEVICES
	.comm	_id_map,8,3                     ; @id_map
	.no_dead_strip	_adf_find_free_id
.subsections_via_symbols
