	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_set_audio_packet          ## -- Begin function dce4_set_audio_packet
	.p2align	4, 0x90
_dce4_set_audio_packet:                 ## @dce4_set_audio_packet
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_AFMT_INFOFRAME_CONTROL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	_AFMT_AUDIO_INFO_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_AFMT_60958_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r15, %rbx
	movl	$1, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_L
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_AFMT_60958_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r15, %rbx
	movl	$2, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_R
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_AFMT_60958_2@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%r15, %r14
	movl	$3, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_2
	movl	%eax, %r12d
	movl	$4, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_3
	orl	%eax, %r12d
	movl	$5, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_4
	movl	%eax, %r13d
	movl	$6, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_5
	orl	%eax, %r13d
	orl	%r12d, %r13d
	movl	$7, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_6
	movl	%eax, %ebx
	movl	$8, %edi
	callq	_AFMT_60958_CS_CHANNEL_NUMBER_7
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_AFMT_AUDIO_PACKET_CONTROL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r15, %rbx
	movl	$255, %edi
	callq	_AFMT_AUDIO_CHANNEL_ENABLE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_HDMI_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%r15, %r14
	movl	$1, %edi
	callq	_HDMI_AUDIO_DELAY_EN
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_HDMI_AUDIO_PACKETS_PER_LINE
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	_AFMT_RESET_FIFO_WHEN_AUDIO_DIS@GOTPCREL(%rip), %rax
	movq	_AFMT_60958_CS_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_OR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AFMT_INFOFRAME_CONTROL0,8,3    ## @AFMT_INFOFRAME_CONTROL0
	.comm	_AFMT_AUDIO_INFO_UPDATE,4,2     ## @AFMT_AUDIO_INFO_UPDATE
	.comm	_AFMT_60958_0,8,3               ## @AFMT_60958_0
	.comm	_AFMT_60958_1,8,3               ## @AFMT_60958_1
	.comm	_AFMT_60958_2,8,3               ## @AFMT_60958_2
	.comm	_AFMT_AUDIO_PACKET_CONTROL2,8,3 ## @AFMT_AUDIO_PACKET_CONTROL2
	.comm	_HDMI_AUDIO_PACKET_CONTROL,8,3  ## @HDMI_AUDIO_PACKET_CONTROL
	.comm	_AFMT_AUDIO_PACKET_CONTROL,8,3  ## @AFMT_AUDIO_PACKET_CONTROL
	.comm	_AFMT_RESET_FIFO_WHEN_AUDIO_DIS,4,2 ## @AFMT_RESET_FIFO_WHEN_AUDIO_DIS
	.comm	_AFMT_60958_CS_UPDATE,4,2       ## @AFMT_60958_CS_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_set_audio_packet          ; -- Begin function dce4_set_audio_packet
	.p2align	2
_dce4_set_audio_packet:                 ; @dce4_set_audio_packet
	.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	x19, x1
Lloh0:
	adrp	x8, _AFMT_INFOFRAME_CONTROL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFMT_INFOFRAME_CONTROL0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x1
Lloh3:
	adrp	x8, _AFMT_AUDIO_INFO_UPDATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AFMT_AUDIO_INFO_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WREG32
Lloh6:
	adrp	x8, _AFMT_60958_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AFMT_60958_0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #1
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_L
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
Lloh9:
	adrp	x8, _AFMT_60958_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AFMT_60958_1@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #2
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_R
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
Lloh12:
	adrp	x8, _AFMT_60958_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AFMT_60958_2@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #3
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_2
	mov	x21, x0
	mov	w0, #4
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_3
	orr	w21, w0, w21
	mov	w0, #5
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_4
	orr	w21, w21, w0
	mov	w0, #6
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_5
	orr	w21, w21, w0
	mov	w0, #7
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_6
	orr	w21, w21, w0
	mov	w0, #8
	bl	_AFMT_60958_CS_CHANNEL_NUMBER_7
	orr	w1, w21, w0
	mov	x0, x20
	bl	_WREG32
Lloh15:
	adrp	x8, _AFMT_AUDIO_PACKET_CONTROL2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AFMT_AUDIO_PACKET_CONTROL2@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #255
	bl	_AFMT_AUDIO_CHANNEL_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
Lloh18:
	adrp	x8, _HDMI_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDMI_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #1
	bl	_HDMI_AUDIO_DELAY_EN
	mov	x21, x0
	mov	w0, #3
	bl	_HDMI_AUDIO_PACKETS_PER_LINE
	orr	w1, w0, w21
	mov	x0, x20
	bl	_WREG32
Lloh21:
	adrp	x8, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x0, x8, x19
Lloh24:
	adrp	x8, _AFMT_RESET_FIFO_WHEN_AUDIO_DIS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AFMT_RESET_FIFO_WHEN_AUDIO_DIS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _AFMT_60958_CS_UPDATE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _AFMT_60958_CS_UPDATE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	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	_WREG32_OR
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_INFOFRAME_CONTROL0,8,3    ; @AFMT_INFOFRAME_CONTROL0
	.comm	_AFMT_AUDIO_INFO_UPDATE,4,2     ; @AFMT_AUDIO_INFO_UPDATE
	.comm	_AFMT_60958_0,8,3               ; @AFMT_60958_0
	.comm	_AFMT_60958_1,8,3               ; @AFMT_60958_1
	.comm	_AFMT_60958_2,8,3               ; @AFMT_60958_2
	.comm	_AFMT_AUDIO_PACKET_CONTROL2,8,3 ; @AFMT_AUDIO_PACKET_CONTROL2
	.comm	_HDMI_AUDIO_PACKET_CONTROL,8,3  ; @HDMI_AUDIO_PACKET_CONTROL
	.comm	_AFMT_AUDIO_PACKET_CONTROL,8,3  ; @AFMT_AUDIO_PACKET_CONTROL
	.comm	_AFMT_RESET_FIFO_WHEN_AUDIO_DIS,4,2 ; @AFMT_RESET_FIFO_WHEN_AUDIO_DIS
	.comm	_AFMT_60958_CS_UPDATE,4,2       ; @AFMT_60958_CS_UPDATE
.subsections_via_symbols
