	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_set_audio_packet          ## -- Begin function r600_set_audio_packet
	.p2align	4, 0x90
_r600_set_audio_packet:                 ## @r600_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, %r14
	movq	_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%rsi, %r15
	movq	_HDMI0_AUDIO_SAMPLE_SEND@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movl	$1, %edi
	callq	_HDMI0_AUDIO_DELAY_EN
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_HDMI0_AUDIO_PACKETS_PER_LINE
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_HDMI0_60958_CS_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%edx, %ebx
	movq	_HDMI0_AUDIO_DELAY_EN_MASK@GOTPCREL(%rip), %rax
	orl	(%r12), %edx
	orl	(%rax), %edx
	movq	_HDMI0_AUDIO_PACKETS_PER_LINE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WREG32_P
	movq	_HDMI0_INFOFRAME_CONTROL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	movq	_HDMI0_AUDIO_INFO_SEND@GOTPCREL(%rip), %rax
	movq	_HDMI0_AUDIO_INFO_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_WREG32_OR
	movq	_HDMI0_INFOFRAME_CONTROL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r14, %rbx
	movl	$2, %edi
	callq	_HDMI0_AUDIO_INFO_LINE
	movq	_HDMI0_AUDIO_INFO_LINE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_HDMI0_GENERIC0_SEND@GOTPCREL(%rip), %rax
	movq	_HDMI0_GENERIC0_CONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_HDMI0_GENERIC0_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HDMI0_GENERIC_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	_HDMI0_GENERIC1_SEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	(%rax), %rdi
	movq	_HDMI0_GENERIC1_CONT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	addq	%r14, %rdi
	movq	_HDMI0_GENERIC0_LINE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HDMI0_GENERIC1_LINE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	callq	_WREG32_AND
	movq	_HDMI0_60958_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r14, %rbx
	movl	$1, %edi
	callq	_HDMI0_60958_CS_CHANNEL_NUMBER_L
	movq	_HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK@GOTPCREL(%rip), %rcx
	movq	_HDMI0_60958_CS_CLOCK_ACCURACY_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_HDMI0_60958_1@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movl	$2, %edi
	callq	_HDMI0_60958_CS_CHANNEL_NUMBER_R
	movq	_HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI0_AUDIO_PACKET_CONTROL,8,3 ## @HDMI0_AUDIO_PACKET_CONTROL
	.comm	_HDMI0_AUDIO_SAMPLE_SEND,4,2    ## @HDMI0_AUDIO_SAMPLE_SEND
	.comm	_HDMI0_60958_CS_UPDATE,4,2      ## @HDMI0_60958_CS_UPDATE
	.comm	_HDMI0_AUDIO_DELAY_EN_MASK,4,2  ## @HDMI0_AUDIO_DELAY_EN_MASK
	.comm	_HDMI0_AUDIO_PACKETS_PER_LINE_MASK,4,2 ## @HDMI0_AUDIO_PACKETS_PER_LINE_MASK
	.comm	_HDMI0_INFOFRAME_CONTROL0,8,3   ## @HDMI0_INFOFRAME_CONTROL0
	.comm	_HDMI0_AUDIO_INFO_SEND,4,2      ## @HDMI0_AUDIO_INFO_SEND
	.comm	_HDMI0_AUDIO_INFO_UPDATE,4,2    ## @HDMI0_AUDIO_INFO_UPDATE
	.comm	_HDMI0_INFOFRAME_CONTROL1,8,3   ## @HDMI0_INFOFRAME_CONTROL1
	.comm	_HDMI0_AUDIO_INFO_LINE_MASK,4,2 ## @HDMI0_AUDIO_INFO_LINE_MASK
	.comm	_HDMI0_GENERIC_PACKET_CONTROL,8,3 ## @HDMI0_GENERIC_PACKET_CONTROL
	.comm	_HDMI0_GENERIC0_SEND,4,2        ## @HDMI0_GENERIC0_SEND
	.comm	_HDMI0_GENERIC0_CONT,4,2        ## @HDMI0_GENERIC0_CONT
	.comm	_HDMI0_GENERIC0_UPDATE,4,2      ## @HDMI0_GENERIC0_UPDATE
	.comm	_HDMI0_GENERIC1_SEND,4,2        ## @HDMI0_GENERIC1_SEND
	.comm	_HDMI0_GENERIC1_CONT,4,2        ## @HDMI0_GENERIC1_CONT
	.comm	_HDMI0_GENERIC0_LINE_MASK,4,2   ## @HDMI0_GENERIC0_LINE_MASK
	.comm	_HDMI0_GENERIC1_LINE_MASK,4,2   ## @HDMI0_GENERIC1_LINE_MASK
	.comm	_HDMI0_60958_0,8,3              ## @HDMI0_60958_0
	.comm	_HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK,4,2 ## @HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK
	.comm	_HDMI0_60958_CS_CLOCK_ACCURACY_MASK,4,2 ## @HDMI0_60958_CS_CLOCK_ACCURACY_MASK
	.comm	_HDMI0_60958_1,8,3              ## @HDMI0_60958_1
	.comm	_HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK,4,2 ## @HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_set_audio_packet          ; -- Begin function r600_set_audio_packet
	.p2align	2
_r600_set_audio_packet:                 ; @r600_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, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, x1
Lloh3:
	adrp	x21, _HDMI0_AUDIO_SAMPLE_SEND@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HDMI0_AUDIO_SAMPLE_SEND@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	w0, #1
	bl	_HDMI0_AUDIO_DELAY_EN
	orr	w22, w0, w22
	mov	w0, #3
	bl	_HDMI0_AUDIO_PACKETS_PER_LINE
	orr	w8, w22, w0
Lloh5:
	adrp	x9, _HDMI0_60958_CS_UPDATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI0_60958_CS_UPDATE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w8, [x21]
Lloh8:
	adrp	x10, _HDMI0_AUDIO_DELAY_EN_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HDMI0_AUDIO_DELAY_EN_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x11, _HDMI0_AUDIO_PACKETS_PER_LINE_MASK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _HDMI0_AUDIO_PACKETS_PER_LINE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	mvn	w2, w8
	mov	x0, x20
	bl	_WREG32_P
Lloh14:
	adrp	x8, _HDMI0_INFOFRAME_CONTROL0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI0_INFOFRAME_CONTROL0@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HDMI0_AUDIO_INFO_SEND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDMI0_AUDIO_INFO_SEND@GOTPAGEOFF]
	add	x0, x8, x19
Lloh19:
	ldr	w8, [x9]
Lloh20:
	adrp	x9, _HDMI0_AUDIO_INFO_UPDATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HDMI0_AUDIO_INFO_UPDATE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_WREG32_OR
Lloh23:
	adrp	x8, _HDMI0_INFOFRAME_CONTROL1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDMI0_INFOFRAME_CONTROL1@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #2
	bl	_HDMI0_AUDIO_INFO_LINE
	mov	x1, x0
Lloh26:
	adrp	x8, _HDMI0_AUDIO_INFO_LINE_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI0_AUDIO_INFO_LINE_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x20
	bl	_WREG32_P
Lloh29:
	adrp	x8, _HDMI0_GENERIC_PACKET_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HDMI0_GENERIC_PACKET_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _HDMI0_GENERIC0_SEND@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HDMI0_GENERIC0_SEND@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _HDMI0_GENERIC0_CONT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _HDMI0_GENERIC0_CONT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh38:
	adrp	x10, _HDMI0_GENERIC0_UPDATE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _HDMI0_GENERIC0_UPDATE@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh41:
	adrp	x10, _HDMI0_GENERIC1_SEND@GOTPAGE
Lloh42:
	ldr	x10, [x10, _HDMI0_GENERIC1_SEND@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh44:
	adrp	x10, _HDMI0_GENERIC1_CONT@GOTPAGE
Lloh45:
	ldr	x10, [x10, _HDMI0_GENERIC1_CONT@GOTPAGEOFF]
	add	x0, x8, x19
Lloh46:
	ldr	w8, [x10]
	orr	w8, w9, w8
Lloh47:
	adrp	x9, _HDMI0_GENERIC0_LINE_MASK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _HDMI0_GENERIC0_LINE_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _HDMI0_GENERIC1_LINE_MASK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _HDMI0_GENERIC1_LINE_MASK@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mvn	w1, w8
	bl	_WREG32_AND
Lloh53:
	adrp	x8, _HDMI0_60958_0@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HDMI0_60958_0@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w0, #1
	bl	_HDMI0_60958_CS_CHANNEL_NUMBER_L
	mov	x1, x0
Lloh56:
	adrp	x8, _HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _HDMI0_60958_CS_CLOCK_ACCURACY_MASK@GOTPAGE
Lloh60:
	ldr	x9, [x9, _HDMI0_60958_CS_CLOCK_ACCURACY_MASK@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w2, w8
	mov	x0, x20
	bl	_WREG32_P
Lloh62:
	adrp	x8, _HDMI0_60958_1@GOTPAGE
Lloh63:
	ldr	x8, [x8, _HDMI0_60958_1@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	add	x19, x8, x19
	mov	w0, #2
	bl	_HDMI0_60958_CS_CHANNEL_NUMBER_R
	mov	x1, x0
Lloh65:
	adrp	x8, _HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK@GOTPAGE
Lloh66:
	ldr	x8, [x8, _HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	mvn	w2, w8
	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	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI0_AUDIO_PACKET_CONTROL,8,3 ; @HDMI0_AUDIO_PACKET_CONTROL
	.comm	_HDMI0_AUDIO_SAMPLE_SEND,4,2    ; @HDMI0_AUDIO_SAMPLE_SEND
	.comm	_HDMI0_60958_CS_UPDATE,4,2      ; @HDMI0_60958_CS_UPDATE
	.comm	_HDMI0_AUDIO_DELAY_EN_MASK,4,2  ; @HDMI0_AUDIO_DELAY_EN_MASK
	.comm	_HDMI0_AUDIO_PACKETS_PER_LINE_MASK,4,2 ; @HDMI0_AUDIO_PACKETS_PER_LINE_MASK
	.comm	_HDMI0_INFOFRAME_CONTROL0,8,3   ; @HDMI0_INFOFRAME_CONTROL0
	.comm	_HDMI0_AUDIO_INFO_SEND,4,2      ; @HDMI0_AUDIO_INFO_SEND
	.comm	_HDMI0_AUDIO_INFO_UPDATE,4,2    ; @HDMI0_AUDIO_INFO_UPDATE
	.comm	_HDMI0_INFOFRAME_CONTROL1,8,3   ; @HDMI0_INFOFRAME_CONTROL1
	.comm	_HDMI0_AUDIO_INFO_LINE_MASK,4,2 ; @HDMI0_AUDIO_INFO_LINE_MASK
	.comm	_HDMI0_GENERIC_PACKET_CONTROL,8,3 ; @HDMI0_GENERIC_PACKET_CONTROL
	.comm	_HDMI0_GENERIC0_SEND,4,2        ; @HDMI0_GENERIC0_SEND
	.comm	_HDMI0_GENERIC0_CONT,4,2        ; @HDMI0_GENERIC0_CONT
	.comm	_HDMI0_GENERIC0_UPDATE,4,2      ; @HDMI0_GENERIC0_UPDATE
	.comm	_HDMI0_GENERIC1_SEND,4,2        ; @HDMI0_GENERIC1_SEND
	.comm	_HDMI0_GENERIC1_CONT,4,2        ; @HDMI0_GENERIC1_CONT
	.comm	_HDMI0_GENERIC0_LINE_MASK,4,2   ; @HDMI0_GENERIC0_LINE_MASK
	.comm	_HDMI0_GENERIC1_LINE_MASK,4,2   ; @HDMI0_GENERIC1_LINE_MASK
	.comm	_HDMI0_60958_0,8,3              ; @HDMI0_60958_0
	.comm	_HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK,4,2 ; @HDMI0_60958_CS_CHANNEL_NUMBER_L_MASK
	.comm	_HDMI0_60958_CS_CLOCK_ACCURACY_MASK,4,2 ; @HDMI0_60958_CS_CLOCK_ACCURACY_MASK
	.comm	_HDMI0_60958_1,8,3              ; @HDMI0_60958_1
	.comm	_HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK,4,2 ; @HDMI0_60958_CS_CHANNEL_NUMBER_R_MASK
.subsections_via_symbols
