	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getfstype
_getfstype:                             ## @getfstype
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strncpy
	leaq	-44(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$4, -48(%rbp)
	movq	_DIOCGATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_close
	cmpl	$-1, %ebx
	je	LBB0_9
## %bb.3:
	movq	_ptype_map@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movl	$24, %ebx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_6
	jmp	LBB0_9
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %eax
	movq	(%r15), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %r14
LBB0_9:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open `%s'"

L_.str.1:                               ## @.str.1
	.asciz	"PART::type"

	.comm	_DIOCGATTR,4,2                  ## @DIOCGATTR
	.comm	_ptype_map,8,3                  ## @ptype_map
	.no_dead_strip	_getfstype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getfstype
_getfstype:                             ; @getfstype
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w20, #4
	mov	w2, #4
	bl	_strncpy
	mov	x8, sp
	orr	x0, x8, #0x4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w20, [sp]
Lloh7:
	adrp	x8, _DIOCGATTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIOCGATTR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	mov	x20, x0
	mov	x0, x19
	bl	_close
	cmn	w20, #1
	b.eq	LBB0_7
; %bb.3:
Lloh10:
	adrp	x19, _ptype_map@GOTPAGE
Lloh11:
	ldr	x19, [x19, _ptype_map@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_7
; %bb.4:
	mov	x20, #0
	mov	w21, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #4]
	bl	_strstr
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	ldr	x1, [x8, x21]
	add	x21, x21, #16
	cbnz	x1, LBB0_5
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	and	x8, x20, #0xffffffff
	ldr	x9, [x19]
	lsl	x8, x8, #4
	ldr	x0, [x9, x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open `%s'"

l_.str.1:                               ; @.str.1
	.asciz	"PART::type"

	.comm	_DIOCGATTR,4,2                  ; @DIOCGATTR
	.comm	_ptype_map,8,3                  ; @ptype_map
	.no_dead_strip	_getfstype
.subsections_via_symbols
