	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_vpAg_chunk
_write_vpAg_chunk:                      ## @write_vpAg_chunk
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	l___const.write_vpAg_chunk.vpAg+16(%rip), %eax
	movl	%eax, -48(%rbp)
	movaps	l___const.write_vpAg_chunk.vpAg(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_STDERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_user_chunk_data@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %rcx
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	_user_chunk_data@GOTPCREL(%rip), %rbx
	movq	16(%rbx), %rsi
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	callq	_png_save_uint_32
	leaq	-96(%rbp), %rdi
	movq	8(%rbx), %rsi
	callq	_png_save_uint_32
	movl	(%rbx), %eax
	movl	%eax, -80(%rbp)
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	$9, %ecx
	callq	_png_write_chunk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.write_vpAg_chunk.vpAg
l___const.write_vpAg_chunk.vpAg:
	.long	118                             ## 0x76
	.long	112                             ## 0x70
	.long	65                              ## 0x41
	.long	103                             ## 0x67
	.long	0                               ## 0x0

	.comm	_verbose,8,3                    ## @verbose
	.comm	_STDERR,4,2                     ## @STDERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" vpAg = %lu x %lu, units = %d\n"

	.comm	_user_chunk_data,24,3           ## @user_chunk_data
	.no_dead_strip	_write_vpAg_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_vpAg_chunk
_write_vpAg_chunk:                      ; @write_vpAg_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l___const.write_vpAg_chunk.vpAg@PAGE
Lloh4:
	add	x8, x8, l___const.write_vpAg_chunk.vpAg@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #48]
	ldr	w8, [x8, #16]
	str	w8, [sp, #64]
Lloh5:
	adrp	x8, _verbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x20, _user_chunk_data@GOTPAGE
Lloh9:
	ldr	x20, [x20, _user_chunk_data@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _STDERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STDERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x3, x2, [x20, #8]
	ldr	w4, [x20]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x1, [x20, #16]
	add	x21, sp, #12
	add	x0, sp, #12
	bl	_png_save_uint_32
	add	x0, x21, #16
	ldr	x1, [x20, #8]
	bl	_png_save_uint_32
	ldr	w8, [x20]
	str	w8, [sp, #44]
	add	x1, sp, #48
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #9
	bl	_png_write_chunk
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.write_vpAg_chunk.vpAg
l___const.write_vpAg_chunk.vpAg:
	.long	118                             ; 0x76
	.long	112                             ; 0x70
	.long	65                              ; 0x41
	.long	103                             ; 0x67
	.long	0                               ; 0x0

	.comm	_verbose,8,3                    ; @verbose
	.comm	_STDERR,4,2                     ; @STDERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" vpAg = %lu x %lu, units = %d\n"

	.comm	_user_chunk_data,24,3           ; @user_chunk_data
	.no_dead_strip	_write_vpAg_chunk
.subsections_via_symbols
