	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scandrives
_scandrives:                            ## @scandrives
	.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	_DP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_current_drive@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_N_DRIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r12d
	xorl	%r14d, %r14d
	movq	_UDRS@GOTPCREL(%rip), %rsi
	movq	_UDP@GOTPCREL(%rip), %rdi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r14), %eax
	incl	%r14d
	cltd
	idivl	%ecx
	movq	(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %r13d
	movl	%edx, %edi
	callq	_set_fdc
	movq	_fdc@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_UNIT
	movq	%r12, %rbx
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_UNIT
	movl	$16, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%r12d, %edx
	movq	%rbx, %r12
	movl	%r15d, %edi
	movq	_N_DRIVE@GOTPCREL(%rip), %r15
	movl	$-4, %esi
	callq	_set_dor
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_UNIT
	movq	_UDP@GOTPCREL(%rip), %rdi
	movq	_UDRS@GOTPCREL(%rip), %rsi
	movl	%eax, %ecx
	shrl	%cl, %ebx
	testb	$16, %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_fdc@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_UNIT
	movl	$16, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	notl	%esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_set_dor
	movq	_UDP@GOTPCREL(%rip), %rdi
	movq	_UDRS@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_fdc                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP,8,3                         ## @DP
	.comm	_current_drive,4,2              ## @current_drive
	.comm	_N_DRIVE,4,2                    ## @N_DRIVE
	.comm	_UDRS,8,3                       ## @UDRS
	.comm	_UDP,8,3                        ## @UDP
	.comm	_fdc,4,2                        ## @fdc
	.no_dead_strip	_scandrives
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scandrives
_scandrives:                            ; @scandrives
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, _DP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh3:
	adrp	x8, _current_drive@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_drive@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x23, _N_DRIVE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _N_DRIVE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w24, #0
Lloh8:
	adrp	x25, _UDRS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _UDRS@GOTPAGEOFF]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w26, w9, #1
Lloh10:
	adrp	x27, _UDP@GOTPAGE
Lloh11:
	ldr	x27, [x27, _UDP@GOTPAGEOFF]
Lloh12:
	adrp	x28, _fdc@GOTPAGE
Lloh13:
	ldr	x28, [x28, _fdc@GOTPAGEOFF]
	mov	w19, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x27]
	ldr	x9, [x9]
	cbnz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w26, w24
	sdiv	w10, w9, w8
	msub	w20, w10, w8, w9
	mov	x0, x20
	bl	_set_fdc
	ldr	w21, [x28]
	mov	x0, x20
	bl	_UNIT
	mov	x22, x0
	mov	x0, x20
	bl	_UNIT
	lsl	w8, w19, w0
	orr	w2, w8, w22
	mov	x0, x21
	mov	w1, #-4
	bl	_set_dor
	mov	x21, x0
	mov	x0, x20
	bl	_UNIT
	lsr	w8, w21, w0
	tbnz	w8, #4, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [x28]
	mov	x0, x20
	bl	_UNIT
	lsl	w8, w19, w0
	mvn	w1, w8
	mov	x0, x21
	mov	w2, #0
	bl	_set_dor
	b	LBB0_4
LBB0_9:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_set_fdc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DP,8,3                         ; @DP
	.comm	_current_drive,4,2              ; @current_drive
	.comm	_N_DRIVE,4,2                    ; @N_DRIVE
	.comm	_UDRS,8,3                       ; @UDRS
	.comm	_UDP,8,3                        ; @UDP
	.comm	_fdc,4,2                        ; @fdc
	.no_dead_strip	_scandrives
.subsections_via_symbols
