	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_iTXt                ## -- Begin function png_handle_iTXt
	.p2align	4, 0x90
_png_handle_iTXt:                       ## @png_handle_iTXt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	4(%r15), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_png_chunk_error
	movl	4(%r15), %eax
LBB0_2:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	leal	1(%r12), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_png_read_buffer
	testq	%rax, %rax
	je	LBB0_42
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_png_crc_read
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	jne	LBB0_41
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	testl	%r12d, %r12d
	jle	LBB0_40
## %bb.7:
	movl	%r12d, %eax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%r14,4)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	cmpq	%r14, %rax
	jne	LBB0_8
## %bb.10:
	movl	%eax, %r14d
LBB0_11:
	leal	-80(%r14), %eax
	cmpl	$-79, %eax
	jb	LBB0_40
## %bb.12:
	leal	5(%r14), %eax
	cmpl	%r12d, %eax
	jle	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_40
LBB0_42:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_14:
	movl	%r14d, %eax
	movl	4(%rbx,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_17
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	cmpl	$1, %edx
	jne	LBB0_40
## %bb.16:
	movl	8(%rbx,%rax,4), %eax
	movq	_PNG_COMPRESSION_TYPE_BASE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
LBB0_17:
	addl	$3, %r14d
	movl	%r14d, %eax
	cmpl	%r12d, %r14d
	jge	LBB0_22
## %bb.18:
	movl	%r14d, %eax
	leaq	(%rbx,%rax,4), %rcx
	movl	%r14d, %eax
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%eax
	addq	$4, %rcx
	cmpl	%r12d, %eax
	jl	LBB0_19
## %bb.21:
	movl	%r12d, %eax
LBB0_22:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	leal	1(%rax), %edi
	movl	%edi, %r13d
	cmpl	%r12d, %edi
	jge	LBB0_27
## %bb.23:
	movl	%edi, %ecx
	addl	$2, %eax
	leaq	(%rbx,%rcx,4), %rcx
	movl	%eax, %r13d
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	leal	1(%r13), %eax
	addq	$4, %rcx
	cmpl	%r12d, %r13d
	movl	%eax, %r13d
	jl	LBB0_24
## %bb.26:
	decl	%eax
	movl	%eax, %r13d
LBB0_27:
	incl	%r13d
LBB0_28:
	leaq	L_.str.4(%rip), %rsi
	testl	%edx, %edx
	je	LBB0_40
## %bb.29:
	cmpl	%r12d, %r13d
	jge	LBB0_40
## %bb.30:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_PNG_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	$1, %r8d
	callq	_png_decompress_chunk
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.31:
	movq	8(%r15), %rbx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_36
LBB0_32:
	testl	%edx, %edx
	jne	LBB0_28
## %bb.33:
	movslq	%r12d, %rax
	subl	%r13d, %r12d
	movl	%r12d, -44(%rbp)
	movl	$0, (%rbx,%rax,4)
	jmp	LBB0_34
LBB0_35:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_40
LBB0_36:
	movslq	-44(%rbp), %rax
	movslq	%r13d, %rcx
	addq	%rax, %rcx
	movl	$0, (%rbx,%rcx,4)
	testl	%edx, %edx
	jne	LBB0_37
LBB0_34:
	movq	_PNG_ITXT_COMPRESSION_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_37:
	movq	_PNG_ITXT_COMPRESSION_zTXt@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, -72(%rbp)
	movl	%r14d, %eax
	addq	%rbx, %rax
	movq	%rax, -80(%rbp)
	movl	%edi, %eax
	addq	%rbx, %rax
	movq	%rax, -88(%rbp)
	movl	%r13d, %eax
	addq	%rbx, %rax
	movq	%rax, -96(%rbp)
	movq	$0, -104(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -112(%rbp)
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_png_set_text_2
	testq	%rax, %rax
	je	LBB0_41
## %bb.39:
	leaq	L_.str.5(%rip), %rsi
LBB0_40:
	movq	%r15, %rdi
	callq	_png_chunk_benign_error
LBB0_41:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_iTXt"

	.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
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"bad keyword"

L_.str.4:                               ## @.str.4
	.asciz	"truncated"

	.comm	_PNG_COMPRESSION_TYPE_BASE,4,2  ## @PNG_COMPRESSION_TYPE_BASE
	.comm	_PNG_SIZE_MAX,4,2               ## @PNG_SIZE_MAX
	.comm	_Z_STREAM_END,8,3               ## @Z_STREAM_END
	.comm	_PNG_ITXT_COMPRESSION_NONE,4,2  ## @PNG_ITXT_COMPRESSION_NONE
	.comm	_PNG_ITXT_COMPRESSION_zTXt,4,2  ## @PNG_ITXT_COMPRESSION_zTXt
L_.str.5:                               ## @.str.5
	.asciz	"insufficient memory"

L_.str.6:                               ## @.str.6
	.asciz	"bad compression info"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_iTXt                ; -- Begin function png_handle_iTXt
	.p2align	2
_png_handle_iTXt:                       ; @png_handle_iTXt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, 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.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
	ldr	w8, [x19, #4]
LBB0_2:
Lloh7:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x9, _PNG_AFTER_IDAT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	add	w1, w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_png_read_buffer
	cbz	x0, LBB0_15
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_png_crc_read
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbnz	x0, LBB0_14
; %bb.6:
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x8, #0
	mov	w9, w21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x22, x8, lsl #2]
	cbz	w10, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.10:
	mov	x8, x9
LBB0_11:
	sub	w9, w8, #80
	cmn	w9, #79
	b.hs	LBB0_16
LBB0_12:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_png_chunk_benign_error
LBB0_14:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_png_chunk_benign_error
LBB0_16:
	add	w9, w8, #5
	cmp	w9, w21
	b.le	LBB0_18
; %bb.17:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_18:
	add	w9, w8, #1
	ldr	w25, [x22, w9, uxtw #2]
	cbz	w25, LBB0_21
; %bb.19:
	cmp	w25, #1
	b.ne	LBB0_26
; %bb.20:
	add	w9, w8, #2
	ldr	w9, [x22, w9, uxtw #2]
Lloh19:
	adrp	x10, _PNG_COMPRESSION_TYPE_BASE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PNG_COMPRESSION_TYPE_BASE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_26
LBB0_21:
	add	w24, w8, #3
	cmp	w24, w21
	b.ge	LBB0_27
; %bb.22:
	add	x9, x22, w24, uxtw #2
	mov	x8, x24
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbz	w10, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w8, w8, #1
	add	x9, x9, #4
	cmp	w8, w21
	b.lt	LBB0_23
; %bb.25:
	mov	x8, x21
	b	LBB0_28
LBB0_26:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_27:
	mov	x8, x24
LBB0_28:
	add	w26, w8, #1
	mov	x9, x26
	cmp	w26, w21
	b.ge	LBB0_33
; %bb.29:
	add	w23, w8, #2
	lsl	x8, x26, #2
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x8]
	cbz	w9, LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	w9, w23, #1
	add	x8, x8, #4
	cmp	w23, w21
	mov	x23, x9
	b.lt	LBB0_30
; %bb.32:
	sub	w9, w9, #1
LBB0_33:
	add	w23, w9, #1
LBB0_34:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	cbz	w25, LBB0_13
; %bb.35:
	cmp	w23, w21
	b.ge	LBB0_13
; %bb.36:
Lloh26:
	adrp	x8, _PNG_SIZE_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PNG_SIZE_MAX@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #60]
	add	x3, sp, #60
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	w4, #1
	bl	_png_decompress_chunk
Lloh29:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh30:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_40
; %bb.37:
	ldr	x22, [x19, #8]
	b	LBB0_41
LBB0_38:
	cbnz	w25, LBB0_34
; %bb.39:
	sub	w8, w21, w23
	str	w8, [sp, #60]
	str	wzr, [x22, w21, sxtw #2]
Lloh32:
	adrp	x8, _PNG_ITXT_COMPRESSION_NONE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PNG_ITXT_COMPRESSION_NONE@GOTPAGEOFF]
	b	LBB0_42
LBB0_40:
	ldr	x1, [x19, #16]
	cbnz	x1, LBB0_13
LBB0_41:
	ldr	w8, [sp, #60]
	add	w8, w8, w23
	str	wzr, [x22, w8, sxtw #2]
Lloh34:
	adrp	x8, _PNG_ITXT_COMPRESSION_zTXt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PNG_ITXT_COMPRESSION_zTXt@GOTPAGEOFF]
Lloh36:
	adrp	x9, _PNG_ITXT_COMPRESSION_NONE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PNG_ITXT_COMPRESSION_NONE@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x9, x8, eq
LBB0_42:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	add	x8, x22, w24, uxtw
	add	x9, x22, w26, uxtw
	stp	x8, x22, [sp, #32]
	add	x8, x22, w23, uxtw
	stp	x8, x9, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w8, [sp, #60]
	str	w8, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_png_set_text_2
	cbz	x0, LBB0_14
; %bb.43:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_iTXt"

	.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
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"bad keyword"

l_.str.4:                               ; @.str.4
	.asciz	"truncated"

	.comm	_PNG_COMPRESSION_TYPE_BASE,4,2  ; @PNG_COMPRESSION_TYPE_BASE
	.comm	_PNG_SIZE_MAX,4,2               ; @PNG_SIZE_MAX
	.comm	_Z_STREAM_END,8,3               ; @Z_STREAM_END
	.comm	_PNG_ITXT_COMPRESSION_NONE,4,2  ; @PNG_ITXT_COMPRESSION_NONE
	.comm	_PNG_ITXT_COMPRESSION_zTXt,4,2  ; @PNG_ITXT_COMPRESSION_zTXt
l_.str.5:                               ; @.str.5
	.asciz	"insufficient memory"

l_.str.6:                               ; @.str.6
	.asciz	"bad compression info"

.subsections_via_symbols
