	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_latency_show
_wm_latency_show:                       ## @wm_latency_show
	.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	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	movl	$3, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_IS_G4X
	movl	$3, %ebx
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_drm_modeset_lock_all
LBB0_6:
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %r15d
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jg	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%r15d, %r15d
	leal	(%r15,%r15,4), %r9d
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12,%rbx,4), %ecx
	movl	%r9d, %r8d
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rax, %r8
	shrq	$35, %r8
	leal	(%r8,%r8), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_seq_printf
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_7
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	leal	(%r15,%r15,4), %r9d
	cmovel	%r15d, %r9d
	jmp	LBB0_13
LBB0_4:
	movq	%r14, %rdi
	callq	_ilk_wm_max_level
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_drm_modeset_lock_all
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.5:
	incl	%ebx
	jmp	LBB0_6
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_modeset_unlock_all         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WM%d %u (%u.%u usec)\n"

	.no_dead_strip	_wm_latency_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm_latency_show
_wm_latency_show:                       ; @wm_latency_show
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_2
LBB0_1:
	mov	w23, #3
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_13
; %bb.3:
	mov	w23, #1
LBB0_4:
	mov	x0, x20
	bl	_drm_modeset_lock_all
LBB0_5:
	mov	x22, #0
	mov	w24, w23
	mov	w25, #52429
	movk	w25, #52428, lsl #16
	mov	w26, #10
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x19, x22, lsl #2]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #8
	b.gt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_IS_G4X
	cbz	x0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w27, w27, lsl #2
	lsl	w8, w8, #1
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x19, x22, lsl #2]
	umull	x9, w8, w25
	lsr	x4, x9, #35
	msub	w5, w4, w26, w8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_seq_printf
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_6
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w27, w27, lsl #2
	cmp	x22, #0
	csel	w8, w27, w8, eq
	b	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_IS_G4X
	cbnz	x0, LBB0_1
; %bb.14:
	mov	x0, x20
	bl	_ilk_wm_max_level
	mov	x22, x0
	mov	x0, x20
	bl	_drm_modeset_lock_all
	tbnz	w22, #31, LBB0_16
; %bb.15:
	add	w23, w22, #1
	b	LBB0_5
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_drm_modeset_unlock_all
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WM%d %u (%u.%u usec)\n"

	.no_dead_strip	_wm_latency_show
.subsections_via_symbols
