	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function formatof
_formatof:                              ## @formatof
	.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
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	cmpq	%r14, %rax
	jbe	LBB0_1
## %bb.2:
	cmpb	$0, (%rax)
	movq	_FORMAT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jne	LBB0_4
## %bb.3:
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movq	_FORMAT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
	movq	_format_names@GOTPCREL(%rip), %r15
	movq	_FORMAT_COUNT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_6
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	_FORMAT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_COUNT,8,3               ## @FORMAT_COUNT
	.comm	_format_names,8,3               ## @format_names
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pngstest: format name '%s' invalid\n"

	.no_dead_strip	_formatof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function formatof
_formatof:                              ; @formatof
	.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	x19, x0
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.ls	LBB0_3
; %bb.1:
	mov	x20, x0
	ldrb	w9, [x8]
Lloh0:
	adrp	x8, _FORMAT_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w9, #0
	ccmp	x0, x8, #2, eq
	b.lo	LBB0_8
; %bb.2:
	cbnz	x8, LBB0_4
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _FORMAT_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FORMAT_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_4:
	mov	x20, #0
Lloh6:
	adrp	x21, _format_names@GOTPAGE
Lloh7:
	ldr	x21, [x21, _format_names@GOTPAGEOFF]
Lloh8:
	adrp	x22, _FORMAT_COUNT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FORMAT_COUNT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [x22]
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_7:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
Lloh15:
	adrp	x8, _FORMAT_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FORMAT_COUNT@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_COUNT,8,3               ; @FORMAT_COUNT
	.comm	_format_names,8,3               ; @format_names
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pngstest: format name '%s' invalid\n"

	.no_dead_strip	_formatof
.subsections_via_symbols
