	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_sPLT                 ## -- Begin function png_write_sPLT
	.p2align	4, 0x90
_png_write_sPLT:                        ## @png_write_sPLT
	.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	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpl	$8, (%rsi)
	setne	%al
	leaq	6(,%rax,4), %rax
	movslq	4(%rsi), %r15
	movq	%rax, -424(%rbp)                ## 8-byte Spill
	imulq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	16(%rbx), %esi
	leaq	-368(%rbp), %rdx
	movl	%r14d, %edi
	callq	_png_check_keyword
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_png_error
LBB0_2:
	movq	_png_sPLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%r15,%r12), %rdx
	addq	$2, %rdx
	movl	%r14d, %edi
	callq	_png_write_chunk_header
	incq	%r12
	leaq	-368(%rbp), %rsi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_png_write_chunk_data
	movl	$1, %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_png_write_chunk_data
	cmpl	$0, 4(%rbx)
	js	LBB0_3
LBB0_8:
	movl	%r14d, %edi
	callq	_png_write_chunk_end
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %r13
	addq	$32, %r13
	movq	$-1, %r15
	leaq	-416(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_png_save_uint_16
	movq	-8(%r13), %rsi
	leaq	-408(%rbp), %rdi
	callq	_png_save_uint_16
	movq	-16(%r13), %rsi
	leaq	-400(%rbp), %rdi
	callq	_png_save_uint_16
	movq	-24(%r13), %rsi
	leaq	-392(%rbp), %rdi
	callq	_png_save_uint_16
	leaq	-384(%rbp), %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-32(%r13), %rsi
	callq	_png_save_uint_16
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	-424(%rbp), %rdx                ## 8-byte Reload
	callq	_png_write_chunk_data
	movslq	4(%rbx), %rax
	addq	$40, %r13
	incq	%r15
	cmpq	%rax, %r15
	jl	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$8, (%rbx)
	movq	(%r13), %rsi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, -416(%rbp)
	movl	-8(%r13), %eax
	movl	%eax, -412(%rbp)
	movl	-16(%r13), %eax
	movl	%eax, -408(%rbp)
	movl	-24(%r13), %eax
	movl	%eax, -404(%rbp)
	leaq	-400(%rbp), %rdi
	jmp	LBB0_7
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_sPLT"

L_.str.1:                               ## @.str.1
	.asciz	"sPLT: invalid keyword"

	.comm	_png_sPLT,4,2                   ## @png_sPLT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_sPLT                 ; -- Begin function png_write_sPLT
	.p2align	2
_png_write_sPLT:                        ; @png_write_sPLT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, 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, #-88]
	ldp	w8, w9, [x1]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w8, #8
	mov	w8, #10
	mov	w10, #6
	csel	x21, x10, x8, eq
	mul	x23, x21, x9
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w1, [x20, #16]
	add	x2, sp, #40
	mov	x0, x19
	bl	_png_check_keyword
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_error
LBB0_2:
Lloh7:
	adrp	x8, _png_sPLT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _png_sPLT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x8, x23, x22
	add	x2, x8, #2
	mov	x0, x19
	bl	_png_write_chunk_header
	add	x2, x22, #1
	add	x1, sp, #40
	mov	x0, x19
	bl	_png_write_chunk_data
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_png_write_chunk_data
	ldr	w8, [x20, #4]
	tbnz	w8, #31, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_png_write_chunk_end
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.4:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_5:
	mov	x8, sp
	add	x22, x8, #8
	ldr	x9, [x20, #8]
	add	x23, x8, #16
	add	x24, x8, #24
	add	x25, x8, #32
	add	x26, x9, #16
	mov	x27, #-1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, sp
	bl	_png_save_uint_16
	ldr	x1, [x26, #8]
	mov	x0, x22
	bl	_png_save_uint_16
	ldr	x1, [x26]
	mov	x0, x23
	bl	_png_save_uint_16
	ldur	x1, [x26, #-8]
	mov	x0, x24
	bl	_png_save_uint_16
	mov	x0, x25
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldur	x1, [x26, #-16]
	bl	_png_save_uint_16
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_png_write_chunk_data
	ldrsw	x8, [x20, #4]
	add	x26, x26, #40
	add	x27, x27, #1
	cmp	x27, x8
	b.lt	LBB0_3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	x1, [x26, #16]
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w1, [sp]
	ldr	q0, [x26]
	xtn.2s	v0, v0
	rev64.2s	v0, v0
	stur	d0, [sp, #4]
	ldur	x8, [x26, #-8]
	str	w8, [sp, #12]
	mov	x0, x23
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_sPLT"

l_.str.1:                               ; @.str.1
	.asciz	"sPLT: invalid keyword"

	.comm	_png_sPLT,4,2                   ; @png_sPLT
.subsections_via_symbols
