	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BupFormat                      ## -- Begin function BupFormat
	.p2align	4, 0x90
_BupFormat:                             ## @BupFormat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edi
	je	LBB0_11
## %bb.1:
	cmpl	$1, %edi
	je	LBB0_4
## %bb.2:
	testl	%edi, %edi
	jne	LBB0_12
## %bb.3:
	movq	_BupRam@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65536, %esi                    ## imm = 0x10000
	popq	%rbp
	jmp	_FormatBackupRam                ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_LOG                            ## TAILCALL
LBB0_4:
	movq	_CartridgeArea@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	andl	$240, %edx
	cmpl	$32, %edx
	jne	LBB0_12
## %bb.5:
	andl	$15, %ecx
	decl	%ecx
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.6:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movl	4(%rax), %edi
	movl	$1048576, %esi                  ## imm = 0x100000
	popq	%rbp
	jmp	_FormatBackupRam                ## TAILCALL
LBB0_12:
	popq	%rbp
	retq
LBB0_8:
	movl	4(%rax), %edi
	movl	$2097152, %esi                  ## imm = 0x200000
	popq	%rbp
	jmp	_FormatBackupRam                ## TAILCALL
LBB0_9:
	movl	4(%rax), %edi
	movl	$4194304, %esi                  ## imm = 0x400000
	popq	%rbp
	jmp	_FormatBackupRam                ## TAILCALL
LBB0_10:
	movl	4(%rax), %edi
	movl	$8388608, %esi                  ## imm = 0x800000
	popq	%rbp
	jmp	_FormatBackupRam                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_BupRam,4,2                     ## @BupRam
	.comm	_CartridgeArea,8,3              ## @CartridgeArea
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Formatting FDD not supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BupFormat                      ; -- Begin function BupFormat
	.p2align	2
_BupFormat:                             ; @BupFormat
	.cfi_startproc
; %bb.0:
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w0, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _BupRam@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BupRam@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #65536
	b	_FormatBackupRam
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	_LOG
LBB0_5:
Lloh5:
	adrp	x8, _CartridgeArea@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CartridgeArea@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w10, w9, #0xf0
	cmp	w10, #32
	b.ne	LBB0_9
; %bb.6:
	and	w9, w9, #0xf
	sub	w9, w9, #1
	cmp	w9, #3
	b.hi	LBB0_9
; %bb.7:
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	ldr	w0, [x8, #4]
	mov	w1, #1048576
	b	_FormatBackupRam
LBB0_9:
	ret
LBB0_10:
	ldr	w0, [x8, #4]
	mov	w1, #2097152
	b	_FormatBackupRam
LBB0_11:
	ldr	w0, [x8, #4]
	mov	w1, #4194304
	b	_FormatBackupRam
LBB0_12:
	ldr	w0, [x8, #4]
	mov	w1, #8388608
	b	_FormatBackupRam
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.comm	_BupRam,4,2                     ; @BupRam
	.comm	_CartridgeArea,8,3              ; @CartridgeArea
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Formatting FDD not supported\n"

.subsections_via_symbols
