	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitfield_get_first_zero        ## -- Begin function bitfield_get_first_zero
	.p2align	4, 0x90
_bitfield_get_first_zero:               ## @bitfield_get_first_zero
	.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, %r14
	movl	(%rdi), %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	cmpl	$15, %eax
	jae	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	8(%r14), %rax
	cmpq	$2, %rcx
	movl	$1, %edx
	cmovaeq	%rcx, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rax,%rbx,4)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_3
## %bb.5:
	movq	%rdx, %rbx
LBB0_6:
	movl	$-1, %eax
	cmpq	%rcx, %rbx
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_first_zero
	leaq	(%rax,%rbx,8), %rcx
	movslq	(%r14), %rax
	cmpq	%rax, %rcx
	movl	$-1, %eax
	cmovbl	%ecx, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitfield_get_first_zero        ; -- Begin function bitfield_get_first_zero
	.p2align	2
_bitfield_get_first_zero:               ; @bitfield_get_first_zero
	.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
	mov	x19, x0
	ldr	w8, [x0]
	add	w9, w8, #7
	add	w10, w8, #14
	cmp	w9, #0
	csel	w8, w10, w9, lt
	sbfx	x8, x8, #3, #29
	cmp	w10, #15
	b.hs	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_6
LBB0_2:
	mov	x20, #0
	ldr	x9, [x19, #8]
	cmp	x8, #1
	csinc	x10, x8, xzr, hi
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x20, lsl #2]
	cmp	w11, #255
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x10, x20
	b.ne	LBB0_3
; %bb.5:
	mov	x20, x10
LBB0_6:
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_first_zero
	add	x8, x0, x20, lsl #3
	ldrsw	x9, [x19]
	cmp	x8, x9
	csinv	w0, w8, wzr, lo
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
