	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_dumpreqs
_debug_dumpreqs:                        ## @debug_dumpreqs
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -184(%rbp)
	movq	_is_mps@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_mps_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_snprintf
	leaq	-184(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	movl	%r15d, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-184(%rbp), %rdi
	movl	$0, %r15d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.2:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	leaq	-176(%rbp), %rdi
	leaq	-184(%rbp), %rdx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movq	-184(%rbp), %rsi
	testl	%eax, %eax
	je	LBB0_5
## %bb.12:
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	%r14d, %r15d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_5:
	movq	_MPS_FRAME_LEN@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rsi
	jb	LBB0_10
## %bb.6:
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r15d, %rax
	movq	(%r12), %rcx
	imulq	%rcx, %rax
	addq	%rax, %rbx
	movq	-184(%rbp), %rdx
	subq	%rax, %rdx
	movq	%rdx, -184(%rbp)
	xorl	%r15d, %r15d
	cmpq	%rcx, %rdx
	jb	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r15d
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_printf
	addq	$20, %rbx
	addq	$-20, -184(%rbp)
	movq	%rbx, %rdi
	callq	_find_sgl
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_print_sgl
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev.%s.%d.dump_reqs"

	.comm	_is_mps,8,3                     ## @is_mps
L_.str.1:                               ## @.str.1
	.asciz	"mps"

L_.str.2:                               ## @.str.2
	.asciz	"mpr"

	.comm	_mps_unit,4,2                   ## @mps_unit
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"len= %zd, error= %d errno= %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_MPS_FRAME_LEN,8,3              ## @MPS_FRAME_LEN
L_.str.4:                               ## @.str.4
	.asciz	"SMID= %d state= %#x numframes= %d desc.hi= %#08x desc.lo= %#08x\n"

	.no_dead_strip	_debug_dumpreqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_dumpreqs
_debug_dumpreqs:                        ; @debug_dumpreqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _is_mps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _is_mps@GOTPAGEOFF]
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str.2@PAGE
Lloh8:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh9:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x3, x10, x9, eq
Lloh10:
	adrp	x8, _mps_unit@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mps_unit@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	x1, [sp, #16]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	bl	_printf
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x23, _MPS_FRAME_LEN@GOTPAGE
Lloh24:
	ldr	x23, [x23, _MPS_FRAME_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x1, x8
	b.hs	LBB0_10
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x21
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_10:
Lloh28:
	adrp	x20, l_.str.4@PAGE
Lloh29:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w21, #0
	ldr	x8, [x23]
	mul	x9, x8, x22
	add	x19, x19, x9
	ldr	x10, [sp, #16]
	sub	x9, x10, x9
	cmp	x9, x8
	str	x9, [sp, #16]
	b.lo	LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	w3, w1, [x19]
	sxtw	x22, w3
	ldp	w2, w8, [x19, #8]
	ldr	w9, [x19, #16]
	stp	x8, x9, [sp]
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_printf
	add	x19, x19, #20
	ldr	x8, [sp, #16]
	sub	x8, x8, #20
	str	x8, [sp, #16]
	mov	x0, x19
	bl	_find_sgl
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_print_sgl
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev.%s.%d.dump_reqs"

	.comm	_is_mps,8,3                     ; @is_mps
l_.str.1:                               ; @.str.1
	.asciz	"mps"

l_.str.2:                               ; @.str.2
	.asciz	"mpr"

	.comm	_mps_unit,4,2                   ; @mps_unit
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"len= %zd, error= %d errno= %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_MPS_FRAME_LEN,8,3              ; @MPS_FRAME_LEN
l_.str.4:                               ; @.str.4
	.asciz	"SMID= %d state= %#x numframes= %d desc.hi= %#08x desc.lo= %#08x\n"

	.no_dead_strip	_debug_dumpreqs
.subsections_via_symbols
