	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log2sample
_log2sample:                            ## @log2sample
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_count_bits
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %esi
	sarl	$9, %esi
	addl	%ebx, %esi
	movl	%eax, %edx
	shll	$8, %edx
	movq	_wp_log2_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpl	$255, %esi
	jg	LBB0_2
## %bb.1:
	movb	$9, %cl
	subb	%al, %cl
	shll	%cl, %esi
	movzbl	%sil, %eax
	addl	(%rdi,%rax,4), %edx
	addl	%edx, (%r14)
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	leal	-9(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	movzbl	%sil, %eax
	addl	(%rdi,%rax,4), %edx
	addl	%edx, (%r14)
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movl	$1, %eax
	cmpl	%r15d, %edx
	jl	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wp_log2_table,8,3              ## @wp_log2_table
	.no_dead_strip	_log2sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log2sample
_log2sample:                            ; @log2sample
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_count_bits
	add	w10, w21, w21, asr #9
	lsl	w8, w0, #8
Lloh0:
	adrp	x9, _wp_log2_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wp_log2_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w10, #255
	b.gt	LBB0_2
; %bb.1:
	mov	w11, #9
	sub	w11, w11, w0
	lsl	w10, w10, w11
	and	w10, w10, #0xff
	ldr	w9, [x9, w10, uxtw #2]
	ldr	w10, [x19]
	add	w8, w9, w8
	add	w8, w8, w10
	str	w8, [x19]
	b	LBB0_5
LBB0_2:
	sub	w11, w0, #9
	lsr	w10, w10, w11
	and	w10, w10, #0xff
	ldr	w9, [x9, w10, uxtw #2]
	ldr	w10, [x19]
	add	w8, w9, w8
	add	w9, w10, w8
	str	w9, [x19]
	cbz	w20, LBB0_5
; %bb.3:
	cmp	w8, w20
	b.lt	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_wp_log2_table,8,3              ; @wp_log2_table
	.no_dead_strip	_log2sample
.subsections_via_symbols
