	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function figurefiletype
_figurefiletype:                        ## @figurefiletype
	.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	%rdi, %rbx
	movl	$0, 8(%rdi)
	movq	$0, (%rdi)
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_43
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_getc
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_getc
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_getc
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_getc
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_fclose
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.2:
	movl	%r15d, %eax
	orl	%r12d, %eax
	orl	%r14d, %eax
	je	LBB0_15
LBB0_3:
	cmpl	$79, %r12d
	jne	LBB0_7
## %bb.4:
	cmpl	$84, %ebx
	jne	LBB0_7
## %bb.5:
	cmpl	$84, %r15d
	jne	LBB0_7
## %bb.6:
	cmpl	$79, %r14d
	je	LBB0_15
LBB0_7:
	cmpl	$116, %r12d
	jne	LBB0_11
## %bb.8:
	cmpl	$114, %ebx
	jne	LBB0_11
## %bb.9:
	cmpl	$117, %r15d
	jne	LBB0_11
## %bb.10:
	cmpl	$101, %r14d
	je	LBB0_15
LBB0_11:
	cmpl	$116, %r12d
	jne	LBB0_16
## %bb.12:
	cmpl	$116, %ebx
	jne	LBB0_16
## %bb.13:
	cmpl	$99, %r15d
	jne	LBB0_16
## %bb.14:
	cmpl	$102, %r14d
	je	LBB0_15
LBB0_16:
	cmpl	$128, %r12d
	jne	LBB0_18
## %bb.17:
	cmpl	$1, %ebx
	jne	LBB0_18
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_45
LBB0_43:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
LBB0_44:
	callq	_fprintf
	movl	$1, (%rbx)
LBB0_45:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	cmpl	$37, %r12d
	jne	LBB0_24
## %bb.19:
	cmpl	$33, %ebx
	jne	LBB0_24
## %bb.20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:
	movl	$1, 8(%rbx)
	jmp	LBB0_45
LBB0_24:
	cmpl	$1, %r12d
	jne	LBB0_27
## %bb.25:
	testl	%ebx, %ebx
	jne	LBB0_27
## %bb.26:
	cmpl	$4, %r15d
	je	LBB0_15
LBB0_27:
	cmpl	$83, %r12d
	jne	LBB0_32
## %bb.28:
	cmpl	$84, %ebx
	jne	LBB0_32
## %bb.29:
	cmpl	$65, %r15d
	jne	LBB0_32
## %bb.30:
	cmpl	$82, %r14d
	jne	LBB0_32
## %bb.31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
	jmp	LBB0_45
LBB0_32:
	cmpl	$80, %r12d
	jne	LBB0_36
## %bb.33:
	cmpl	$70, %ebx
	jne	LBB0_36
## %bb.34:
	cmpl	$82, %r15d
	jne	LBB0_36
## %bb.35:
	cmpl	$48, %r14d
	je	LBB0_15
LBB0_36:
	cmpl	$1, %r12d
	jne	LBB0_40
## %bb.37:
	cmpl	$102, %ebx
	jne	LBB0_40
## %bb.38:
	cmpl	$99, %r15d
	jne	LBB0_40
## %bb.39:
	cmpl	$112, %r14d
	je	LBB0_15
LBB0_40:
	cmpl	$77, %r12d
	jne	LBB0_42
## %bb.41:
	cmpl	$90, %ebx
	je	LBB0_15
LBB0_42:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_44
LBB0_23:
	movl	$1, 4(%rbx)
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	".pfa"

L_.str.2:                               ## @.str.2
	.asciz	".PFA"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Can't recognize file type of `%s', assuming binary\n"

L_.str.4:                               ## @.str.4
	.asciz	"Can't open `%s' for typing the file.\n"

	.no_dead_strip	_figurefiletype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function figurefiletype
_figurefiletype:                        ; @figurefiletype
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	str	wzr, [x0, #8]
	str	xzr, [x0]
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_21
; %bb.1:
	mov	x24, x0
	bl	_getc
	mov	x20, x0
	mov	x0, x24
	bl	_getc
	mov	x21, x0
	mov	x0, x24
	bl	_getc
	mov	x22, x0
	mov	x0, x24
	bl	_getc
	mov	x23, x0
	mov	x0, x24
	bl	_fclose
	orr	w8, w22, w20
	orr	w8, w8, w23
	cmp	w21, #1
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_23
; %bb.2:
	cmp	w20, #79
	b.ne	LBB0_6
; %bb.3:
	cmp	w21, #84
	b.ne	LBB0_6
; %bb.4:
	cmp	w22, #84
	b.ne	LBB0_6
; %bb.5:
	cmp	w23, #79
	b.eq	LBB0_23
LBB0_6:
	cmp	w20, #116
	b.ne	LBB0_10
; %bb.7:
	cmp	w21, #114
	b.ne	LBB0_10
; %bb.8:
	cmp	w22, #117
	b.ne	LBB0_10
; %bb.9:
	cmp	w23, #101
	b.eq	LBB0_23
LBB0_10:
	cmp	w20, #116
	b.ne	LBB0_14
; %bb.11:
	cmp	w21, #116
	b.ne	LBB0_14
; %bb.12:
	cmp	w22, #99
	b.ne	LBB0_14
; %bb.13:
	cmp	w23, #102
	b.eq	LBB0_23
LBB0_14:
	cmp	w20, #128
	b.ne	LBB0_16
; %bb.15:
	cmp	w21, #1
	b.eq	LBB0_23
LBB0_16:
	cmp	w20, #37
	b.ne	LBB0_25
; %bb.17:
	cmp	w21, #33
	b.ne	LBB0_25
; %bb.18:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_32
; %bb.19:
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_32
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_24
LBB0_21:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_22:
	bl	_fprintf
LBB0_23:
	mov	w8, #1
	str	w8, [x19]
LBB0_24:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_25:
	cmp	w20, #1
	b.ne	LBB0_28
; %bb.26:
	cbnz	w21, LBB0_28
; %bb.27:
	cmp	w22, #4
	b.eq	LBB0_23
LBB0_28:
	cmp	w20, #83
	b.ne	LBB0_33
; %bb.29:
	cmp	w21, #84
	b.ne	LBB0_33
; %bb.30:
	cmp	w22, #65
	b.ne	LBB0_33
; %bb.31:
	cmp	w23, #82
	b.ne	LBB0_33
LBB0_32:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_24
LBB0_33:
	cmp	w20, #80
	b.ne	LBB0_37
; %bb.34:
	cmp	w21, #70
	b.ne	LBB0_37
; %bb.35:
	cmp	w22, #82
	b.ne	LBB0_37
; %bb.36:
	cmp	w23, #48
	b.eq	LBB0_23
LBB0_37:
	cmp	w20, #1
	b.ne	LBB0_41
; %bb.38:
	cmp	w21, #102
	b.ne	LBB0_41
; %bb.39:
	cmp	w22, #99
	b.ne	LBB0_41
; %bb.40:
	cmp	w23, #112
	b.eq	LBB0_23
LBB0_41:
	cmp	w20, #77
	b.ne	LBB0_43
; %bb.42:
	cmp	w21, #90
	b.eq	LBB0_23
LBB0_43:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	".pfa"

l_.str.2:                               ; @.str.2
	.asciz	".PFA"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Can't recognize file type of `%s', assuming binary\n"

l_.str.4:                               ; @.str.4
	.asciz	"Can't open `%s' for typing the file.\n"

	.no_dead_strip	_figurefiletype
.subsections_via_symbols
