	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbc_count_to_reg
_bbc_count_to_reg:                      ## @bbc_count_to_reg
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movl	%ecx, %edx
	shrl	$20, %edx
	movl	$262144, %eax                   ## imm = 0x40000
	cmpl	%esi, %edx
	popq	%rbp
	jae	LBB0_12
## %bb.3:
	movl	%ecx, %edx
	shrl	$12, %edx
	movl	$1024, %eax                     ## imm = 0x400
	cmpl	%esi, %edx
	jbe	LBB0_12
## %bb.4:
	movl	%ecx, %edi
	shrl	$19, %edi
	movl	$131072, %eax                   ## imm = 0x20000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.5:
	movl	%ecx, %edi
	shrl	$18, %edi
	movl	$65536, %eax                    ## imm = 0x10000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.6:
	movl	%ecx, %edi
	shrl	$17, %edi
	movl	$32768, %eax                    ## imm = 0x8000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.7:
	movl	%ecx, %edi
	shrl	$16, %edi
	movl	$16384, %eax                    ## imm = 0x4000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.8:
	movl	%ecx, %edi
	shrl	$15, %edi
	movl	$8192, %eax                     ## imm = 0x2000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.9:
	movl	%ecx, %edi
	shrl	$14, %edi
	movl	$4096, %eax                     ## imm = 0x1000
	cmpl	%esi, %edi
	jae	LBB0_12
## %bb.10:
	shrl	$13, %ecx
	movl	$2048, %eax                     ## imm = 0x800
	cmpl	%esi, %ecx
	jae	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	cmpl	%esi, %edx
	setae	%al
	shll	$9, %eax
	addl	$512, %eax                      ## imm = 0x200
LBB0_12:
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bbc_count_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbc_count_to_reg
_bbc_count_to_reg:                      ; @bbc_count_to_reg
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_10
; %bb.1:
	ldr	w8, [x0]
	cmp	w1, w8, lsr #20
	b.ls	LBB0_11
; %bb.2:
	lsr	w9, w8, #12
	cmp	w9, w1
	b.ls	LBB0_12
; %bb.3:
	cmp	w1, w8, lsr #19
	b.ls	LBB0_13
; %bb.4:
	cmp	w1, w8, lsr #18
	b.ls	LBB0_14
; %bb.5:
	cmp	w1, w8, lsr #17
	b.ls	LBB0_15
; %bb.6:
	cmp	w1, w8, lsr #16
	b.ls	LBB0_16
; %bb.7:
	cmp	w1, w8, lsr #15
	b.ls	LBB0_17
; %bb.8:
	cmp	w1, w8, lsr #14
	b.ls	LBB0_18
; %bb.9:
	mov	w10, #2048
	mov	w11, #1024
	mov	w12, #512
	cmp	w9, w1
	csel	w9, w12, w11, lo
	cmp	w1, w8, lsr #13
	csel	w0, w10, w9, ls
	ret
LBB0_10:
	mov	w0, #0
	ret
LBB0_11:
	mov	w0, #262144
	ret
LBB0_12:
	mov	w0, #1024
	ret
LBB0_13:
	mov	w0, #131072
	ret
LBB0_14:
	mov	w0, #65536
	ret
LBB0_15:
	mov	w0, #32768
	ret
LBB0_16:
	mov	w0, #16384
	ret
LBB0_17:
	mov	w0, #8192
	ret
LBB0_18:
	mov	w0, #4096
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bbc_count_to_reg
.subsections_via_symbols
