	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tumbler_put_drc_value
_tumbler_put_drc_value:                 ## @tumbler_put_drc_value
	.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	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	_PMAC_TUMBLER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_TAS3001_DRC_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	ja	LBB0_5
## %bb.9:
	xorl	%eax, %eax
	cmpl	%ecx, (%rdi)
	je	LBB0_12
## %bb.10:
	movl	%ecx, (%rdi)
	callq	_tumbler_set_drc
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_TAS3004_DRC_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jbe	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	cmpl	%ecx, (%rdi)
	je	LBB0_12
## %bb.8:
	movl	%ecx, (%rdi)
	callq	_snapper_set_drc
LBB0_11:
	movl	$1, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PMAC_TUMBLER,8,3               ## @PMAC_TUMBLER
	.comm	_TAS3001_DRC_MAX,4,2            ## @TAS3001_DRC_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TAS3004_DRC_MAX,4,2            ## @TAS3004_DRC_MAX
	.no_dead_strip	_tumbler_put_drc_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tumbler_put_drc_value
_tumbler_put_drc_value:                 ; @tumbler_put_drc_value
	.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
	mov	x8, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x9, [x19]
	ldr	w9, [x9]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _PMAC_TUMBLER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PMAC_TUMBLER@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _TAS3001_DRC_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TAS3001_DRC_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.hi	LBB0_7
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.4:
	str	w9, [x0]
	bl	_tumbler_set_drc
	b	LBB0_13
LBB0_5:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _TAS3004_DRC_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TAS3004_DRC_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ls	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x0]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_11:
	mov	w0, #0
	b	LBB0_9
LBB0_12:
	str	w9, [x0]
	bl	_snapper_set_drc
LBB0_13:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PMAC_TUMBLER,8,3               ; @PMAC_TUMBLER
	.comm	_TAS3001_DRC_MAX,4,2            ; @TAS3001_DRC_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TAS3004_DRC_MAX,4,2            ; @TAS3004_DRC_MAX
	.no_dead_strip	_tumbler_put_drc_value
.subsections_via_symbols
