	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_valid_format
_next_valid_format:                     ## @next_valid_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DRS@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movslq	(%r9), %rsi
	xorl	%r8d, %r8d
	movl	$1, %eax
	cmpq	$7, %rsi
	jg	LBB0_7
## %bb.1:
	movq	_DP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	movq	_floppy_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	$8, %rsi
	jne	LBB0_2
## %bb.6:
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	movl	%esi, %r8d
LBB0_7:
	movl	%r8d, (%r9)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRS,8,3                        ## @DRS
	.comm	_DP,8,3                         ## @DP
	.comm	_floppy_type,8,3                ## @floppy_type
	.no_dead_strip	_next_valid_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_valid_format
_next_valid_format:                     ; @next_valid_format
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x8]
	cmp	w9, #7
	b.gt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x10, _DP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _floppy_type@GOTPAGE
Lloh7:
	ldr	x11, [x11, _floppy_type@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cbz	x12, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x11, x12, lsl #3]
	cbnz	x12, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, #8
	b.ne	LBB0_2
LBB0_5:
	mov	w9, #0
	mov	w0, #1
	str	w9, [x8]
	ret
LBB0_6:
	mov	w0, #0
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRS,8,3                        ; @DRS
	.comm	_DP,8,3                         ; @DP
	.comm	_floppy_type,8,3                ; @floppy_type
	.no_dead_strip	_next_valid_format
.subsections_via_symbols
