	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$91, (%r12)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 1(%r12)
	movq	(%rax), %rax
	andl	$15, %ebx
	movb	(%rax,%rbx), %al
	movb	%al, 2(%r12)
	movb	$93, 3(%r12)
	movl	$4, %r13d
	jmp	LBB0_3
LBB0_2:
	movb	%bl, (%r12)
	movl	$1, %r13d
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %ebx
	movl	%ebx, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r13d, %eax
	movb	$91, (%r12,%rax)
	movq	_png_digit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movb	(%rdx,%rsi), %dl
	movb	%dl, 1(%r12,%rax)
	orq	$2, %rax
	movq	(%rcx), %rcx
	andl	$15, %ebx
	movb	(%rcx,%rbx), %cl
	addl	$3, %r13d
	movb	%cl, (%r12,%rax)
	movb	$93, %bl
LBB0_5:
	movl	%r13d, %r14d
	movb	%bl, (%r12,%r14)
	leaq	1(%r14), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	8(%rax), %ebx
	movl	%ebx, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movb	$91, (%r12,%r15)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 2(%r14,%r12)
	movq	(%rax), %rax
	andl	$15, %ebx
	movb	(%rax,%rbx), %al
	addl	$4, %r13d
	movb	%al, 3(%r14,%r12)
	movb	$93, %bl
	jmp	LBB0_8
LBB0_7:
	movl	%r15d, %r13d
LBB0_8:
	movl	%r13d, %r14d
	movb	%bl, (%r12,%r14)
	leaq	1(%r14), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	12(%rax), %ebx
	movl	%ebx, %edi
	callq	_isnonalpha
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movb	$91, (%r12,%r15)
	movq	_png_digit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$15, %edx
	movb	(%rcx,%rdx), %cl
	movb	%cl, 2(%r14,%r12)
	movq	(%rax), %rax
	andl	$15, %ebx
	movb	(%rax,%rbx), %al
	addl	$4, %r13d
	movb	%al, 3(%r14,%r12)
	movb	$93, %bl
	jmp	LBB0_11
LBB0_10:
	movl	%r15d, %r13d
LBB0_11:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %eax
	movb	%bl, (%r12,%rax)
	leaq	1(%rax), %rcx
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:
	leaq	2(%rax), %rbx
	movb	$58, (%r12,%rcx)
	movb	$32, 2(%r12,%rax)
	leaq	(%rax,%r12), %rdi
	addq	$3, %rdi
	movq	_PNG_MAX_ERROR_TEXT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_png_memcpy
	addl	(%r14), %ebx
	movslq	%ebx, %rax
	jmp	LBB0_14
LBB0_12:
	movl	%ecx, %eax
LBB0_14:
	movb	$0, (%r12,%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_png_digit,8,3                  ## @png_digit
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w22, [x8]
	mov	x0, x22
	bl	_isnonalpha
Lloh0:
	adrp	x23, _png_digit@GOTPAGE
Lloh1:
	ldr	x23, [x23, _png_digit@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #91
	strb	w8, [x19]
	ldr	x8, [x23]
	ubfx	x9, x22, #4, #4
	ldrb	w8, [x8, x9]
	strb	w8, [x19, #1]
	ldr	x8, [x23]
	and	x9, x22, #0xf
	ldrb	w8, [x8, x9]
	strb	w8, [x19, #2]
	mov	w8, #93
	strb	w8, [x19, #3]
	mov	w24, #4
	b	LBB0_3
LBB0_2:
	strb	w22, [x19]
	mov	w24, #1
LBB0_3:
	ldr	x8, [x21]
	ldr	w22, [x8, #4]
	mov	x0, x22
	bl	_isnonalpha
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, w24
	add	x9, x19, x8
	mov	w10, #91
	strb	w10, [x9]
	ldr	x10, [x23]
	ubfx	x11, x22, #4, #4
	ldrb	w10, [x10, x11]
	orr	x8, x8, #0x2
	strb	w10, [x9, #1]
	ldr	x9, [x23]
	and	x10, x22, #0xf
	ldrb	w9, [x9, x10]
	add	w24, w24, #3
	strb	w9, [x19, x8]
	mov	w22, #93
LBB0_5:
	mov	w8, w24
	strb	w22, [x19, x8]
	add	x25, x8, #1
	ldr	x8, [x21]
	ldr	w22, [x8, #8]
	mov	x0, x22
	bl	_isnonalpha
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #91
	strb	w8, [x19, x25]
	ldr	x8, [x23]
	ubfx	x9, x22, #4, #4
	ldrb	w8, [x8, x9]
	add	x9, x19, w24, uxtw
	strb	w8, [x9, #2]
	ldr	x8, [x23]
	and	x10, x22, #0xf
	ldrb	w8, [x8, x10]
	add	w25, w24, #4
	strb	w8, [x9, #3]
	mov	w22, #93
LBB0_7:
	mov	w8, w25
	strb	w22, [x19, x8]
	add	x22, x8, #1
	ldr	x8, [x21]
	ldr	w21, [x8, #12]
	mov	x0, x21
	bl	_isnonalpha
	cbz	x0, LBB0_9
; %bb.8:
	mov	w8, #91
	strb	w8, [x19, x22]
	ldr	x8, [x23]
	ubfx	x9, x21, #4, #4
	ldrb	w8, [x8, x9]
	add	x9, x19, w25, uxtw
	strb	w8, [x9, #2]
	ldr	x8, [x23]
	and	x10, x21, #0xf
	ldrb	w8, [x8, x10]
	add	w22, w25, #4
	strb	w8, [x9, #3]
	mov	w21, #93
LBB0_9:
	mov	w9, w22
	strb	w21, [x19, x9]
	add	x8, x9, #1
	cbz	x20, LBB0_11
; %bb.10:
	add	x21, x9, #2
	mov	w9, #58
	strb	w9, [x19, x8]
	add	w8, w22, #3
	mov	w9, #32
	strb	w9, [x19, x21]
	add	x0, x19, x8
Lloh2:
	adrp	x22, _PNG_MAX_ERROR_TEXT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PNG_MAX_ERROR_TEXT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_png_memcpy
	ldr	w8, [x22]
	add	w8, w21, w8
	sxtw	x8, w8
	b	LBB0_12
LBB0_11:
	mov	w8, w8
LBB0_12:
	strb	wzr, [x19, x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_png_digit,8,3                  ; @png_digit
	.comm	_PNG_MAX_ERROR_TEXT,4,2         ; @PNG_MAX_ERROR_TEXT
	.no_dead_strip	_png_format_buffer
.subsections_via_symbols
