	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bm_lastset
LCPI0_0:
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	16                              ## 0x10
LCPI0_1:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bm_lastset
	.p2align	4, 0x90
_bm_lastset:                            ## @bm_lastset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	xorl	%eax, %eax
	testb	$7, %cl
	setne	%al
	addl	%edx, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r9
	movl	%eax, %r8d
	shlq	$3, %r8
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,64,32,16]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [8,4,2,1]
	pxor	%xmm2, %xmm2
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r9), %edi
	movd	%edi, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	movdqa	%xmm3, %xmm4
	pand	%xmm0, %xmm4
	pand	%xmm1, %xmm3
	pcmpeqd	%xmm2, %xmm3
	pcmpeqd	%xmm2, %xmm4
	packssdw	%xmm3, %xmm4
	packsswb	%xmm4, %xmm4
	pmovmskb	%xmm4, %edi
	testb	$-128, %dil
	cmovel	%esi, %eax
	leal	1(%rsi), %edx
	testb	$64, %dil
	cmovnel	%eax, %edx
	leal	2(%rsi), %eax
	testb	$32, %dil
	cmovnel	%edx, %eax
	leal	3(%rsi), %edx
	testb	$16, %dil
	cmovnel	%eax, %edx
	leal	4(%rsi), %eax
	testb	$8, %dil
	cmovnel	%edx, %eax
	leal	5(%rsi), %edx
	testb	$4, %dil
	cmovnel	%eax, %edx
	leal	6(%rsi), %ecx
	testb	$2, %dil
	cmovnel	%edx, %ecx
	leal	7(%rsi), %eax
	testb	$1, %dil
	cmovnel	%ecx, %eax
	incq	%r9
	addq	$8, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	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	_bm_lastset                     ; -- Begin function bm_lastset
	.p2align	2
_bm_lastset:                            ; @bm_lastset
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #3
	tst	w9, #0x7
	cinc	w10, w10, ne
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	mov	w0, #0
	ldr	x8, [x8, #8]
	lsl	x10, x10, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #1
	tst	w11, #0x1
	csel	w12, w0, w9, eq
	tst	w11, #0x2
	csinc	w12, w12, w9, eq
	add	w13, w9, #2
	tst	w11, #0x4
	csel	w12, w12, w13, eq
	add	w13, w9, #3
	tst	w11, #0x8
	csel	w12, w12, w13, eq
	add	w13, w9, #4
	tst	w11, #0x10
	csel	w12, w12, w13, eq
	add	w13, w9, #5
	tst	w11, #0x20
	csel	w12, w12, w13, eq
	add	w13, w9, #6
	tst	w11, #0x40
	csel	w12, w12, w13, eq
	add	w13, w9, #7
	tst	w11, #0x80
	csel	w0, w12, w13, eq
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
