	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bms_next_member                ## -- Begin function bms_next_member
	.p2align	4, 0x90
_bms_next_member:                       ## @bms_next_member
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-2, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movslq	(%rdi), %r13
	incl	%ebx
	movl	%ebx, %edi
	callq	_BITNUM
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_WORDNUM
	cmpl	%r13d, %eax
	jge	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	movl	$-1, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movslq	%eax, %rcx
	leaq	(,%rcx,4), %rax
	addq	8(%r12), %rax
	subq	%rcx, %r13
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	andl	(%rax,%rcx,4), %edi
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movl	$-1, %edi
	cmpq	%rcx, %r13
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	addl	%ecx, %r15d
	movq	_BITS_PER_BITMAPWORD@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	callq	_bmw_rightmost_one_pos
	movq	%rax, %r14
	addl	%r15d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_BITMAPWORD,4,2        ## @BITS_PER_BITMAPWORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bms_next_member                ; -- Begin function bms_next_member
	.p2align	2
_bms_next_member:                       ; @bms_next_member
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldrsw	x22, [x0]
	add	w19, w1, #1
	mov	x0, x19
	bl	_BITNUM
	mov	x21, x0
	mov	x0, x19
	bl	_WORDNUM
	cmp	w0, w22
	b.ge	LBB0_5
; %bb.2:
	mov	x19, x0
	mov	w8, #-1
	lsl	w10, w8, w21
	ldr	x8, [x20, #8]
	add	x8, x8, w0, sxtw #2
	sub	x9, x22, w0, sxtw
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	ands	w0, w11, w10
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	add	x8, x8, #4
	mov	w10, #-1
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #-2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh0:
	adrp	x8, _BITS_PER_BITMAPWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITS_PER_BITMAPWORD@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_bmw_rightmost_one_pos
	madd	w0, w20, w19, w0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_BITMAPWORD,4,2        ; @BITS_PER_BITMAPWORD
.subsections_via_symbols
