	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_print_wm_latency
_intel_print_wm_latency:                ## @intel_print_wm_latency
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ilk_wm_max_level
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %r12d
	incl	%r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	leal	(%r15,%r15), %ecx
	testq	%r13, %r13
	leal	(%r15,%r15,4), %edx
	cmovel	%r15d, %edx
	cmpl	$9, %eax
	leal	(%rcx,%rcx,4), %r9d
	cmovll	%edx, %r9d
	movl	(%rbx,%r13,4), %ecx
	movq	%r9, %r8
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rax, %r8
	shrq	$35, %r8
	leal	(%r8,%r8), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r9d
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13,4), %r15d
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s WM%d latency not provided\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s WM%d latency %u (%u.%u usec)\n"

	.no_dead_strip	_intel_print_wm_latency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_print_wm_latency
_intel_print_wm_latency:                ; @intel_print_wm_latency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ilk_wm_max_level
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x22, #0
	add	w25, w0, #1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	mov	w26, #52429
	movk	w26, #52428, lsl #16
	mov	w27, #10
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_INTEL_GEN
	add	w8, w28, w28, lsl #2
	lsl	w9, w8, #1
	cmp	x22, #0
	csel	w8, w28, w8, eq
	cmp	w0, #8
	csel	w8, w9, w8, gt
	umull	x9, w8, w26
	lsr	x9, x9, #35
	msub	w8, w9, w27, w8
	ldr	w10, [x19, x22, lsl #2]
	stp	x10, x9, [sp]
	str	x8, [sp, #16]
	mov	x0, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x20
	mov	x2, x22
	bl	_DRM_DEBUG_KMS
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x19, x22, lsl #2]
	cbnz	w28, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s WM%d latency not provided\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s WM%d latency %u (%u.%u usec)\n"

	.no_dead_strip	_intel_print_wm_latency
.subsections_via_symbols
