	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbitmap_last_set_bit           ## -- Begin function sbitmap_last_set_bit
	.p2align	4, 0x90
_sbitmap_last_set_bit:                  ## @sbitmap_last_set_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r10
	movl	8(%rdi), %esi
	movq	_SBITMAP_ELT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	-1(%r8), %ecx
	movl	$1, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
                                        ## implicit-def: $eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %rsi
	testl	%edi, %edi
	jne	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%esi, %esi
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rcx
	decq	%rcx
	movl	(%r10,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r8d, %eax
	imull	%esi, %eax
	movl	%r9d, %edx
	movl	%r9d, %esi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%eax
	sarl	%esi
	testl	%edi, %edx
	movl	%esi, %edx
	je	LBB0_5
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_2:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBITMAP_ELT_BITS,4,2           ## @SBITMAP_ELT_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbitmap_last_set_bit           ; -- Begin function sbitmap_last_set_bit
	.p2align	2
_sbitmap_last_set_bit:                  ; @sbitmap_last_set_bit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w12, [x0, #8]
Lloh0:
	adrp	x9, _SBITMAP_ELT_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SBITMAP_ELT_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w10, w9, #1
	mov	w11, #1
	lsl	w10, w11, w10
                                        ; implicit-def: $w0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x12, x13
	cbnz	w11, LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x13, x12, #1
	ldr	w11, [x8, x13, lsl #2]
	cbz	w11, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w0, w9, w12
	mov	x12, x10
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w0, w0, #1
	tst	w12, w11
	asr	w12, w12, #1
	b.eq	LBB0_5
	b	LBB0_1
LBB0_6:
	ret
LBB0_7:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SBITMAP_ELT_BITS,4,2           ; @SBITMAP_ELT_BITS
.subsections_via_symbols
