	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_bufs_info                  ## -- Begin function drm_bufs_info
	.p2align	4, 0x90
_drm_bufs_info:                         ## @drm_bufs_info
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	_DRM_MAX_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	$-1, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	incq	%r15
	addq	$32, %r13
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdx
	movq	16(%rdx,%r13), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdx,%r13), %r14d
	movzbl	4(%rdx,%r13), %ecx
	shll	%cl, %r14d
	movl	24(%rdx,%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	(%rdx,%r13), %rdi
	addq	$8, %rdi
	callq	_atomic_read
	movq	16(%rbx), %rcx
	movl	(%rcx,%r13), %r10d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r14d, %ecx
	leal	1023(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$10, %ebx
	leal	1(%r15), %edx
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r14
	pushq	%r10
	callq	_seq_printf
	addq	$32, %rsp
	movq	_DRM_MAX_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.8:
	leaq	L_.str.2(%rip), %r15
	leaq	L_.str.3(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_seq_printf
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %eax
	andl	$31, %eax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_seq_printf
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_seq_printf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	movq	%rbx, %rdi
LBB0_14:
	callq	_mutex_unlock
	xorl	%eax, %eax
	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	" o     size count  free\t segs pages    kB\n\n"

	.comm	_DRM_MAX_ORDER,4,2              ## @DRM_MAX_ORDER
L_.str.1:                               ## @.str.1
	.asciz	"%2d %8d %5d %5d %5d %5d %5ld\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	" %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_bufs_info                  ; -- Begin function drm_bufs_info
	.p2align	2
_drm_bufs_info:                         ; @drm_bufs_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_13
; %bb.1:
	str	x19, [sp, #56]                  ; 8-byte Folded Spill
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
Lloh2:
	adrp	x22, _DRM_MAX_ORDER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DRM_MAX_ORDER@GOTPAGEOFF]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_6
; %bb.2:
	mov	x24, #0
	mov	x25, #-1
Lloh4:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	x24, x24, #32
	cmp	x25, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #16]
	add	x9, x9, x24
	ldr	x27, [x9, #16]
	cbz	x27, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w10, [x9]
	lsl	w28, w8, w10
	add	x0, x9, #8
	ldr	w19, [x9, #24]
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23, #16]
	ldr	w9, [x26]
	mul	w9, w9, w28
	add	w10, w9, #1023
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #10
	add	x10, x25, #1
	ldr	w8, [x8, x24]
	stp	x8, x28, [sp, #32]
	stp	x27, x0, [sp, #16]
	stp	x10, x19, [sp]
	str	x9, [sp, #48]
	mov	x0, x20
	mov	x1, x21
	bl	_seq_printf
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x24, #0
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh12:
	adrp	x22, l_.str.3@PAGE
Lloh13:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_seq_printf
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x24, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	and	x8, x24, #0x1f
	cbnz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_seq_printf
	b	LBB0_8
LBB0_12:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	b	LBB0_14
LBB0_13:
	mov	x0, x19
LBB0_14:
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" o     size count  free\t segs pages    kB\n\n"

	.comm	_DRM_MAX_ORDER,4,2              ; @DRM_MAX_ORDER
l_.str.1:                               ; @.str.1
	.asciz	"%2d %8d %5d %5d %5d %5d %5ld\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	" %d"

.subsections_via_symbols
