	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_hda_eld
_init_hda_eld:                          ## @init_hda_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, %r12
	movq	(%rdi), %rdi
	callq	_drm_eld_size
	movq	%rax, %r14
	movq	_HDMI_ELD_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_WR4
	incq	%r15
	movq	_HDMI_ELD_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addl	$256, %ebx                      ## imm = 0x100
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	cmpq	%r15, %r14
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %edx
	orl	%ebx, %edx
	jmp	LBB0_4
LBB0_5:
	movq	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOR_AUDIO_HDA_PRESENSE_VALID@GOTPCREL(%rip), %rax
	movq	_SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_ELD_BUFFER_SIZE,4,2       ## @HDMI_ELD_BUFFER_SIZE
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR,4,2 ## @HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE,4,2 ## @HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE
	.comm	_SOR_AUDIO_HDA_PRESENSE_VALID,4,2 ## @SOR_AUDIO_HDA_PRESENSE_VALID
	.comm	_SOR_AUDIO_HDA_PRESENSE_PRESENT,4,2 ## @SOR_AUDIO_HDA_PRESENSE_PRESENT
	.no_dead_strip	_init_hda_eld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_hda_eld
_init_hda_eld:                          ; @init_hda_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
Lloh0:
	adrp	x21, _HDMI_ELD_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HDMI_ELD_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_WR4
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	w22, w22, #256
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, x22
	cmp	x20, x23
	b.ls	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8, x23, lsl #2]
	orr	w2, w8, w22
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _SOR_AUDIO_HDA_PRESENSE_VALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOR_AUDIO_HDA_PRESENSE_VALID@GOTPAGEOFF]
Lloh9:
	adrp	x9, _SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOR_AUDIO_HDA_PRESENSE_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	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	_WR4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_ELD_BUFFER_SIZE,4,2       ; @HDMI_ELD_BUFFER_SIZE
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR,4,2 ; @HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR
	.comm	_HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE,4,2 ; @HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE
	.comm	_SOR_AUDIO_HDA_PRESENSE_VALID,4,2 ; @SOR_AUDIO_HDA_PRESENSE_VALID
	.comm	_SOR_AUDIO_HDA_PRESENSE_PRESENT,4,2 ; @SOR_AUDIO_HDA_PRESENSE_PRESENT
	.no_dead_strip	_init_hda_eld
.subsections_via_symbols
