	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_write_eld
_tegra_hdmi_write_eld:                  ## @tegra_hdmi_write_eld
	.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	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_drm_eld_size
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	orq	%r13, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_tegra_hdmi_writel
	incq	%rbx
	addq	$256, %r13                      ## imm = 0x100
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	movq	_HDMI_ELD_BUFFER_SIZE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r15
	jae	LBB0_6
## %bb.4:
	movq	%r15, %rbx
	shlq	$8, %rbx
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tegra_hdmi_writel
	incq	%r15
	addq	$256, %rbx                      ## imm = 0x100
	cmpq	(%r12), %r15
	jb	LBB0_5
LBB0_6:
	movq	_SOR_AUDIO_HDA_PRESENSE_VALID@GOTPCREL(%rip), %rax
	movq	_SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	orq	(%rax), %rsi
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_hdmi_writel              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR,4,2 ## @HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR
	.comm	_HDMI_ELD_BUFFER_SIZE,8,3       ## @HDMI_ELD_BUFFER_SIZE
	.comm	_SOR_AUDIO_HDA_PRESENSE_VALID,8,3 ## @SOR_AUDIO_HDA_PRESENSE_VALID
	.comm	_SOR_AUDIO_HDA_PRESENSE_PRESENT,8,3 ## @SOR_AUDIO_HDA_PRESENSE_PRESENT
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE,4,2 ## @HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE
	.no_dead_strip	_tegra_hdmi_write_eld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hdmi_write_eld
_tegra_hdmi_write_eld:                  ; @tegra_hdmi_write_eld
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0]
	bl	_drm_eld_size
	mov	x20, x0
Lloh0:
	adrp	x22, _HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, x23, lsl #3]
	orr	x1, x8, x21
	ldr	w2, [x22]
	mov	x0, x19
	bl	_tegra_hdmi_writel
	add	x23, x23, #1
	add	x21, x21, #256
	cmp	x20, x23
	b.ne	LBB0_2
LBB0_3:
Lloh2:
	adrp	x23, _HDMI_ELD_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HDMI_ELD_BUFFER_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x20, x8
	b.hs	LBB0_6
; %bb.4:
	lsl	x21, x20, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_tegra_hdmi_writel
	add	x20, x20, #1
	ldr	x8, [x23]
	add	x21, x21, #256
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
Lloh4:
	adrp	x8, _SOR_AUDIO_HDA_PRESENSE_VALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOR_AUDIO_HDA_PRESENSE_VALID@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	orr	x1, x9, x8
Lloh10:
	adrp	x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tegra_hdmi_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR,4,2 ; @HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR
	.comm	_HDMI_ELD_BUFFER_SIZE,8,3       ; @HDMI_ELD_BUFFER_SIZE
	.comm	_SOR_AUDIO_HDA_PRESENSE_VALID,8,3 ; @SOR_AUDIO_HDA_PRESENSE_VALID
	.comm	_SOR_AUDIO_HDA_PRESENSE_PRESENT,8,3 ; @SOR_AUDIO_HDA_PRESENSE_PRESENT
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE,4,2 ; @HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE
	.no_dead_strip	_tegra_hdmi_write_eld
.subsections_via_symbols
