	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dcn20_populate_dml_writeback_from_context
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dcn20_populate_dml_writeback_from_context
	.p2align	4, 0x90
_dcn20_populate_dml_writeback_from_context: ## @dcn20_populate_dml_writeback_from_context
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.1:
	movq	(%rsi), %r13
	movq	_dwb_scaler_mode_yuv420@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%edi, %edi
	movabsq	$4294967297, %r9                ## imm = 0x100000001
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movq	_dm_444_32@GOTPCREL(%rip), %r10
	movq	_dm_420_10@GOTPCREL(%rip), %r11
	movq	_dm_420_8@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %eax
	movl	%eax, 32(%rdx,%rsi,8)
	incl	%ebx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rdi, %r12
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rdi,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$1, (%rax)
	sete	%cl
	movslq	%ebx, %rsi
	leaq	(%rsi,%rsi,8), %rsi
	movl	%ecx, (%rdx,%rsi,8)
	incl	64(%rdx,%rsi,8)
	movl	44(%rax), %ecx
	movl	%ecx, 56(%rdx,%rsi,8)
	movl	40(%rax), %ecx
	movl	%ecx, 52(%rdx,%rsi,8)
	movq	%r9, 8(%rdx,%rsi,8)
	movups	24(%rax), %xmm1
	movups	%xmm1, 36(%rdx,%rsi,8)
	movups	%xmm0, 16(%rdx,%rsi,8)
	movq	%r10, %rcx
	cmpq	%r15, 8(%rax)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rcx
	cmpq	%r8, 16(%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rcx
	jmp	LBB0_6
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dwb_scaler_mode_yuv420,8,3     ## @dwb_scaler_mode_yuv420
	.comm	_DWB_OUTPUT_PIXEL_DEPTH_8BPC,8,3 ## @DWB_OUTPUT_PIXEL_DEPTH_8BPC
	.comm	_dm_420_8,4,2                   ## @dm_420_8
	.comm	_dm_420_10,4,2                  ## @dm_420_10
	.comm	_dm_444_32,4,2                  ## @dm_444_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_populate_dml_writeback_from_context ; -- Begin function dcn20_populate_dml_writeback_from_context
	.p2align	2
_dcn20_populate_dml_writeback_from_context: ; @dcn20_populate_dml_writeback_from_context
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w9, #0
	ldr	x10, [x1]
Lloh0:
	adrp	x11, _dwb_scaler_mode_yuv420@GOTPAGE
Lloh1:
	ldr	x11, [x11, _dwb_scaler_mode_yuv420@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPAGE
Lloh4:
	ldr	x12, [x12, _DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	mov	w13, #72
	movi.2s	v0, #1
	fmov.2d	v1, #1.00000000
Lloh6:
	adrp	x14, _dm_444_32@GOTPAGE
Lloh7:
	ldr	x14, [x14, _dm_444_32@GOTPAGEOFF]
Lloh8:
	adrp	x15, _dm_420_10@GOTPAGE
Lloh9:
	ldr	x15, [x15, _dm_420_10@GOTPAGEOFF]
Lloh10:
	adrp	x16, _dm_420_8@GOTPAGE
Lloh11:
	ldr	x16, [x16, _dm_420_8@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x17, w9
	ldr	w0, [x0]
	madd	x17, x17, x13, x2
	str	w0, [x17, #32]
	add	w9, w9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x17, [x10]
	cbz	x17, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x17]
	ldr	w0, [x17]
	cmp	w0, #1
	cset	w0, eq
	smaddl	x1, w9, w13, x2
	str	w0, [x1]
	ldr	w0, [x1, #64]
	add	w0, w0, #1
	str	w0, [x1, #64]
	ldr	d2, [x17, #40]
	stur	d2, [x1, #52]
	ldr	d2, [x17, #32]
	str	d0, [x1, #8]
	ldr	d3, [x17, #24]
	mov.d	v3[1], v2[0]
	stur	q3, [x1, #36]
	str	q1, [x1, #16]
	ldr	x1, [x17, #8]
	mov	x0, x14
	cmp	x1, x11
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x17, #16]
	cmp	x17, x12
	csel	x0, x16, x15, eq
	b	LBB0_2
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dwb_scaler_mode_yuv420,8,3     ; @dwb_scaler_mode_yuv420
	.comm	_DWB_OUTPUT_PIXEL_DEPTH_8BPC,8,3 ; @DWB_OUTPUT_PIXEL_DEPTH_8BPC
	.comm	_dm_420_8,4,2                   ; @dm_420_8
	.comm	_dm_420_10,4,2                  ; @dm_420_10
	.comm	_dm_444_32,4,2                  ; @dm_444_32
.subsections_via_symbols
