	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_pcm_volume_put
_snd_gf1_pcm_volume_put:                ## @snd_gf1_pcm_volume_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%rax, %r13
	movq	(%r15), %rax
	movzwl	(%rax), %r12d
	movl	%r12d, %r14d
	andl	$127, %r14d
	movzwl	4(%rax), %r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	andl	$127, %r15d
	leaq	32(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	$1, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpw	8(%rbx), %r14w
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpw	10(%r13), %r15w
	setne	%al
LBB0_2:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movw	%r14w, 8(%r13)
	movw	%r15w, 10(%r13)
	shll	$9, %r12d
	movzwl	%r12w, %edi
	callq	_snd_gf1_lvol_to_gvol_raw
	shll	$4, %eax
	movl	%eax, 12(%r13)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	shll	$9, %eax
	movzwl	%ax, %edi
	callq	_snd_gf1_lvol_to_gvol_raw
	shll	$4, %eax
	movl	%eax, 16(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	addq	$4, -64(%rbp)                   ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	cmpq	$768, %rbx                      ## imm = 0x300
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r12
	cmpl	$0, 16(%r12,%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12,%rbx), %r15
	movq	_SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%r12,%rbx), %esi
	movq	%r13, %rdi
	callq	_snd_gf1_select_voice
	movq	_SNDRV_GF1_VB_VOLUME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_gf1_ctrl_stop
	movq	8(%r15), %rax
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rax), %rdx
	setne	%cl
	movzwl	12(%r13,%rcx,4), %edx
	movq	_SNDRV_GF1_VW_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_gf1_write16
	movl	$1, 4(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ## @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ## @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ## @SNDRV_GF1_VW_VOLUME
	.no_dead_strip	_snd_gf1_pcm_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_pcm_volume_put
_snd_gf1_pcm_volume_put:                ; @snd_gf1_pcm_volume_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldp	w22, w20, [x8]
	and	w24, w22, #0x7f
	and	w23, w20, #0x7f
	add	x21, x0, #32
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldrh	w8, [x19, #8]
	mov	w9, #1
	cmp	w24, w8
	b.ne	LBB0_2
; %bb.1:
	ldrh	w8, [x19, #10]
	cmp	w23, w8
	cset	w9, ne
LBB0_2:
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	strh	w24, [x19, #8]
	strh	w23, [x19, #10]
	ubfiz	w0, w22, #9, #7
	bl	_snd_gf1_lvol_to_gvol_raw
	lsl	w8, w0, #4
	str	w8, [x19, #12]
	ubfiz	w0, w20, #9, #7
	bl	_snd_gf1_lvol_to_gvol_raw
	lsl	w8, w0, #4
	str	w8, [x19, #16]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x23, #0
	add	x21, x19, #4
Lloh0:
	adrp	x24, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SNDRV_GF1_PCM_PFLG_ACTIVE@GOTPAGEOFF]
	mov	w26, #16
	mov	w27, #12
Lloh2:
	adrp	x28, _SNDRV_GF1_VW_VOLUME@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SNDRV_GF1_VW_VOLUME@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #24
	cmp	x23, #768
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #24]
	add	x22, x25, x23
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x22, #8]
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_spin_lock
	ldr	w1, [x25, x23]
	mov	x0, x19
	bl	_snd_gf1_select_voice
Lloh4:
	adrp	x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_GF1_VB_VOLUME_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_ctrl_stop
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x22, x8
	csel	x8, x27, x26, eq
	ldrh	w2, [x19, x8]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_snd_gf1_write16
	mov	w8, #1
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_3
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_GF1_PCM_PFLG_ACTIVE,4,2  ; @SNDRV_GF1_PCM_PFLG_ACTIVE
	.comm	_SNDRV_GF1_VB_VOLUME_CONTROL,4,2 ; @SNDRV_GF1_VB_VOLUME_CONTROL
	.comm	_SNDRV_GF1_VW_VOLUME,4,2        ; @SNDRV_GF1_VW_VOLUME
	.no_dead_strip	_snd_gf1_pcm_volume_put
.subsections_via_symbols
