	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fstyp_ext2fs                   ## -- Begin function fstyp_ext2fs
	.p2align	4, 0x90
_fstyp_ext2fs:                          ## @fstyp_ext2fs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_EXT2FS_SB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_read_buf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_EXT2_SUPER_MAGIC@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_EXT2_DYNAMIC_REV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	movb	$0, 7(%rax)
	xorl	%esi, %esi
	cmpb	$47, (%rax)
	sete	%sil
	addq	%rax, %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_strlcpy
	xorl	%r12d, %r12d
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_1:
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT2FS_SB_OFFSET,4,2           ## @EXT2FS_SB_OFFSET
	.comm	_EXT2_SUPER_MAGIC,8,3           ## @EXT2_SUPER_MAGIC
	.comm	_EXT2_DYNAMIC_REV,8,3           ## @EXT2_DYNAMIC_REV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fstyp_ext2fs                   ; -- Begin function fstyp_ext2fs
	.p2align	2
_fstyp_ext2fs:                          ; @fstyp_ext2fs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _EXT2FS_SB_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT2FS_SB_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #512
	bl	_read_buf
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _EXT2_SUPER_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXT2_SUPER_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _EXT2_DYNAMIC_REV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXT2_DYNAMIC_REV@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	strb	wzr, [x8, #7]
	ldrb	w9, [x8]
	cmp	w9, #47
	cinc	x1, x8, eq
	mov	x0, x21
	mov	x2, x20
	bl	_strlcpy
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	mov	w20, #1
LBB0_5:
	mov	x0, x19
	bl	_free
	b	LBB0_7
LBB0_6:
	mov	w20, #1
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT2FS_SB_OFFSET,4,2           ; @EXT2FS_SB_OFFSET
	.comm	_EXT2_SUPER_MAGIC,8,3           ; @EXT2_SUPER_MAGIC
	.comm	_EXT2_DYNAMIC_REV,8,3           ; @EXT2_DYNAMIC_REV
.subsections_via_symbols
