	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbmp_high_bit
_rbmp_high_bit:                         ## @rbmp_high_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %eax
	shrl	$16, %eax
	xorl	%ecx, %ecx
	cmpl	$65536, %edi                    ## imm = 0x10000
	setae	%cl
	cmovbl	%edi, %eax
	shll	$4, %ecx
	leal	8(%rcx), %edx
	movl	%eax, %esi
	shrl	$8, %esi
	cmpl	$256, %eax                      ## imm = 0x100
	cmovbl	%eax, %esi
	cmovbl	%ecx, %edx
	leal	4(%rdx), %ecx
	movl	%esi, %edi
	shrl	$4, %edi
	cmpl	$16, %esi
	cmovbl	%esi, %edi
	cmovbl	%edx, %ecx
	leal	2(%rcx), %eax
	movl	%edi, %edx
	shrl	$2, %edx
	cmpl	$4, %edi
	cmovbl	%edi, %edx
	cmovbl	%ecx, %eax
	cmpl	$2, %edx
	sbbl	$-1, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rbmp_high_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbmp_high_bit
_rbmp_high_bit:                         ; @rbmp_high_bit
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
	lsr	w8, w0, #16
	cmp	w8, #0
	csel	w8, w8, w0, ne
	cset	w9, ne
	lsl	w10, w9, #4
	mov	w11, #8
	bfi	w11, w9, #4, #1
	lsr	w9, w8, #8
	cmp	w8, #255
	csel	w8, w9, w8, hi
	csel	w9, w11, w10, hi
	orr	w10, w9, #0x4
	lsr	w11, w8, #4
	cmp	w8, #15
	csel	w8, w11, w8, hi
	csel	w9, w10, w9, hi
	orr	w10, w9, #0x2
	lsr	w11, w8, #2
	cmp	w8, #3
	csel	w8, w11, w8, hi
	csel	w9, w10, w9, hi
	cmp	w8, #1
	cinc	w0, w9, hi
	ret
LBB0_2:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rbmp_high_bit
.subsections_via_symbols
