	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_smp_dump                  ## -- Begin function mdp5_smp_dump
	.p2align	4, 0x90
_mdp5_smp_dump:                         ## @mdp5_smp_dump
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_get_kms
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_drm_printf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_drm_printf
	xorl	%eax, %eax
	callq	_drm_can_sleep
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_lock
LBB0_2:
	movq	%r14, %rdi
	callq	_mdp5_get_existing_global_state
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	jle	LBB0_11
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	(%rax), %rdx
	movq	(%rcx,%rdx,8), %r13
	movl	8(%rax), %r14d
	movl	%r14d, %edi
	callq	_pipe2nclients
	testl	%eax, %eax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %r9
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_drm_printf
	addl	%r12d, %ebx
	incl	%r15d
	movl	%r14d, %edi
	callq	_pipe2nclients
	cmpl	%eax, %r15d
	jge	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_pipe2client
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_bitmap_weight
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_pipe2name
	testq	%r13, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r9d, %r9d
	jmp	LBB0_9
LBB0_11:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_drm_printf
	movl	(%r12), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	%ebx, %esi
	callq	_bitmap_weight
	subl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_drm_printf
	xorl	%eax, %eax
	callq	_drm_can_sleep
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_modeset_unlock             ## TAILCALL
LBB0_12:
	addq	$40, %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	"name\tinuse\tplane\n"

L_.str.1:                               ## @.str.1
	.asciz	"----\t-----\t-----\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s:%d\t%d\t%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"TOTAL:\t%d\t(of %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"AVAIL:\t%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_smp_dump                  ; -- Begin function mdp5_smp_dump
	.p2align	2
_mdp5_smp_dump:                         ; @mdp5_smp_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x21, x0
	bl	_get_kms
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_drm_printf
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_drm_printf
	bl	_drm_can_sleep
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #4
	mov	x1, #0
	bl	_drm_modeset_lock
LBB0_2:
	mov	x0, x19
	bl	_mdp5_get_existing_global_state
	mov	x22, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x28, #0
	mov	w27, #0
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	ldrsw	x8, [x19]
	cmp	x28, x8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x22, #16]
	ldr	x10, [x8]
	ldr	x19, [x9, x10, lsl #3]
	ldr	w24, [x8, #8]
	mov	x0, x24
	bl	_pipe2nclients
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	stp	x26, x8, [sp, #16]
	stp	x0, x25, [sp]
	mov	x0, x20
	mov	x1, x23
	bl	_drm_printf
	add	w27, w26, w27
	add	w25, w25, #1
	mov	x0, x24
	bl	_pipe2nclients
	cmp	w25, w0
	b.ge	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x25
	bl	_pipe2client
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x0, lsl #3]
	ldr	w1, [x21]
	bl	_bitmap_weight
	mov	x26, x0
	mov	x0, x24
	bl	_pipe2name
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	x19, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, #0
	b	LBB0_8
LBB0_11:
	mov	w27, #0
LBB0_12:
	ldr	w8, [x21]
	stp	x27, x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_drm_printf
	ldr	w21, [x21]
	ldr	x0, [x22]
	mov	x1, x21
	bl	_bitmap_weight
	sub	w8, w21, w0
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_drm_printf
	bl	_drm_can_sleep
	cbz	x0, LBB0_14
; %bb.13:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_drm_modeset_unlock
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name\tinuse\tplane\n"

l_.str.1:                               ; @.str.1
	.asciz	"----\t-----\t-----\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s:%d\t%d\t%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"TOTAL:\t%d\t(of %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"AVAIL:\t%d\n"

.subsections_via_symbols
