	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_l12_threshold
_encode_l12_threshold:                  ## @encode_l12_threshold
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	cmpl	$31, %eax
	jg	LBB0_2
## %bb.1:
	movl	$0, (%rsi)
	jmp	LBB0_11
LBB0_2:
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_4
## %bb.3:
	movl	$1, (%rsi)
	shrl	$5, %eax
	jmp	LBB0_11
LBB0_4:
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	ja	LBB0_6
## %bb.5:
	movl	$2, (%rsi)
	shrl	$10, %eax
	jmp	LBB0_11
LBB0_6:
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	ja	LBB0_8
## %bb.7:
	movl	$3, (%rsi)
	shrl	$15, %eax
	jmp	LBB0_11
LBB0_8:
	cmpl	$33554431, %eax                 ## imm = 0x1FFFFFF
	ja	LBB0_10
## %bb.9:
	movl	$4, (%rsi)
	shrl	$20, %eax
	jmp	LBB0_11
LBB0_10:
	movl	$5, (%rsi)
	shrl	$25, %eax
LBB0_11:
	movl	%eax, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_encode_l12_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_l12_threshold
_encode_l12_threshold:                  ; @encode_l12_threshold
	.cfi_startproc
; %bb.0:
	mov	w8, #1000
	mul	w8, w0, w8
	cmp	w8, #31
	b.gt	LBB0_2
; %bb.1:
	str	wzr, [x1]
	str	w8, [x2]
	ret
LBB0_2:
	cmp	w8, #1023
	b.hi	LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x1]
	lsr	w8, w8, #5
	str	w8, [x2]
	ret
LBB0_4:
	lsr	w9, w8, #15
	cbnz	w9, LBB0_6
; %bb.5:
	mov	w9, #2
	str	w9, [x1]
	lsr	w8, w8, #10
	str	w8, [x2]
	ret
LBB0_6:
	lsr	w10, w8, #20
	cbnz	w10, LBB0_8
; %bb.7:
	mov	w8, #3
	str	w8, [x1]
	str	w9, [x2]
	ret
LBB0_8:
	lsr	w8, w8, #25
	cbnz	w8, LBB0_10
; %bb.9:
	mov	w8, #4
	str	w8, [x1]
	str	w10, [x2]
	ret
LBB0_10:
	mov	w9, #5
	str	w9, [x1]
	str	w8, [x2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_encode_l12_threshold
.subsections_via_symbols
