	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_find_free_adapters
_diva_find_free_adapters:               ## @diva_find_free_adapters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movq	_IoAdapters@GOTPCREL(%rip), %rdx
	movslq	%edi, %rax
	movl	%esi, %ecx
	shlq	$3, %rax
	addq	(%rdx), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IoAdapters,8,3                 ## @IoAdapters
	.no_dead_strip	_diva_find_free_adapters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_find_free_adapters
_diva_find_free_adapters:               ; @diva_find_free_adapters
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _IoAdapters@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IoAdapters@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, w1
	add	x9, x9, w0, sxtw #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IoAdapters,8,3                 ; @IoAdapters
	.no_dead_strip	_diva_find_free_adapters
.subsections_via_symbols
