	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function png_write_image_data
LCPI0_0:
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_png_write_image_data:                  ## @png_write_image_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	_AV_CRC_32_IEEE_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_AV_CODEC_ID_PNG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	8(%r12), %rbx
	leal	4(%r14), %esi
	movq	%rbx, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_bytestream_put_be32
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$100, %edi
	movl	$65, %esi
	movl	$84, %edx
	callq	_MKBETAG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bytestream_put_be32
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be32
	movq	8(%r12), %rdx
	addq	$-32, %rdx
	movq	%r13, %rdi
	movl	$-1, %esi
	movl	$8, %ecx
	callq	_av_crc
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_av_crc
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	%rax, 8(%r12)
	notl	%ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_bytestream_put_be32
	incl	(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addq	$8, %r12
	movl	$73, %edi
	movl	$68, %esi
	movl	$65, %edx
	movl	$84, %ecx
	callq	_MKTAG
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_write_chunk                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CRC_32_IEEE_LE,4,2          ## @AV_CRC_32_IEEE_LE
	.comm	_AV_CODEC_ID_PNG,8,3            ## @AV_CODEC_ID_PNG
	.no_dead_strip	_png_write_image_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_write_image_data
_png_write_image_data:                  ; @png_write_image_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x8, _AV_CRC_32_IEEE_LE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CRC_32_IEEE_LE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _AV_CODEC_ID_PNG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_PNG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x22, x0
	add	x21, x23, #8
	add	w1, w19, #4
	mov	x0, x21
	bl	_bytestream_put_be32
	mov	w8, #1120665600
	fmov	s0, w8
	mov	w0, #100
	mov	w1, #65
	mov	w2, #84
	bl	_MKBETAG
	mov	x1, x0
	mov	x0, x21
	bl	_bytestream_put_be32
	ldr	w1, [x23]
	mov	x0, x21
	bl	_bytestream_put_be32
	ldr	x8, [x23, #8]
	sub	x2, x8, #32
	mov	x0, x22
	mov	w1, #-1
	mov	w3, #8
	bl	_av_crc
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_av_crc
	mov	x22, x0
	ldr	x0, [x23, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x23, #8]
	add	x8, x8, w19, sxtw #2
	str	x8, [x23, #8]
	mvn	w1, w22
	mov	x0, x21
	bl	_bytestream_put_be32
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x21, x23, #8
	mov	w0, #73
	mov	w1, #68
	mov	w2, #65
	mov	w3, #84
	bl	_MKTAG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_png_write_chunk
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CRC_32_IEEE_LE,4,2          ; @AV_CRC_32_IEEE_LE
	.comm	_AV_CODEC_ID_PNG,8,3            ; @AV_CODEC_ID_PNG
	.no_dead_strip	_png_write_image_data
.subsections_via_symbols
