	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function userdisk_print
_userdisk_print:                        ## @userdisk_print
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_userdisk_maxunit@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.1:
	movl	%edi, %ebx
	movq	_userboot_disk@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	leaq	L_.str.1(%rip), %rdi
	callq	_pager_output
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r14)
	movl	$0, %r15d
	jle	LBB0_10
## %bb.3:
	movl	%ebx, -132(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	leaq	-128(%rbp), %r12
	leaq	-160(%rbp), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$80, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r12, %rdi
	callq	_pager_output
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_userboot_disk@GOTPCREL(%rip), %rax
	movq	%rax, -144(%rbp)
	movl	%ebx, -152(%rbp)
	movq	_D_SLICENONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -156(%rbp)
	movq	_D_PARTNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movq	_ud_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_disk_open
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$80, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-132(%rbp), %edx                ## 4-byte Reload
	callq	_disk_print
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_disk_close
	testl	%r15d, %r15d
	je	LBB0_8
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %r15d
	jmp	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_userdisk_maxunit,4,2           ## @userdisk_maxunit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s devices:"

	.comm	_userboot_disk,8,3              ## @userboot_disk
L_.str.1:                               ## @.str.1
	.asciz	"\n"

L_.str.2:                               ## @.str.2
	.asciz	"    disk%d:   Guest drive image\n"

	.comm	_D_SLICENONE,4,2                ## @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ## @D_PARTNONE
	.comm	_ud_info,8,3                    ## @ud_info
L_.str.3:                               ## @.str.3
	.asciz	"    disk%d"

	.no_dead_strip	_userdisk_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function userdisk_print
_userdisk_print:                        ; @userdisk_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _userdisk_maxunit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _userdisk_maxunit@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x25, _userboot_disk@GOTPAGE
Lloh6:
	ldr	x25, [x25, _userboot_disk@GOTPAGEOFF]
	ldr	x1, [x25]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pager_output
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x26, #0
	mov	x20, #0
Lloh11:
	adrp	x21, l_.str.2@PAGE
Lloh12:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh13:
	adrp	x27, _D_SLICENONE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _D_SLICENONE@GOTPAGEOFF]
Lloh15:
	adrp	x28, _D_PARTNONE@GOTPAGE
Lloh16:
	ldr	x28, [x28, _D_PARTNONE@GOTPAGEOFF]
Lloh17:
	adrp	x22, _ud_info@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ud_info@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x24]
	add	x26, x26, #8
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #80
	mov	x2, x21
	mov	x3, x20
	bl	_snprintf
	add	x0, sp, #24
	bl	_pager_output
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x25, [sp, #16]
	ldr	w8, [x27]
	ldr	w9, [x28]
	stp	w8, w20, [sp, #4]
	str	w9, [sp]
	ldr	x8, [x22]
	add	x8, x8, x26
	ldp	w2, w1, [x8]
	mov	x0, sp
	bl	_disk_open
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	w1, #80
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_snprintf
	mov	x0, sp
	add	x1, sp, #24
	mov	x2, x19
	bl	_disk_print
	mov	x23, x0
	mov	x0, sp
	bl	_disk_close
	cbz	w23, LBB0_4
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x23
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	mov	x23, x0
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_userdisk_maxunit,4,2           ; @userdisk_maxunit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s devices:"

	.comm	_userboot_disk,8,3              ; @userboot_disk
l_.str.1:                               ; @.str.1
	.asciz	"\n"

l_.str.2:                               ; @.str.2
	.asciz	"    disk%d:   Guest drive image\n"

	.comm	_D_SLICENONE,4,2                ; @D_SLICENONE
	.comm	_D_PARTNONE,4,2                 ; @D_PARTNONE
	.comm	_ud_info,8,3                    ; @ud_info
l_.str.3:                               ; @.str.3
	.asciz	"    disk%d"

	.no_dead_strip	_userdisk_print
.subsections_via_symbols
