	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_openfile
_split_openfile:                        ## @split_openfile
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	32(%rdi), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_open
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_1
LBB0_7:
	movq	$0, 24(%r12)
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %ebx
	movq	_NTRIES@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_printf
	xorl	%eax, %eax
	callq	_getchar
	movl	$10, %edi
	callq	_putchar
	movq	8(%r12), %rax
	movq	32(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	(%r15), %esi
	callq	_open
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_2
	jmp	LBB0_7
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_NTRIES,4,2                     ## @NTRIES
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nInsert disk labelled %s and press any key..."

	.no_dead_strip	_split_openfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_openfile
_split_openfile:                        ; @split_openfile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x9, [x0, #8]
	ldr	w0, [x8, x9, lsl #2]
Lloh0:
	adrp	x21, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_open
	str	w0, [x19]
	tbnz	w0, #31, LBB0_3
LBB0_1:
	mov	w0, #0
	str	xzr, [x19, #24]
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w22, #-1
Lloh2:
	adrp	x23, _errno@GOTPAGE
Lloh3:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ENOENT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _NTRIES@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NTRIES@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	add	w22, w22, #1
	cmp	w22, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19, #8]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_printf
	bl	_getchar
	mov	w0, #10
	bl	_putchar
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x21]
	bl	_open
	str	w0, [x19]
	tbnz	w0, #31, LBB0_4
	b	LBB0_1
LBB0_8:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_NTRIES,4,2                     ; @NTRIES
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nInsert disk labelled %s and press any key..."

	.no_dead_strip	_split_openfile
.subsections_via_symbols
