	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_dmdata_set_attributes    ## -- Begin function hubp2_dmdata_set_attributes
	.p2align	4, 0x90
_hubp2_dmdata_set_attributes:           ## @hubp2_dmdata_set_attributes
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_TO_DCN20_HUBP
	movq	(%rbx), %rax
	movq	_DMDATA_HW_MODE@GOTPCREL(%rip), %rcx
	movq	_DMDATA_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_DMDATA_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%edx, %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movq	_DCSURF_FLIP_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SURFACE_UPDATE_LOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movl	(%r12), %edi
	movq	_DMDATA_UPDATED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	_DMDATA_REPEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %eax
	movl	28(%rbx), %r8d
	movq	_DMDATA_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%eax, (%rsp)
	movl	$1, %edx
	callq	_REG_UPDATE_3
	movq	_DMDATA_ADDRESS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%rbx), %esi
	callq	_REG_WRITE
	movq	_DMDATA_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %edx
	movl	%edi, %esi
	callq	_REG_UPDATE
	movl	(%r14), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
	movq	_DMDATA_SW_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DMDATA_SW_UPDATED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_DMDATA_SW_REPEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%rbx), %eax
	movl	28(%rbx), %r8d
	movq	_DMDATA_SW_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%eax, (%rsp)
	movl	$1, %edx
	callq	_REG_UPDATE_3
	movl	20(%rbx), %edx
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_hubp2_dmdata_load
LBB0_3:
	movq	_DMDATA_QOS_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMDATA_QOS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rbx), %ecx
	movq	_DMDATA_QOS_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	movq	_DMDATA_DL_DELTA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%eax, 8(%rsp)
	movl	%esi, (%rsp)
	xorl	%esi, %esi
	callq	_REG_SET_3
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDATA_HW_MODE,8,3             ## @DMDATA_HW_MODE
	.comm	_DMDATA_CNTL,4,2                ## @DMDATA_CNTL
	.comm	_DMDATA_MODE,4,2                ## @DMDATA_MODE
	.comm	_DCSURF_FLIP_CONTROL,4,2        ## @DCSURF_FLIP_CONTROL
	.comm	_SURFACE_UPDATE_LOCK,4,2        ## @SURFACE_UPDATE_LOCK
	.comm	_DMDATA_UPDATED,4,2             ## @DMDATA_UPDATED
	.comm	_DMDATA_REPEAT,4,2              ## @DMDATA_REPEAT
	.comm	_DMDATA_SIZE,4,2                ## @DMDATA_SIZE
	.comm	_DMDATA_ADDRESS_LOW,4,2         ## @DMDATA_ADDRESS_LOW
	.comm	_DMDATA_ADDRESS_HIGH,4,2        ## @DMDATA_ADDRESS_HIGH
	.comm	_DMDATA_SW_CNTL,4,2             ## @DMDATA_SW_CNTL
	.comm	_DMDATA_SW_UPDATED,4,2          ## @DMDATA_SW_UPDATED
	.comm	_DMDATA_SW_REPEAT,4,2           ## @DMDATA_SW_REPEAT
	.comm	_DMDATA_SW_SIZE,4,2             ## @DMDATA_SW_SIZE
	.comm	_DMDATA_QOS_CNTL,4,2            ## @DMDATA_QOS_CNTL
	.comm	_DMDATA_QOS_MODE,4,2            ## @DMDATA_QOS_MODE
	.comm	_DMDATA_QOS_LEVEL,4,2           ## @DMDATA_QOS_LEVEL
	.comm	_DMDATA_DL_DELTA,4,2            ## @DMDATA_DL_DELTA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_dmdata_set_attributes    ; -- Begin function hubp2_dmdata_set_attributes
	.p2align	2
_hubp2_dmdata_set_attributes:           ; @hubp2_dmdata_set_attributes
	.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, x1
	mov	x20, x0
	bl	_TO_DCN20_HUBP
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DMDATA_HW_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMDATA_HW_MODE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _DMDATA_CNTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DMDATA_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x21]
Lloh5:
	adrp	x10, _DMDATA_MODE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DMDATA_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x10]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x2
	mov	w2, #1
	bl	_REG_UPDATE
Lloh8:
	adrp	x20, _DCSURF_FLIP_CONTROL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _DCSURF_FLIP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh10:
	adrp	x22, _SURFACE_UPDATE_LOCK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _SURFACE_UPDATE_LOCK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #1
	bl	_REG_UPDATE
	ldr	w0, [x21]
Lloh12:
	adrp	x23, _DMDATA_UPDATED@GOTPAGE
Lloh13:
	ldr	x23, [x23, _DMDATA_UPDATED@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_REG_UPDATE
	ldr	w0, [x21]
	ldr	w1, [x23]
Lloh14:
	adrp	x8, _DMDATA_REPEAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMDATA_REPEAT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _DMDATA_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMDATA_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	ldp	w6, w4, [x19, #24]
	mov	w2, #1
	bl	_REG_UPDATE_3
Lloh20:
	adrp	x8, _DMDATA_ADDRESS_LOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMDATA_ADDRESS_LOW@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x19, #36]
	bl	_REG_WRITE
Lloh23:
	adrp	x8, _DMDATA_ADDRESS_HIGH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMDATA_ADDRESS_HIGH@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
	mov	x1, x0
	bl	_REG_UPDATE
	ldr	w0, [x20]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_REG_UPDATE
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
Lloh26:
	adrp	x21, _DMDATA_SW_CNTL@GOTPAGE
Lloh27:
	ldr	x21, [x21, _DMDATA_SW_CNTL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh28:
	adrp	x22, _DMDATA_SW_UPDATED@GOTPAGE
Lloh29:
	ldr	x22, [x22, _DMDATA_SW_UPDATED@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_REG_UPDATE
	ldr	w0, [x21]
	ldr	w1, [x22]
Lloh30:
	adrp	x8, _DMDATA_SW_REPEAT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DMDATA_SW_REPEAT@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x8, _DMDATA_SW_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DMDATA_SW_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w5, [x8]
	ldp	w6, w4, [x19, #24]
	mov	w2, #1
	bl	_REG_UPDATE_3
	ldp	w2, w1, [x19, #20]
	mov	x0, x20
	bl	_hubp2_dmdata_load
LBB0_3:
Lloh36:
	adrp	x8, _DMDATA_QOS_CNTL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DMDATA_QOS_CNTL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _DMDATA_QOS_MODE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DMDATA_QOS_MODE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	ldp	w5, w3, [x19, #12]
Lloh42:
	adrp	x8, _DMDATA_QOS_LEVEL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DMDATA_QOS_LEVEL@GOTPAGEOFF]
Lloh44:
	adrp	x9, _DMDATA_DL_DELTA@GOTPAGE
Lloh45:
	ldr	x9, [x9, _DMDATA_DL_DELTA@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
Lloh47:
	ldr	w6, [x9]
	ldr	w7, [x19, #8]
	mov	w1, #0
	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	_REG_SET_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDATA_HW_MODE,8,3             ; @DMDATA_HW_MODE
	.comm	_DMDATA_CNTL,4,2                ; @DMDATA_CNTL
	.comm	_DMDATA_MODE,4,2                ; @DMDATA_MODE
	.comm	_DCSURF_FLIP_CONTROL,4,2        ; @DCSURF_FLIP_CONTROL
	.comm	_SURFACE_UPDATE_LOCK,4,2        ; @SURFACE_UPDATE_LOCK
	.comm	_DMDATA_UPDATED,4,2             ; @DMDATA_UPDATED
	.comm	_DMDATA_REPEAT,4,2              ; @DMDATA_REPEAT
	.comm	_DMDATA_SIZE,4,2                ; @DMDATA_SIZE
	.comm	_DMDATA_ADDRESS_LOW,4,2         ; @DMDATA_ADDRESS_LOW
	.comm	_DMDATA_ADDRESS_HIGH,4,2        ; @DMDATA_ADDRESS_HIGH
	.comm	_DMDATA_SW_CNTL,4,2             ; @DMDATA_SW_CNTL
	.comm	_DMDATA_SW_UPDATED,4,2          ; @DMDATA_SW_UPDATED
	.comm	_DMDATA_SW_REPEAT,4,2           ; @DMDATA_SW_REPEAT
	.comm	_DMDATA_SW_SIZE,4,2             ; @DMDATA_SW_SIZE
	.comm	_DMDATA_QOS_CNTL,4,2            ; @DMDATA_QOS_CNTL
	.comm	_DMDATA_QOS_MODE,4,2            ; @DMDATA_QOS_MODE
	.comm	_DMDATA_QOS_LEVEL,4,2           ; @DMDATA_QOS_LEVEL
	.comm	_DMDATA_DL_DELTA,4,2            ; @DMDATA_DL_DELTA
.subsections_via_symbols
