	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc1_se_audio_setup
_enc1_se_audio_setup:                   ## @enc1_se_audio_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	callq	_DCN10STRENC_FROM_STRENC
	movq	%rbx, %rdi
	callq	_ASSERT
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_speakers_to_channels
	movl	%eax, %ebx
	movq	_AFMT_AUDIO_SRC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AFMT_AUDIO_SRC_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_REG_SET
	movq	_AFMT_AUDIO_PACKET_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AFMT_AUDIO_CHANNEL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFMT_AUDIO_SRC_CONTROL,4,2     ## @AFMT_AUDIO_SRC_CONTROL
	.comm	_AFMT_AUDIO_SRC_SELECT,4,2      ## @AFMT_AUDIO_SRC_SELECT
	.comm	_AFMT_AUDIO_PACKET_CONTROL2,4,2 ## @AFMT_AUDIO_PACKET_CONTROL2
	.comm	_AFMT_AUDIO_CHANNEL_ENABLE,4,2  ## @AFMT_AUDIO_CHANNEL_ENABLE
	.no_dead_strip	_enc1_se_audio_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc1_se_audio_setup
_enc1_se_audio_setup:                   ; @enc1_se_audio_setup
	.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	x20, x2
	mov	x19, x1
	bl	_DCN10STRENC_FROM_STRENC
	mov	x0, x20
	bl	_ASSERT
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_speakers_to_channels
	mov	x20, x0
Lloh0:
	adrp	x8, _AFMT_AUDIO_SRC_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFMT_AUDIO_SRC_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AFMT_AUDIO_SRC_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AFMT_AUDIO_SRC_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	bl	_REG_SET
Lloh6:
	adrp	x8, _AFMT_AUDIO_PACKET_CONTROL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AFMT_AUDIO_PACKET_CONTROL2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _AFMT_AUDIO_CHANNEL_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AFMT_AUDIO_CHANNEL_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AFMT_AUDIO_SRC_CONTROL,4,2     ; @AFMT_AUDIO_SRC_CONTROL
	.comm	_AFMT_AUDIO_SRC_SELECT,4,2      ; @AFMT_AUDIO_SRC_SELECT
	.comm	_AFMT_AUDIO_PACKET_CONTROL2,4,2 ; @AFMT_AUDIO_PACKET_CONTROL2
	.comm	_AFMT_AUDIO_CHANNEL_ENABLE,4,2  ; @AFMT_AUDIO_CHANNEL_ENABLE
	.no_dead_strip	_enc1_se_audio_setup
.subsections_via_symbols
