	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sor_write_eld
_tegra_sor_write_eld:                   ## @tegra_sor_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_4
## %bb.1:
	xorl	%r13d, %r13d
	movq	_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_sor_writel
	incq	%rbx
	addq	$256, %r13                      ## imm = 0x100
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.3:
	cmpq	$95, %r15
	ja	LBB0_6
LBB0_4:
	leaq	-96(%r15), %rbx
	shlq	$8, %r15
	movq	_SOR_AUDIO_HDA_ELD_BUFWR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_tegra_sor_writel
	addq	$256, %r15                      ## imm = 0x100
	incq	%rbx
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOR_AUDIO_HDA_ELD_BUFWR,4,2    ## @SOR_AUDIO_HDA_ELD_BUFWR
	.no_dead_strip	_tegra_sor_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_sor_write_eld
_tegra_sor_write_eld:                   ; @tegra_sor_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	x21, _SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOR_AUDIO_HDA_ELD_BUFWR@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, x23, lsl #3]
	orr	x1, x8, x22
	ldr	w2, [x21]
	mov	x0, x19
	bl	_tegra_sor_writel
	add	x23, x23, #1
	add	x22, x22, #256
	cmp	x20, x23
	b.ne	LBB0_2
; %bb.3:
	cmp	x20, #95
	b.hi	LBB0_6
LBB0_4:
	sub	x22, x20, #96
	lsl	x20, x20, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_tegra_sor_writel
	add	x20, x20, #256
	adds	x22, x22, #1
	b.lo	LBB0_5
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SOR_AUDIO_HDA_ELD_BUFWR,4,2    ; @SOR_AUDIO_HDA_ELD_BUFWR
	.no_dead_strip	_tegra_sor_write_eld
.subsections_via_symbols
