	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_format
_check_format:                          ## @check_format
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rdx
	leaq	1(%rdx), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$37, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	jmp	LBB0_1
LBB0_17:
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_4:
	movq	_file_nformats@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_file_nnames@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpq	(%rax), %rcx
	jne	LBB0_18
## %bb.5:
	movq	8(%r12), %rax
	cmpq	%rcx, %rax
	jge	LBB0_6
## %bb.7:
	movq	_magic_file_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	_FILE_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_10
## %bb.8:
	movq	_magic_file_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_file_magwarn
	jmp	LBB0_18
LBB0_10:
	movq	%rbx, %rdi
	callq	_check_format_type
	cmpl	$-1, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$37, %al
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	jmp	LBB0_13
LBB0_11:
	movzbl	(%rbx), %eax
	testb	%al, %al
	movl	$63, %ecx
	cmovnel	%eax, %ecx
	movsbl	%cl, %edx
	movq	_magic_file_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %r8
	movq	8(%r12), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_file_magwarn
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_15:
	movq	_magic_file_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movq	(%rax,%rdx,8), %rdx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_file_magwarn
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_file_nformats,8,3              ## @file_nformats
	.comm	_file_nnames,8,3                ## @file_nnames
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error inconsistency between m->type and format strings"

	.comm	_magic_file_formats,8,3         ## @magic_file_formats
	.comm	_FILE_FMT_NONE,8,3              ## @FILE_FMT_NONE
L_.str.1:                               ## @.str.1
	.asciz	"No format string for `%s' with description `%s'"

	.comm	_magic_file_names,8,3           ## @magic_file_names
L_.str.2:                               ## @.str.2
	.asciz	"Printf format `%c' is not valid for type `%s' in description `%s'"

L_.str.3:                               ## @.str.3
	.asciz	"Too many format strings (should have at most one) for `%s' with description `%s'"

	.no_dead_strip	_check_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_format
_check_format:                          ; @check_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	ldr	x8, [x1]
	mov	x22, x8
	ldrb	w9, [x22]
	cbz	w9, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #37
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #1
	ldrb	w9, [x22]
	cbnz	w9, LBB0_1
LBB0_3:
	mov	w0, #1
	b	LBB0_11
LBB0_4:
Lloh0:
	adrp	x9, _file_nformats@GOTPAGE
Lloh1:
	ldr	x9, [x9, _file_nformats@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _file_nnames@GOTPAGE
Lloh4:
	ldr	x9, [x9, _file_nnames@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	x9, [x20, #8]
	cmp	x9, x10
	b.ge	LBB0_8
; %bb.6:
Lloh6:
	adrp	x10, _magic_file_formats@GOTPAGE
Lloh7:
	ldr	x10, [x10, _magic_file_formats@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x1, [x10, x9, lsl #3]
Lloh9:
	adrp	x10, _FILE_FMT_NONE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FILE_FMT_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x1, x10
	b.ne	LBB0_12
; %bb.7:
Lloh12:
	adrp	x10, _magic_file_names@GOTPAGE
Lloh13:
	ldr	x10, [x10, _magic_file_names@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x9, [x10, x9, lsl #3]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_file_magwarn
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	add	x21, x22, #1
	mov	x0, x21
	bl	_check_format_type
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.13:
	mov	w8, #1
	ldrb	w9, [x22, x8]
	cbz	w9, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cmp	w9, #37
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x22, x8]
	cbnz	w9, LBB0_14
LBB0_16:
	mov	w0, #0
	b	LBB0_11
LBB0_17:
	ldrb	w8, [x21]
	mov	w9, #63
Lloh19:
	adrp	x10, _magic_file_names@GOTPAGE
Lloh20:
	ldr	x10, [x10, _magic_file_names@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w9, w8, eq
Lloh21:
	ldr	x9, [x10]
	ldp	x11, x10, [x20]
	ldr	x9, [x9, x10, lsl #3]
	stp	x9, x11, [sp, #8]
	sxtb	x8, w8
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_18:
Lloh24:
	adrp	x8, _magic_file_names@GOTPAGE
Lloh25:
	ldr	x8, [x8, _magic_file_names@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldp	x10, x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	stp	x8, x10, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_file_nformats,8,3              ; @file_nformats
	.comm	_file_nnames,8,3                ; @file_nnames
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error inconsistency between m->type and format strings"

	.comm	_magic_file_formats,8,3         ; @magic_file_formats
	.comm	_FILE_FMT_NONE,8,3              ; @FILE_FMT_NONE
l_.str.1:                               ; @.str.1
	.asciz	"No format string for `%s' with description `%s'"

	.comm	_magic_file_names,8,3           ; @magic_file_names
l_.str.2:                               ; @.str.2
	.asciz	"Printf format `%c' is not valid for type `%s' in description `%s'"

l_.str.3:                               ; @.str.3
	.asciz	"Too many format strings (should have at most one) for `%s' with description `%s'"

	.no_dead_strip	_check_format
.subsections_via_symbols
