	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_oFFs                 ## -- Begin function png_write_oFFs
	.p2align	4, 0x90
_png_write_oFFs:                        ## @png_write_oFFs
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	_PNG_OFFSET_LAST@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_png_warning
LBB0_2:
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_png_save_int_32
	leaq	-96(%rbp), %rdi
	movl	%r15d, %esi
	callq	_png_save_int_32
	movslq	%ebx, %rax
	movq	%rax, -64(%rbp)
	movq	_png_oFFs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r13, %rdx
	movl	$9, %ecx
	callq	_png_write_chunk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_oFFs\n"

	.comm	_PNG_OFFSET_LAST,4,2            ## @PNG_OFFSET_LAST
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized unit type for oFFs chunk"

	.comm	_png_oFFs,4,2                   ## @png_oFFs
	.comm	_PNG_oFFs,4,2                   ## @PNG_oFFs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_oFFs                 ; -- Begin function png_write_oFFs
	.p2align	2
_png_write_oFFs:                        ; @png_write_oFFs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	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, #-56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
Lloh5:
	adrp	x8, _PNG_OFFSET_LAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PNG_OFFSET_LAST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.gt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_warning
LBB0_2:
	mov	x23, sp
	mov	x0, sp
	mov	x1, x22
	bl	_png_save_int_32
	add	x0, x23, #32
	mov	x1, x21
	bl	_png_save_int_32
	sxtw	x8, w20
	str	x8, [sp, #64]
Lloh10:
	adrp	x8, _png_oFFs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _png_oFFs@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #9
	bl	_png_write_chunk
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_oFFs\n"

	.comm	_PNG_OFFSET_LAST,4,2            ; @PNG_OFFSET_LAST
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized unit type for oFFs chunk"

	.comm	_png_oFFs,4,2                   ; @png_oFFs
	.comm	_PNG_oFFs,4,2                   ; @PNG_oFFs
.subsections_via_symbols
