	.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	$104, %rsp
	.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
	leal	6(,%rax,4), %r15d
	movl	4(%rsi), %r13d
	imull	%r15d, %r13d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	-136(%rbp), %rdx
	movl	%r14d, %edi
	callq	_png_check_keyword
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r12d
	movq	_png_sPLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r12,%r13), %edx
	addl	$2, %edx
	movl	%r14d, %edi
	callq	_png_write_chunk_start
	movq	-136(%rbp), %rsi
	incl	%r12d
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_png_write_chunk_data
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_png_write_chunk_data
	cmpl	$0, 4(%rbx)
	jle	LBB0_9
## %bb.4:
	movq	8(%rbx), %r13
	leaq	-128(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_png_save_uint_16
	movq	24(%r13), %rsi
	leaq	-112(%rbp), %rdi
	callq	_png_save_uint_16
	movq	16(%r13), %rsi
	leaq	-96(%rbp), %rdi
	callq	_png_save_uint_16
	movq	8(%r13), %rsi
	leaq	-80(%rbp), %rdi
	callq	_png_save_uint_16
	leaq	-64(%rbp), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rsi
	callq	_png_save_uint_16
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_png_write_chunk_data
	addq	$40, %r13
	movslq	4(%rbx), %rax
	leaq	(%rax,%rax,4), %rax
	shlq	$3, %rax
	addq	8(%rbx), %rax
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$8, (%rbx)
	movq	32(%r13), %rsi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, -128(%rbp)
	movdqu	16(%r13), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, -120(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -104(%rbp)
	leaq	-96(%rbp), %rdi
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_png_warning
	jmp	LBB0_10
LBB0_9:
	movl	%r14d, %edi
	callq	_png_write_chunk_end
	movq	-136(%rbp), %rsi
	movl	%r14d, %edi
	callq	_png_free
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_sPLT\n"

L_.str.1:                               ## @.str.1
	.asciz	"Empty keyword in sPLT chunk"

	.comm	_png_sPLT,4,2                   ## @png_sPLT
	.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, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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]
	str	x8, [sp, #88]
	mov	w8, #10
	mov	w9, #6
	ldp	w10, w23, [x1]
	cmp	w10, #8
	csel	w21, w9, w8, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x2, sp
	mov	x0, x19
	bl	_png_check_keyword
	cbz	w0, LBB0_8
; %bb.2:
	mov	x22, x0
	mul	w8, w21, w23
Lloh5:
	adrp	x9, _png_sPLT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _png_sPLT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	add	w8, w8, w0
	add	w2, w8, #2
	mov	x0, x19
	bl	_png_write_chunk_start
	ldr	x1, [sp]
	add	w2, w22, #1
	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]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	add	x8, sp, #8
	add	x22, x8, #16
	ldr	x25, [x20, #8]
	add	x23, x8, #32
	add	x24, x8, #48
	add	x26, x8, #64
	mov	w27, #40
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_png_save_uint_16
	ldr	x1, [x25, #24]
	mov	x0, x22
	bl	_png_save_uint_16
	ldr	x1, [x25, #16]
	mov	x0, x23
	bl	_png_save_uint_16
	ldr	x1, [x25, #8]
	mov	x0, x24
	bl	_png_save_uint_16
	mov	x0, x26
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25], #40
	bl	_png_save_uint_16
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_png_write_chunk_data
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #4]
	madd	x8, x9, x27, x8
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	x1, [x25, #32]
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x1, [sp, #8]
	ldr	q0, [x25, #16]
	ext.16b	v0, v0, v0, #8
	stur	q0, [sp, #16]
	ldr	x8, [x25, #8]
	str	x8, [sp, #32]
	mov	x0, x23
	b	LBB0_5
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_png_write_chunk_end
	ldr	x1, [sp]
	mov	x0, x19
	bl	_png_free
LBB0_10:
	ldr	x8, [sp, #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_12
; %bb.11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_sPLT\n"

l_.str.1:                               ; @.str.1
	.asciz	"Empty keyword in sPLT chunk"

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