	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daca_put_volume
_daca_put_volume:                       ## @daca_put_volume
	.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
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	_DACA_VOL_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %ecx
	ja	LBB0_5
## %bb.4:
	movl	4(%rax), %edx
	cmpl	%esi, %edx
	ja	LBB0_5
## %bb.6:
	cmpl	%ecx, (%rdi)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpl	%edx, 4(%rdi)
	je	LBB0_9
LBB0_8:
	movl	%ecx, (%rdi)
	movl	%edx, 4(%rdi)
	callq	_daca_set_volume
	movl	$1, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DACA_VOL_MAX,4,2               ## @DACA_VOL_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_daca_put_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daca_put_volume
_daca_put_volume:                       ; @daca_put_volume
	.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	_snd_kcontrol_chip
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x19]
	ldp	w8, w9, [x9]
Lloh0:
	adrp	x10, _DACA_VOL_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DACA_VOL_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w9, w10, #2, ls
	b.ls	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	w10, [x0]
	cmp	w10, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	w10, [x0, #4]
	cmp	w10, w9
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	stp	w8, w9, [x0]
	bl	_daca_set_volume
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DACA_VOL_MAX,4,2               ; @DACA_VOL_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_daca_put_volume
.subsections_via_symbols
