	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_count
_fd_count:                              ## @fd_count
	.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	_MAXBDDEV@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	movq	_V86_FLAGS@GOTPCREL(%rip), %r15
	movq	_v86@GOTPCREL(%rip), %r12
	movabsq	$23089744183315, %r13           ## imm = 0x150000000013
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_bd_reset_disk
	movl	(%r15), %eax
	movl	%eax, 16(%r12)
	movq	%r13, (%r12)
	movl	%ebx, 8(%r12)
	xorl	%eax, %eax
	callq	_v86int
	movl	12(%r12), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$3, 5(%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXBDDEV,4,2                   ## @MAXBDDEV
	.comm	_V86_FLAGS,4,2                  ## @V86_FLAGS
	.comm	_v86,20,2                       ## @v86
	.no_dead_strip	_fd_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fd_count
lCPI0_0:
	.long	19                              ; 0x13
	.long	5376                            ; 0x1500
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fd_count:                              ; @fd_count
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x20, _MAXBDDEV@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAXBDDEV@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w19, #0
Lloh2:
	adrp	x21, _V86_FLAGS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _V86_FLAGS@GOTPAGEOFF]
Lloh4:
	adrp	x22, _v86@GOTPAGE
Lloh5:
	ldr	x22, [x22, _v86@GOTPAGEOFF]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bd_reset_disk
	ldr	w8, [x21]
	str	w8, [x22, #16]
	str	d8, [x22]
	str	w19, [x22, #8]
	bl	_v86int
	ldr	w0, [x22, #12]
	bl	_V86_CY
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22, #5]
	tst	w8, #0x3
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXBDDEV,4,2                   ; @MAXBDDEV
	.comm	_V86_FLAGS,4,2                  ; @V86_FLAGS
	.comm	_v86,20,2                       ; @v86
	.no_dead_strip	_fd_count
.subsections_via_symbols
