	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_vdev_hole                 ## -- Begin function find_vdev_hole
	.p2align	4, 0x90
_find_vdev_hole:                        ## @find_vdev_hole
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	_SCL_VDEV@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_spa_config_held
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_ASSERT
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	16(%rbx), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rsi
	cmpq	$0, 8(%rsi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
## %bb.5:
	movl	%ecx, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL_VDEV,8,3                   ## @SCL_VDEV
	.comm	_RW_READER,4,2                  ## @RW_READER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_vdev_hole                 ; -- Begin function find_vdev_hole
	.p2align	2
_find_vdev_hole:                        ; @find_vdev_hole
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x20, _SCL_VDEV@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SCL_VDEV@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _RW_READER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_spa_config_held
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, eq
	bl	_ASSERT
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x0, #0
	ldr	x9, [x19, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x0, lsl #3]
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.4:
	mov	x0, x8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL_VDEV,8,3                   ; @SCL_VDEV
	.comm	_RW_READER,4,2                  ; @RW_READER
.subsections_via_symbols
