	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_format_buffer
_png_format_buffer:                     ## @png_format_buffer
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	(%rdi), %eax
	movl	%eax, %r13d
	sarl	$24, %r13d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	shrl	$24, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r13d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 1(%r15)
	movq	(%rax), %rax
	andl	$15, %r13d
	movb	(%rax,%r13), %al
	movb	%al, 2(%r15)
	movq	_PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	movl	$3, %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %r14d
	movb	%r13b, (%r15,%r14)
	leaq	1(%r14), %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	sarl	$16, %r13d
	movzbl	%r13b, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15,%r12)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r13d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 2(%r14,%r15)
	movq	(%rax), %rax
	andl	$15, %r13d
	movb	(%rax,%r13), %al
	orl	$4, %ebx
	movb	%al, 3(%r14,%r15)
	movq	_PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	jmp	LBB0_6
LBB0_5:
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %r14d
	movb	%r13b, (%r15,%r14)
	leaq	1(%r14), %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	sarl	$8, %r13d
	movzbl	%r13b, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15,%r12)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r13d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 2(%r14,%r15)
	movq	(%rax), %rax
	andl	$15, %r13d
	movb	(%rax,%r13), %al
	addl	$4, %ebx
	movb	%al, 3(%r14,%r15)
	movq	_PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	jmp	LBB0_9
LBB0_8:
	movl	%r12d, %ebx
LBB0_9:
	movl	%ebx, %r14d
	movb	%r13b, (%r15,%r14)
	leaq	1(%r14), %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movzbl	%r13b, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15,%r12)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r13d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 2(%r14,%r15)
	movq	(%rax), %rax
	andl	$15, %r13d
	movb	(%rax,%r13), %al
	addl	$4, %ebx
	movb	%al, 3(%r14,%r15)
	movq	_PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	jmp	LBB0_12
LBB0_11:
	movl	%r12d, %ebx
LBB0_12:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %eax
	movb	%r13b, (%r15,%rax)
	leaq	1(%rax), %rcx
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movb	$58, (%r15,%rcx)
	addl	$3, %ebx
	movb	$32, 2(%rax,%r15)
	movq	_PNG_MAX_ERROR_TEXT@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_18
## %bb.15:
	movl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rcx), %edx
	testb	%dl, %dl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rcx
	movb	%dl, (%r15,%rbx)
	incq	%rbx
	movslq	(%rax), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jl	LBB0_16
	jmp	LBB0_18
LBB0_13:
	movl	%ecx, %ebx
LBB0_18:
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_LITERAL_LEFT_SQUARE_BRACKET,1,0 ## @PNG_LITERAL_LEFT_SQUARE_BRACKET
	.comm	_png_digit,8,3                  ## @png_digit
	.comm	_PNG_LITERAL_RIGHT_SQUARE_BRACKET,1,0 ## @PNG_LITERAL_RIGHT_SQUARE_BRACKET
	.comm	_PNG_MAX_ERROR_TEXT,4,2         ## @PNG_MAX_ERROR_TEXT
	.no_dead_strip	_png_format_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_format_buffer
_png_format_buffer:                     ; @png_format_buffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	ldr	w22, [x0]
	ubfx	x21, x22, #24, #8
	mov	x0, x21
	bl	_isnonalpha
Lloh0:
	adrp	x25, _PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PNG_LITERAL_LEFT_SQUARE_BRACKET@GOTPAGEOFF]
Lloh2:
	adrp	x24, _png_digit@GOTPAGE
Lloh3:
	ldr	x24, [x24, _png_digit@GOTPAGEOFF]
Lloh4:
	adrp	x23, _PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PNG_LITERAL_RIGHT_SQUARE_BRACKET@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	asr	w8, w22, #24
	mov	x9, x22
	ldrb	w10, [x25]
	strb	w10, [x19]
	ldr	x10, [x24]
	ubfx	x8, x8, #4, #4
	ldrb	w8, [x10, x8]
	strb	w8, [x19, #1]
	ldr	x8, [x24]
	ubfx	x9, x9, #24, #4
	ldrb	w8, [x8, x9]
	strb	w8, [x19, #2]
	ldrb	w8, [x23]
	strb	w8, [x19, #3]
	mov	w21, #4
	b	LBB0_3
LBB0_2:
	strb	w21, [x19]
	mov	w21, #1
LBB0_3:
	asr	w26, w22, #16
	and	w0, w26, #0xff
	bl	_isnonalpha
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x22
	ldrb	w9, [x25]
	mov	w10, w21
	add	x11, x19, x10
	strb	w9, [x11]
	ldr	x9, [x24]
	ubfx	x12, x26, #4, #4
	ldrb	w9, [x9, x12]
	orr	x10, x10, #0x2
	strb	w9, [x11, #1]
	ldr	x9, [x24]
	ubfx	x8, x8, #16, #4
	ldrb	w8, [x9, x8]
	add	w21, w21, #3
	strb	w8, [x19, x10]
	ldrb	w8, [x23]
	b	LBB0_6
LBB0_5:
	asr	w8, w22, #16
LBB0_6:
	mov	w9, w21
	strb	w8, [x19, x9]
	add	x26, x9, #1
	asr	w27, w22, #8
	and	w0, w27, #0xff
	bl	_isnonalpha
	cbz	x0, LBB0_8
; %bb.7:
	mov	x8, x22
	ldrb	w9, [x25]
	strb	w9, [x19, x26]
	ldr	x9, [x24]
	ubfx	x10, x27, #4, #4
	ldrb	w9, [x9, x10]
	add	x10, x19, w21, uxtw
	strb	w9, [x10, #2]
	ldr	x9, [x24]
	ubfx	x8, x8, #8, #4
	ldrb	w8, [x9, x8]
	add	w26, w21, #4
	strb	w8, [x10, #3]
	ldrb	w8, [x23]
	b	LBB0_9
LBB0_8:
	asr	w8, w22, #8
LBB0_9:
	mov	w9, w26
	strb	w8, [x19, x9]
	add	x21, x9, #1
	and	w0, w22, #0xff
	bl	_isnonalpha
	cbz	x0, LBB0_11
; %bb.10:
	ldrb	w8, [x25]
	strb	w8, [x19, x21]
	ldr	x8, [x24]
	ubfx	x9, x22, #4, #4
	ldrb	w8, [x8, x9]
	add	x9, x19, w26, uxtw
	strb	w8, [x9, #2]
	ldr	x8, [x24]
	and	x10, x22, #0xf
	ldrb	w8, [x8, x10]
	add	w21, w26, #4
	strb	w8, [x9, #3]
	ldrb	w22, [x23]
LBB0_11:
	mov	w9, w21
	strb	w22, [x19, x9]
	add	x8, x9, #1
	cbz	x20, LBB0_17
; %bb.12:
	add	x10, x9, x19
	mov	w11, #58
	strb	w11, [x19, x8]
	mov	w8, #32
	strb	w8, [x10, #2]
Lloh6:
	adrp	x8, _PNG_MAX_ERROR_TEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PNG_MAX_ERROR_TEXT@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #2
	b.lt	LBB0_18
; %bb.13:
	mov	x11, #0
	add	x9, x9, #3
	add	x10, x19, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x20, x11]
	cbz	w13, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x12, x11, #1
	strb	w13, [x10, x11]
	ldrsw	x11, [x8]
	sub	x13, x11, #1
	mov	x11, x12
	cmp	x12, x13
	b.lt	LBB0_14
; %bb.16:
	add	x8, x9, x12
	b	LBB0_20
LBB0_17:
	mov	w8, w8
	b	LBB0_21
LBB0_18:
	add	w8, w9, #3
	b	LBB0_20
LBB0_19:
	add	x8, x9, x11
LBB0_20:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
LBB0_21:
	strb	wzr, [x19, x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_LITERAL_LEFT_SQUARE_BRACKET,1,0 ; @PNG_LITERAL_LEFT_SQUARE_BRACKET
	.comm	_png_digit,8,3                  ; @png_digit
	.comm	_PNG_LITERAL_RIGHT_SQUARE_BRACKET,1,0 ; @PNG_LITERAL_RIGHT_SQUARE_BRACKET
	.comm	_PNG_MAX_ERROR_TEXT,4,2         ; @PNG_MAX_ERROR_TEXT
	.no_dead_strip	_png_format_buffer
.subsections_via_symbols
