	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos
_dos:                                   ## @dos
	.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, %rbx
	cmpq	$0, (%rdi)
	movl	8(%rdi), %ecx
	jne	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rbx)
	je	LBB0_4
LBB0_3:
	movq	_dos_cylsecs@GOTPCREL(%rip), %r12
	movq	_dos_sectors@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ecx, %eax
	cltd
	idivl	(%r12)
	movl	%eax, %r14d
	movl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, 24(%rbx)
	movl	%ecx, %eax
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %r15d
	movl	%r14d, %edi
	callq	_DOSCYL
	movq	%rax, 56(%rbx)
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_DOSSECT
	movq	%rax, 48(%rbx)
	movl	8(%rbx), %eax
	movl	16(%rbx), %ecx
	addl	%eax, %ecx
	decl	%ecx
	movl	(%r13), %esi
	movl	%ecx, %eax
	cltd
	idivl	(%r12)
	movl	%eax, %r14d
	movl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, 28(%rbx)
	movl	%ecx, %eax
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %r15d
	movl	%r14d, %edi
	callq	_DOSCYL
	movq	%rax, 40(%rbx)
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_DOSSECT
	movq	%rax, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_mtpart@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$64, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mtpart,4,2                     ## @mtpart
	.comm	_dos_cylsecs,4,2                ## @dos_cylsecs
	.comm	_dos_sectors,4,2                ## @dos_sectors
	.no_dead_strip	_dos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos
_dos:                                   ; @dos
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x9, [x0]
	ldr	w8, [x0, #8]
	cmp	x9, #0
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w8, #0
LBB0_3:
Lloh0:
	adrp	x22, _dos_cylsecs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dos_cylsecs@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w20, w8, w9
	msub	w9, w20, w9, w8
Lloh2:
	adrp	x23, _dos_sectors@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dos_sectors@GOTPAGEOFF]
	ldr	w10, [x23]
	sdiv	w9, w9, w10
	str	w9, [x19, #24]
	sdiv	w9, w8, w10
	msub	w8, w9, w10, w8
	add	w21, w8, #1
	mov	x0, x20
	bl	_DOSCYL
	str	x0, [x19, #56]
	mov	x0, x21
	mov	x1, x20
	bl	_DOSSECT
	str	x0, [x19, #48]
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	add	w8, w8, w9
	sub	w8, w8, #1
	ldr	w9, [x22]
	sdiv	w20, w8, w9
	msub	w9, w20, w9, w8
	ldr	w10, [x23]
	sdiv	w9, w9, w10
	str	w9, [x19, #28]
	sdiv	w9, w8, w10
	msub	w8, w9, w10, w8
	add	w21, w8, #1
	mov	x0, x20
	bl	_DOSCYL
	str	x0, [x19, #40]
	mov	x0, x21
	mov	x1, x20
	bl	_DOSSECT
	str	x0, [x19, #32]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh4:
	adrp	x1, _mtpart@GOTPAGE
Lloh5:
	ldr	x1, [x1, _mtpart@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #64
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mtpart,4,2                     ; @mtpart
	.comm	_dos_cylsecs,4,2                ; @dos_cylsecs
	.comm	_dos_sectors,4,2                ; @dos_sectors
	.no_dead_strip	_dos
.subsections_via_symbols
