	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_fmt
_check_fmt:                             ## @check_fmt
	.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	%rbx
	subq	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_R_MAGIC_DESC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$37, %esi
	callq	_strchr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_R_REGEX_EXTENDED@GOTPCREL(%rip), %rax
	movq	_R_REGEX_NOSUB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-548(%rbp), %rdi
	callq	_r_regex_comp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	-548(%rbp), %rsi
	leaq	-544(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rdx
	movl	$511, %ecx                      ## imm = 0x1FF
	callq	_r_regex_error
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_file_magerror
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %esi
	leaq	-548(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_r_regex_exec
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_r_regex_fini
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R_MAGIC_DESC,4,2               ## @R_MAGIC_DESC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%[-0-9\\.]*s"

	.comm	_R_REGEX_EXTENDED,4,2           ## @R_REGEX_EXTENDED
	.comm	_R_REGEX_NOSUB,4,2              ## @R_REGEX_NOSUB
L_.str.1:                               ## @.str.1
	.asciz	"regex error %d, (%s)"

	.no_dead_strip	_check_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_fmt
_check_fmt:                             ; @check_fmt
	.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
	sub	sp, sp, #528
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _R_MAGIC_DESC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _R_MAGIC_DESC@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #37
	bl	_strchr
	cbz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _R_REGEX_EXTENDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_REGEX_EXTENDED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _R_REGEX_NOSUB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R_REGEX_NOSUB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #4
	bl	_r_regex_comp
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	add	x1, sp, #4
	add	x2, sp, #8
	mov	w3, #511
	bl	_r_regex_error
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_file_magerror
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	ldr	w1, [x21]
	add	x0, sp, #4
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_r_regex_exec
	mov	x19, x0
	add	x0, sp, #4
	bl	_r_regex_fini
	cmp	w19, #0
	cset	w0, eq
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	add	sp, sp, #528
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_R_MAGIC_DESC,4,2               ; @R_MAGIC_DESC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%[-0-9\\.]*s"

	.comm	_R_REGEX_EXTENDED,4,2           ; @R_REGEX_EXTENDED
	.comm	_R_REGEX_NOSUB,4,2              ; @R_REGEX_NOSUB
l_.str.1:                               ; @.str.1
	.asciz	"regex error %d, (%s)"

	.no_dead_strip	_check_fmt
.subsections_via_symbols
