	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_lvol_to_gvol_raw       ## -- Begin function snd_gf1_lvol_to_gvol_raw
	.p2align	4, 0x90
_snd_gf1_lvol_to_gvol_raw:              ## @snd_gf1_lvol_to_gvol_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovbl	%edi, %edx
	cmpl	$128, %edx
	jae	LBB0_1
## %bb.4:
	movw	$6, %si
	cmpl	$63, %edx
	ja	LBB0_10
## %bb.5:
	movw	$5, %si
	cmpl	$31, %edx
	ja	LBB0_10
## %bb.6:
	movw	$4, %si
	cmpl	$15, %edx
	ja	LBB0_10
## %bb.7:
	movw	$3, %si
	cmpl	$7, %edx
	ja	LBB0_10
## %bb.8:
	movw	$2, %si
	cmpl	$3, %edx
	ja	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	cmpl	$2, %edx
	setae	%sil
	jmp	LBB0_10
LBB0_1:
	cmpl	$256, %edx                      ## imm = 0x100
	jb	LBB0_18
## %bb.2:
	movw	$7, %si
	movl	%edx, %eax
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%ecx
	incl	%esi
	cmpl	$511, %eax                      ## imm = 0x1FF
	movl	%ecx, %eax
	ja	LBB0_3
LBB0_10:
	movzwl	%si, %eax
	movl	$-1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	addl	%edx, %edi
	movl	%edi, %edx
	andl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_17
## %bb.11:
	cmpw	$9, %si
	jb	LBB0_13
## %bb.12:
	leal	-8(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	jmp	LBB0_15
LBB0_18:
	movl	$7, %eax
	addl	$-128, %edx
	movl	%edx, %edi
	jne	LBB0_14
	jmp	LBB0_17
LBB0_13:
	cmpw	$8, %si
	je	LBB0_16
LBB0_14:
	movb	$8, %cl
	subb	%al, %cl
	shll	%cl, %edx
LBB0_15:
	movl	%edx, %edi
LBB0_16:
	movzbl	%dil, %edi
LBB0_17:
	shll	$8, %eax
	orl	%edi, %eax
	movzwl	%ax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_gf1_lvol_to_gvol_raw       ; -- Begin function snd_gf1_lvol_to_gvol_raw
	.p2align	2
_snd_gf1_lvol_to_gvol_raw:              ; @snd_gf1_lvol_to_gvol_raw
	.cfi_startproc
; %bb.0:
	mov	w8, #65535
	cmp	w0, w8
	csel	w8, w0, w8, lo
	cmp	w8, #128
	b.hs	LBB0_3
; %bb.1:
	cmp	w8, #63
	b.hi	LBB0_6
; %bb.2:
	mov	w9, #5
	mov	w10, #4
	mov	w11, #3
	mov	w12, #2
	cmp	w8, #1
	cset	w13, hi
	cmp	w8, #3
	csel	w12, w12, w13, hi
	cmp	w8, #7
	csel	w11, w11, w12, hi
	cmp	w8, #15
	csel	w10, w10, w11, hi
	cmp	w8, #31
	csel	w10, w9, w10, hi
	b	LBB0_7
LBB0_3:
	cmp	w8, #256
	b.lo	LBB0_10
; %bb.4:
	mov	w10, #7
	mov	x9, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w9, #1
	add	w10, w10, #1
	cmp	w9, #511
	mov	x9, x11
	b.hi	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w10, #6
LBB0_7:
	and	w9, w10, #0xffff
	mov	w11, #-1
	lsl	w10, w11, w10
	add	w8, w10, w8
	ands	w10, w8, #0xffff
	b.eq	LBB0_14
; %bb.8:
	cmp	w9, #9
	b.lo	LBB0_11
; %bb.9:
	sub	w8, w9, #8
	lsr	w8, w10, w8
	b	LBB0_13
LBB0_10:
	mov	w9, #7
	subs	w10, w8, #128
	mov	x8, x10
	b.ne	LBB0_12
	b	LBB0_14
LBB0_11:
	cmp	w9, #8
	b.eq	LBB0_13
LBB0_12:
	mov	w8, #8
	sub	w8, w8, w9
	lsl	w8, w10, w8
LBB0_13:
	and	w8, w8, #0xff
LBB0_14:
	orr	w8, w8, w9, lsl #8
	and	w0, w8, #0xffff
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
