	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmedia_digital_control
_cmedia_digital_control:                ## @cmedia_digital_control
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AUDIO_DIGITAL@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$48000, %edx                    ## imm = 0xBB80
	jne	LBB0_1
## %bb.5:
	movl	$9, %r15d
	jmp	LBB0_6
LBB0_3:
	movl	$1, %r15d
LBB0_6:
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$1476, %edx                     ## imm = 0x5C4
	callq	*8(%rbx)
	movq	%rbx, %rdi
	movl	$108, %esi
	movl	%r15d, %edx
	callq	*8(%rbx)
	movq	%rbx, %rdi
	movl	$100, %esi
	callq	*(%rbx)
	andl	$-513, %eax                     ## imm = 0xFDFF
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	shll	$9, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	$100, %esi
	callq	*8(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_DIGITAL,4,2              ## @AUDIO_DIGITAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cmedia_digital_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmedia_digital_control
_cmedia_digital_control:                ; @cmedia_digital_control
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _AUDIO_DIGITAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x20, x3
	mov	x19, x0
	cbz	w2, LBB0_5
; %bb.3:
	mov	w8, #48000
	cmp	w2, w8
	b.ne	LBB0_1
; %bb.4:
	mov	w21, #9
	b	LBB0_6
LBB0_5:
	mov	w21, #1
LBB0_6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #42
	mov	w2, #1476
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #108
	mov	x2, x21
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #100
	blr	x8
	mov	x2, x0
	cmp	w20, #0
	cset	w8, ne
	bfi	w2, w8, #9, #1
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #100
	blr	x8
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_DIGITAL,4,2              ; @AUDIO_DIGITAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cmedia_digital_control
.subsections_via_symbols
