	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bitmap_find_bit
_bitmap_find_bit:                       ## @bitmap_find_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %edx
	cmpl	%eax, %edx
	je	LBB0_13
## %bb.3:
	jae	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, (%rdx)
	jb	LBB0_4
	jmp	LBB0_12
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_6:
	shrl	%edx
	cmpl	%eax, %edx
	jae	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%eax, (%rdx)
	ja	LBB0_7
	jmp	LBB0_12
LBB0_9:
	movq	16(%rdi), %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%eax, (%rdx)
	jb	LBB0_10
LBB0_12:
	movq	%rdx, 8(%rdi)
	movl	(%rdx), %esi
	movl	%esi, (%rdi)
	xorl	%ecx, %ecx
	cmpl	%eax, %esi
	cmoveq	%rdx, %rcx
LBB0_13:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
	.no_dead_strip	_bitmap_find_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitmap_find_bit
_bitmap_find_bit:                       ; @bitmap_find_bit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w9, w1, w9
	ldr	w10, [x0]
	cmp	w10, w9
	b.eq	LBB0_12
; %bb.2:
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	cmp	w11, w9
	b.lo	LBB0_3
	b	LBB0_11
LBB0_5:
	cmp	w9, w10, lsr #1
	b.ls	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x10]
	cmp	w11, w9
	b.hi	LBB0_6
	b	LBB0_11
LBB0_8:
	ldr	x8, [x0, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x10]
	cmp	w11, w9
	b.lo	LBB0_9
LBB0_11:
	str	x10, [x0, #8]
	ldr	w8, [x10]
	str	w8, [x0]
	cmp	w8, w9
	csel	x8, x10, xzr, eq
LBB0_12:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
	.no_dead_strip	_bitmap_find_bit
.subsections_via_symbols
