	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dm_pp_apply_display_requirements
LCPI0_0:
	.long	1717986919                      ## 0x66666667
	.long	1717986919                      ## 0x66666667
	.long	1717986919                      ## 0x66666667
	.long	1717986919                      ## 0x66666667
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dm_pp_apply_display_requirements
	.p2align	4, 0x90
_dm_pp_apply_display_requirements:      ## @dm_pp_apply_display_requirements
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	cmpq	$0, 96(%r14)
	je	LBB0_13
## %bb.1:
	movq	%rsi, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movl	64(%rbx), %eax
	movl	%eax, 92(%r14)
	movl	60(%rbx), %eax
	movl	%eax, 88(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	%eax, 4(%r14)
	movslq	4(%rbx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movl	%ecx, 8(%r14)
	movups	44(%rbx), %xmm0
	movups	%xmm0, 72(%r14)
	movdqu	8(%rbx), %xmm0
	pshufd	$245, %xmm0, %xmm1              ## xmm1 = xmm0[1,1,3,3]
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1717986919,1717986919,1717986919,1717986919]
	pmuldq	%xmm2, %xmm1
	pmuldq	%xmm2, %xmm0
	pshufd	$245, %xmm0, %xmm0              ## xmm0 = xmm0[1,1,3,3]
	pblendw	$204, %xmm1, %xmm0              ## xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7]
	movdqa	%xmm0, %xmm1
	psrld	$31, %xmm1
	psrad	$2, %xmm0
	paddd	%xmm1, %xmm0
	movd	%xmm0, 12(%r14)
	pshufd	$225, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,2,3]
	movdqu	%xmm0, 16(%r14)
	movl	40(%rbx), %ecx
	movl	%ecx, 68(%r14)
	movl	36(%rbx), %ecx
	movl	%ecx, 64(%r14)
	movl	32(%rbx), %ecx
	movl	%ecx, 60(%r14)
	movq	24(%rbx), %rcx
	movl	8(%rcx), %edx
	movl	%edx, 56(%r14)
	movl	$-1, 32(%r14)
	movq	$0, 48(%r14)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movq	40(%r14), %rdx
	cmpl	$5, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %esi
	andl	$3, %esi
	testq	%rsi, %rsi
	movl	$4, %edi
	cmovneq	%rsi, %rdi
	movq	%rax, %rsi
	subq	%rdi, %rsi
	leaq	32(%rcx), %rdi
	xorl	%ebx, %ebx
	pcmpeqd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rdi), %xmm1
	movdqu	-16(%rdi), %xmm2
	punpcklqdq	%xmm2, %xmm1            ## xmm1 = xmm1[0],xmm2[0]
	movdqu	(%rdi), %xmm2
	movdqu	16(%rdi), %xmm3
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	psubq	%xmm0, %xmm1
	psubq	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rbx,8)
	movdqu	%xmm2, 16(%rdx,%rbx,8)
	addq	$4, %rbx
	addq	$64, %rdi
	cmpq	%rbx, %rsi
	jne	LBB0_5
LBB0_6:
	movq	%rsi, %rdi
	shlq	$4, %rdi
	addq	%rdi, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdi
	incq	%rdi
	movq	%rdi, (%rdx,%rsi,8)
	incq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_7
LBB0_8:
	movq	112(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	104(%r14), %edi
	movq	%r14, %rsi
	callq	*%rax
	jmp	LBB0_12
LBB0_11:
	leaq	120(%r14), %rdi
	movq	%r14, %rsi
	callq	_smu_display_configuration_change
LBB0_12:
	movq	%r14, %rdi
	callq	_amdgpu_pm_compute_clocks
LBB0_13:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_pp_apply_display_requirements ; -- Begin function dm_pp_apply_display_requirements
	.p2align	2
_dm_pp_apply_display_requirements:      ; @dm_pp_apply_display_requirements
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldr	w8, [x20, #64]
	str	w8, [x19, #92]
	ldp	w8, w9, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w11, asr #2
	ldpsw	x11, x12, [x20, #8]
	mul	x11, x11, x10
	lsr	x13, x11, #32
	lsr	x11, x11, #63
	add	w11, w11, w13, asr #2
	stp	w8, w8, [x19]
	stp	w9, w11, [x19, #8]
	mul	x9, x12, x10
	lsr	x12, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w12, asr #2
	stp	w9, w11, [x19, #16]
	ldrsw	x9, [x20, #16]
	mul	x9, x9, x10
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w11, asr #2
	str	w9, [x19, #24]
	ldr	q0, [x20, #48]
	stur	q0, [x19, #76]
	ldrsw	x9, [x20, #20]
	mul	x9, x9, x10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #2
	str	w9, [x19, #28]
	ldr	q0, [x20, #32]
	stur	q0, [x19, #60]
	ldr	x9, [x20, #24]
	ldr	w10, [x9, #8]
	str	w10, [x19, #56]
	mov	w10, #-1
	str	w10, [x19, #32]
	str	xzr, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	ldr	x10, [x19, #40]
	cmp	w8, #9
	b.hs	LBB0_4
; %bb.3:
	mov	x11, #0
	b	LBB0_6
LBB0_4:
	ands	x11, x8, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x8, x11
	add	x12, x10, #32
	add	x13, x9, #64
	mov	w14, #1
	dup.2d	v0, x14
	mov	x14, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #64
	ld2.2d	{ v1, v2 }, [x15]
	sub	x15, x13, #32
	ld2.2d	{ v3, v4 }, [x15]
	mov	x15, x13
	ld2.2d	{ v5, v6 }, [x15], #32
	ld2.2d	{ v16, v17 }, [x15]
	add.2d	v1, v1, v0
	add.2d	v2, v3, v0
	add.2d	v3, v5, v0
	add.2d	v4, v16, v0
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	add	x13, x13, #128
	subs	x14, x14, #8
	b.ne	LBB0_5
LBB0_6:
	add	x9, x9, x11, lsl #4
	sub	x8, x8, x11
	add	x10, x10, x11, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #16
	add	x11, x11, #1
	str	x11, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x19, #104]
	mov	x1, x19
	blr	x8
	b	LBB0_12
LBB0_11:
	add	x0, x19, #120
	mov	x1, x19
	bl	_smu_display_configuration_change
LBB0_12:
	mov	x0, x19
	bl	_amdgpu_pm_compute_clocks
LBB0_13:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
