	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_sPLT                ## -- Begin function png_handle_sPLT
	.p2align	4, 0x90
_png_handle_sPLT:                       ## @png_handle_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	4(%r12), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.4:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.5:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_png_crc_finish
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_png_chunk_error
LBB0_2:
	leal	1(%r13), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_png_read_buffer
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_png_crc_read
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	je	LBB0_8
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_png_crc_finish
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_8:
	movl	%r13d, %eax
	movq	$0, (%r15,%rax,8)
	movl	$8, %eax
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addq	$8, %rax
	cmpq	$0, (%rbx)
	leaq	8(%rbx), %rbx
	jne	LBB0_9
## %bb.10:
	movl	%r13d, %ecx
	subl	$2, %ecx
	jb	LBB0_12
## %bb.11:
	leaq	(%r15,%rcx,8), %rcx
	cmpq	%rcx, %rbx
	ja	LBB0_12
## %bb.14:
	movl	(%rbx), %esi
	movl	%esi, -88(%rbp)
	xorl	%ecx, %ecx
	cmpl	$8, %esi
	setne	%cl
	leal	6(,%rcx,4), %ecx
	shrq	$3, %rax
	subl	%eax, %r13d
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testl	%edx, %edx
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_warning                    ## TAILCALL
LBB0_16:
	movq	_PNG_SIZE_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	sarl	$2, %edx
	cmpl	%edx, %eax
	jbe	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_18:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, -84(%rbp)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %esi
	movq	%r12, %rdi
	callq	_png_malloc_warn
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_27
## %bb.19:
	cmpl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	jbe	LBB0_20
LBB0_25:
	movq	%r15, -72(%rbp)
	leaq	-88(%rbp), %rdx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_png_set_sPLT
	movq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_png_free
	jmp	LBB0_26
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_13
LBB0_20:
	movq	%rax, %r14
	addq	$8, %rbx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$32, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	callq	_png_get_uint_16
	movq	%rax, (%r14)
	leaq	16(%rbx), %rdi
	callq	_png_get_uint_16
	movq	%rax, -8(%r14)
	leaq	32(%rbx), %rdi
	callq	_png_get_uint_16
	movq	%rax, -16(%r14)
	leaq	48(%rbx), %rdi
	callq	_png_get_uint_16
	addq	$64, %rbx
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, -24(%r14)
	movq	%rbx, %rdi
	callq	_png_get_uint_16
	movq	%rax, -32(%r14)
	addq	$16, %rbx
	incq	%r13
	addq	$40, %r14
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$8, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movdqu	8(%rbx), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, -16(%r14)
	movq	24(%rbx), %rax
	addq	$32, %rbx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_sPLT"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"out of place"

L_.str.3:                               ## @.str.3
	.asciz	"out of memory"

L_.str.4:                               ## @.str.4
	.asciz	"malformed sPLT chunk"

L_.str.5:                               ## @.str.5
	.asciz	"sPLT chunk has bad length"

	.comm	_PNG_SIZE_MAX,4,2               ## @PNG_SIZE_MAX
L_.str.6:                               ## @.str.6
	.asciz	"sPLT chunk too long"

L_.str.7:                               ## @.str.7
	.asciz	"sPLT chunk requires too much memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_sPLT                ; -- Begin function png_handle_sPLT
	.p2align	2
_png_handle_sPLT:                       ; @png_handle_sPLT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_png_crc_finish
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
LBB0_4:
	add	w1, w23, #1
	mov	x0, x19
	mov	w2, #2
	bl	_png_read_buffer
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_png_crc_read
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbz	x0, LBB0_9
LBB0_6:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	bl	_png_crc_finish
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_png_chunk_benign_error
LBB0_9:
	mov	x8, #0
	str	xzr, [x21, w23, uxtw #3]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, x8]
	add	x8, x8, #8
	cbnz	x9, LBB0_10
; %bb.11:
	subs	w9, w23, #2
	b.lo	LBB0_15
; %bb.12:
	add	x9, x21, w9, uxtw #3
	add	x10, x21, x8
	cmp	x10, x9
	b.hi	LBB0_15
; %bb.13:
	add	x22, x21, x8
	ldr	w24, [x22], #8
	str	w24, [sp, #8]
	mov	w9, #10
	mov	w10, #6
	cmp	w24, #8
	csel	w26, w10, w9, eq
	add	x8, x8, #8
	lsr	x8, x8, #3
	sub	w23, w23, w8
	udiv	w25, w23, w26
	msub	w8, w25, w26, w23
	cbz	w8, LBB0_17
; %bb.14:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_png_warning
LBB0_17:
Lloh18:
	adrp	x8, _PNG_SIZE_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PNG_SIZE_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w25, w8, asr #2
	b.ls	LBB0_19
; %bb.18:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_19:
	str	w25, [sp, #12]
	lsl	w1, w25, #2
	mov	x0, x19
	bl	_png_malloc_warn
	str	x0, [sp, #16]
	cbz	x0, LBB0_22
; %bb.20:
	cmp	w26, w23
	b.ls	LBB0_23
LBB0_21:
	str	x21, [sp, #24]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_png_set_sPLT
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_png_free
	b	LBB0_6
LBB0_22:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_23:
	mov	x26, #0
	add	x27, x0, #32
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x22
	bl	_png_get_uint_16
	str	x0, [x27]
	add	x0, x22, #16
	bl	_png_get_uint_16
	stur	x0, [x27, #-8]
	add	x0, x22, #32
	bl	_png_get_uint_16
	stur	x0, [x27, #-16]
	add	x0, x22, #48
	bl	_png_get_uint_16
	add	x23, x22, #64
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	stur	x0, [x27, #-24]
	mov	x0, x23
	bl	_png_get_uint_16
	stur	x0, [x27, #-32]
	add	x22, x23, #16
	add	x26, x26, #1
	add	x27, x27, #40
	cmp	x26, x25
	b.eq	LBB0_21
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	cmp	w24, #8
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x22]
	str	x8, [x27]
	ldr	x8, [x22, #8]
	stur	x8, [x27, #-8]
	ldr	x8, [x22, #16]
	stur	x8, [x27, #-16]
	add	x23, x22, #32
	ldr	x0, [x22, #24]
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_sPLT"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"out of place"

l_.str.3:                               ; @.str.3
	.asciz	"out of memory"

l_.str.4:                               ; @.str.4
	.asciz	"malformed sPLT chunk"

l_.str.5:                               ; @.str.5
	.asciz	"sPLT chunk has bad length"

	.comm	_PNG_SIZE_MAX,4,2               ; @PNG_SIZE_MAX
l_.str.6:                               ; @.str.6
	.asciz	"sPLT chunk too long"

l_.str.7:                               ; @.str.7
	.asciz	"sPLT chunk requires too much memory"

.subsections_via_symbols
