	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log2size_to_chcr
_log2size_to_chcr:                      ## @log2size_to_chcr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_to_sh_dev
	movq	(%rax), %rdx
	movl	(%rdx), %ecx
	xorl	%eax, %eax
	movl	$0, %esi
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	8(%rdx), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdi,%rsi,4)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, %esi
LBB0_5:
	cmpl	%ecx, %esi
	cmovnel	%esi, %eax
	movb	16(%rdx), %cl
	movl	%eax, %esi
	shll	%cl, %esi
	andl	20(%rdx), %esi
	movb	24(%rdx), %cl
	shll	%cl, %eax
	andl	28(%rdx), %eax
	orl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_log2size_to_chcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log2size_to_chcr
_log2size_to_chcr:                      ; @log2size_to_chcr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_sh_dev
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x11, [x8, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w12, w19
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x10, x9
	b	LBB0_6
LBB0_5:
	mov	w10, #0
LBB0_6:
	cmp	w10, w9
	csel	w9, wzr, w10, eq
	ldp	w10, w11, [x8, #16]
	lsl	w10, w9, w10
	and	w10, w10, w11
	ldp	w11, w8, [x8, #24]
	lsl	w9, w9, w11
	and	w8, w9, w8
	orr	w0, w8, w10
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_log2size_to_chcr
.subsections_via_symbols
