	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_write_chunk_header
_png_write_chunk_header:                ## @png_write_chunk_header
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movq	%rdx, %rsi
	callq	_png_save_uint_32
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_png_save_uint_32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_png_write_data
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_png_reset_crc
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_png_calculate_crc
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_IO_CHUNK_DATA,8,3          ## @PNG_IO_CHUNK_DATA
	.comm	_PNG_IO_CHUNK_HDR,8,3           ## @PNG_IO_CHUNK_HDR
	.comm	_PNG_IO_WRITING,8,3             ## @PNG_IO_WRITING
	.no_dead_strip	_png_write_chunk_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_write_chunk_header
_png_write_chunk_header:                ; @png_write_chunk_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	x1, x2
	bl	_png_save_uint_32
	add	x21, x21, #16
	mov	x0, x21
	mov	x1, x20
	bl	_png_save_uint_32
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	_png_write_data
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_png_reset_crc
	mov	x0, x19
	mov	x1, x21
	mov	w2, #4
	bl	_png_calculate_crc
LBB0_2:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_IO_CHUNK_DATA,8,3          ; @PNG_IO_CHUNK_DATA
	.comm	_PNG_IO_CHUNK_HDR,8,3           ; @PNG_IO_CHUNK_HDR
	.comm	_PNG_IO_WRITING,8,3             ; @PNG_IO_WRITING
	.no_dead_strip	_png_write_chunk_header
.subsections_via_symbols
