	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_ac3
_setup_ac3:                             ## @setup_ac3
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %eax
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CM_REG_CHFORMAT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CM_AC3EN1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	callq	_snd_cmipci_set_bit
	movq	_CM_REG_MISC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CM_AC3EN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.2:
	movl	(%r12), %esi
	movq	_CM_SPD24SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	movl	(%r15), %esi
	movq	_CM_SPD32SEL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	callq	_snd_cmipci_clear_bit
	movq	_CM_REG_MISC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CM_AC3EN2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_snd_pcm_format_width
	movl	(%r14), %esi
	movq	_CM_SPD32SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	cmpl	$17, %eax
	jl	LBB0_10
## %bb.5:
	callq	_snd_cmipci_set_bit
	movl	(%r12), %esi
	movq	_CM_SPD24SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_8
LBB0_6:
	movl	(%r15), %esi
	movq	_CM_SPD32SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_set_bit
	cmpl	$33, (%rbx)
	jne	LBB0_13
## %bb.7:
	movl	(%r12), %esi
	movq	_CM_PLAYBACK_SRATE_176K@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	jl	LBB0_12
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_cmipci_set_bit             ## TAILCALL
LBB0_9:
	movl	(%r14), %esi
	movq	_CM_SPD32SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	movl	(%r12), %esi
	movq	_CM_SPD24SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_cmipci_clear_bit
	movl	(%r12), %esi
	movq	_CM_PLAYBACK_SRATE_176K@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	callq	_snd_cmipci_clear_bit
	movl	(%r12), %esi
	movq	_CM_SPD24SEL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edx
LBB0_12:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_cmipci_clear_bit           ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_REG_CHFORMAT,4,2            ## @CM_REG_CHFORMAT
	.comm	_CM_AC3EN1,4,2                  ## @CM_AC3EN1
	.comm	_CM_REG_MISC_CTRL,4,2           ## @CM_REG_MISC_CTRL
	.comm	_CM_AC3EN2,4,2                  ## @CM_AC3EN2
	.comm	_CM_SPD24SEL,4,2                ## @CM_SPD24SEL
	.comm	_CM_SPD32SEL,4,2                ## @CM_SPD32SEL
	.comm	_CM_PLAYBACK_SRATE_176K,4,2     ## @CM_PLAYBACK_SRATE_176K
	.no_dead_strip	_setup_ac3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_ac3
_setup_ac3:                             ; @setup_ac3
	.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
	mov	x8, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _CM_REG_CHFORMAT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CM_REG_CHFORMAT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x9, _CM_AC3EN1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CM_AC3EN1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x0, x19
	bl	_snd_cmipci_set_bit
Lloh5:
	adrp	x21, _CM_REG_MISC_CTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CM_REG_MISC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _CM_AC3EN2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CM_AC3EN2@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _CM_SPD24SEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CM_SPD24SEL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _CM_SPD32SEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CM_SPD32SEL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
Lloh15:
	adrp	x20, _CM_REG_MISC_CTRL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _CM_REG_MISC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _CM_AC3EN2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CM_AC3EN2@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_snd_pcm_format_width
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _CM_SPD32SEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CM_SPD32SEL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	cmp	w0, #17
	b.lt	LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	ldr	w1, [x22]
Lloh23:
	adrp	x8, _CM_SPD24SEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CM_SPD24SEL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	b	LBB0_8
LBB0_6:
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _CM_SPD32SEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CM_SPD32SEL@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_set_bit
	ldr	w8, [x19]
	cmp	w8, #33
	b.ne	LBB0_13
; %bb.7:
	ldr	w1, [x22]
Lloh29:
	adrp	x8, _CM_PLAYBACK_SRATE_176K@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CM_PLAYBACK_SRATE_176K@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	w8, #48000
	cmp	w20, w8
	b.lt	LBB0_12
LBB0_8:
	mov	x0, x19
	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
	b	_snd_cmipci_set_bit
LBB0_9:
	ldr	w1, [x20]
Lloh32:
	adrp	x8, _CM_SPD32SEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CM_SPD32SEL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	ldr	w1, [x22]
Lloh35:
	adrp	x8, _CM_SPD24SEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CM_SPD24SEL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	ldr	w1, [x22]
Lloh38:
	adrp	x8, _CM_PLAYBACK_SRATE_176K@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CM_PLAYBACK_SRATE_176K@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_snd_cmipci_clear_bit
	ldr	w1, [x22]
Lloh40:
	adrp	x8, _CM_SPD24SEL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CM_SPD24SEL@GOTPAGEOFF]
LBB0_11:
	ldr	w2, [x8]
LBB0_12:
	mov	x0, x19
	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
	b	_snd_cmipci_clear_bit
LBB0_13:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_REG_CHFORMAT,4,2            ; @CM_REG_CHFORMAT
	.comm	_CM_AC3EN1,4,2                  ; @CM_AC3EN1
	.comm	_CM_REG_MISC_CTRL,4,2           ; @CM_REG_MISC_CTRL
	.comm	_CM_AC3EN2,4,2                  ; @CM_AC3EN2
	.comm	_CM_SPD24SEL,4,2                ; @CM_SPD24SEL
	.comm	_CM_SPD32SEL,4,2                ; @CM_SPD32SEL
	.comm	_CM_PLAYBACK_SRATE_176K,4,2     ; @CM_PLAYBACK_SRATE_176K
	.no_dead_strip	_setup_ac3
.subsections_via_symbols
