	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_mount
_dos_mount:                             ## @dos_mount
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$48, %esi
	callq	_bzero
	movq	%r14, 40(%r15)
	movl	$1, %edi
	callq	_secbyt
	movl	%eax, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	40(%r15), %r12
	movl	$1, %edi
	callq	_secbyt
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_ioget
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_parsebs
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
	movq	_FATBLKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dos_read_fatblk
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	32(%r15), %rdi
	callq	_free
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_dot@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%r15)
	movq	16(%rax), %rax
	movq	%rax, 24(%r15)
	movq	8(%r15), %rax
	movb	$32, (%rax)
	cmpl	$32, (%r15)
	jne	LBB0_10
## %bb.9:
	movzbl	4(%r15), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	movzbl	5(%r15), %eax
	movl	%eax, 4(%rcx)
	movzbl	6(%r15), %eax
	movq	24(%r15), %rcx
	movl	%eax, (%rcx)
	movzbl	7(%r15), %eax
	movl	%eax, 4(%rcx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_FATBLKSZ,4,2                   ## @FATBLKSZ
	.comm	_dot,8,3                        ## @dot
	.no_dead_strip	_dos_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_mount
_dos_mount:                             ; @dos_mount
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w1, #48
	bl	_bzero
	str	x20, [x19, #40]
	mov	w0, #1
	bl	_secbyt
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x21, [x19, #40]
	mov	w0, #1
	bl	_secbyt
	mov	x3, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_ioget
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_parsebs
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_free
	b	LBB0_8
LBB0_4:
	mov	x0, x22
	bl	_free
Lloh0:
	adrp	x8, _FATBLKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FATBLKSZ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_dos_read_fatblk
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	x0, [x19, #32]
	bl	_free
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _dot@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dot@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	stur	q0, [x19, #8]
	str	x9, [x19, #24]
	ldr	x8, [x19, #8]
	mov	w9, #32
	strb	w9, [x8]
	ldr	w8, [x19]
	cmp	w8, #32
	b.ne	LBB0_11
; %bb.10:
	mov	w21, #0
	ldrb	w8, [x19, #4]
	ldp	x9, x10, [x19, #16]
	str	w8, [x9]
	ldrb	w8, [x19, #5]
	str	w8, [x9, #4]
	ldrb	w8, [x19, #6]
	str	w8, [x10]
	ldrb	w8, [x19, #7]
	str	w8, [x10, #4]
	b	LBB0_8
LBB0_11:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_FATBLKSZ,4,2                   ; @FATBLKSZ
	.comm	_dot,8,3                        ; @dot
	.no_dead_strip	_dos_mount
.subsections_via_symbols
