	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function floppy_find
_floppy_find:                           ## @floppy_find
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	movl	%ecx, %eax
	andl	$3, %eax
	movq	_FD_MAX_UNITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
## %bb.1:
	sarl	$2, %ecx
	movq	_NUM_DISK_MINORS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	$0, (%rsi)
	movq	_unit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	popq	%rbp
	jmp	_get_disk                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_MAX_UNITS,4,2               ## @FD_MAX_UNITS
	.comm	_NUM_DISK_MINORS,4,2            ## @NUM_DISK_MINORS
	.comm	_unit,8,3                       ## @unit
	.no_dead_strip	_floppy_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function floppy_find
_floppy_find:                           ; @floppy_find
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	and	x8, x9, #0x3
Lloh0:
	adrp	x10, _FD_MAX_UNITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FD_MAX_UNITS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _NUM_DISK_MINORS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NUM_DISK_MINORS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w9, asr #2
	b.ge	LBB0_3
LBB0_2:
	mov	x0, #0
	ret
LBB0_3:
	str	wzr, [x1]
Lloh6:
	adrp	x9, _unit@GOTPAGE
Lloh7:
	ldr	x9, [x9, _unit@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
	b	_get_disk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_MAX_UNITS,4,2               ; @FD_MAX_UNITS
	.comm	_NUM_DISK_MINORS,4,2            ; @NUM_DISK_MINORS
	.comm	_unit,8,3                       ; @unit
	.no_dead_strip	_floppy_find
.subsections_via_symbols
