	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_pcm_vol_put
_pcxhr_pcm_vol_put:                     ## @pcxhr_pcm_vol_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	leaq	8(%r13), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r14d
	movl	(%rbx), %ebx
	movq	16(%r15), %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r15, %rax
	jmp	LBB0_3
LBB0_2:
	movslq	%r14d, %rax
	shlq	$3, %rax
	addq	8(%r15), %rax
LBB0_3:
	movq	(%rax), %r14
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	_PCXHR_DIGITAL_LEVEL_MIN@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movq	_PCXHR_DIGITAL_LEVEL_MAX@GOTPCREL(%rip), %rsi
	cmpl	(%rdx), %ecx
	jl	LBB0_8
## %bb.4:
	cmpl	(%rsi), %ecx
	jg	LBB0_8
## %bb.5:
	cmpl	%ecx, (%r14)
	je	LBB0_8
## %bb.6:
	movl	%ecx, (%r14)
	movl	$1, %r12d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_pcxhr_update_audio_pipe_level
	movq	_PCXHR_DIGITAL_LEVEL_MAX@GOTPCREL(%rip), %rsi
	movq	_PCXHR_DIGITAL_LEVEL_MIN@GOTPCREL(%rip), %rdx
	movq	(%r13), %rax
LBB0_8:
	movl	4(%rax), %eax
	cmpl	(%rdx), %eax
	jl	LBB0_12
## %bb.9:
	cmpl	(%rsi), %eax
	jg	LBB0_12
## %bb.10:
	cmpl	%eax, 4(%r14)
	je	LBB0_12
## %bb.11:
	movl	%eax, 4(%r14)
	movl	$1, %r12d
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_pcxhr_update_audio_pipe_level
	jmp	LBB0_15
LBB0_12:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.13:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pcxhr_update_playback_stream_level
	movl	$1, %r12d
LBB0_15:
	movq	16(%r15), %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCXHR_DIGITAL_LEVEL_MIN,4,2    ## @PCXHR_DIGITAL_LEVEL_MIN
	.comm	_PCXHR_DIGITAL_LEVEL_MAX,4,2    ## @PCXHR_DIGITAL_LEVEL_MAX
	.no_dead_strip	_pcxhr_pcm_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_pcm_vol_put
_pcxhr_pcm_vol_put:                     ; @pcxhr_pcm_vol_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x1, x22, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
	mov	x20, x0
	ldr	w23, [x21]
	ldr	x0, [x19, #16]
	bl	_mutex_lock
	cbz	w23, LBB0_2
; %bb.1:
	mov	x8, x19
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	add	x8, x8, w20, sxtw #3
LBB0_3:
	ldr	x24, [x8]
	ldr	x8, [x22]
	ldr	w9, [x8]
Lloh0:
	adrp	x25, _PCXHR_DIGITAL_LEVEL_MIN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PCXHR_DIGITAL_LEVEL_MIN@GOTPAGEOFF]
	ldr	w10, [x25]
Lloh2:
	adrp	x26, _PCXHR_DIGITAL_LEVEL_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PCXHR_DIGITAL_LEVEL_MAX@GOTPAGEOFF]
	ldr	w11, [x26]
	cmp	w9, w10
	ccmp	w9, w11, #0, ge
	b.gt	LBB0_5
; %bb.4:
	ldr	w10, [x24]
	cmp	w10, w9
	b.ne	LBB0_14
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	w8, [x8, #4]
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.gt	LBB0_10
; %bb.7:
	ldr	w9, [x24, #4]
	cmp	w9, w8
	b.eq	LBB0_10
; %bb.8:
	str	w8, [x24, #4]
	mov	w21, #1
	cbz	w23, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_pcxhr_update_audio_pipe_level
	b	LBB0_13
LBB0_10:
	cbnz	w23, LBB0_13
; %bb.11:
	cbz	w21, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_pcxhr_update_playback_stream_level
	mov	w21, #1
LBB0_13:
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	str	w9, [x24]
	mov	w21, #1
	cbz	w23, LBB0_6
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_pcxhr_update_audio_pipe_level
	ldr	x8, [x22]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCXHR_DIGITAL_LEVEL_MIN,4,2    ; @PCXHR_DIGITAL_LEVEL_MIN
	.comm	_PCXHR_DIGITAL_LEVEL_MAX,4,2    ; @PCXHR_DIGITAL_LEVEL_MAX
	.no_dead_strip	_pcxhr_pcm_vol_put
.subsections_via_symbols
