	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_tRNS                ## -- Begin function png_handle_tRNS
	.p2align	4, 0x90
_png_handle_tRNS:                       ## @png_handle_tRNS
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PNG_MAX_PALETTE_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%rbx), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_error
LBB0_2:
	movq	8(%rbx), %rax
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.3:
	cmpl	$2, %r12d
	jne	LBB0_16
## %bb.4:
	leaq	-80(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_png_crc_read
	movl	$1, 16(%rbx)
	movq	%r12, %rdi
	callq	_png_get_uint_16
	movq	%rax, 48(%rbx)
	jmp	LBB0_26
LBB0_13:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	cmpl	$6, %r12d
	jne	LBB0_16
## %bb.15:
	leaq	-80(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_png_crc_read
	movl	$1, 16(%rbx)
	movq	%r12, %rdi
	callq	_png_get_uint_16
	movq	%rax, 40(%rbx)
	leaq	-72(%rbp), %rdi
	callq	_png_get_uint_16
	movq	%rax, 32(%rbx)
	leaq	-64(%rbp), %rdi
	callq	_png_get_uint_16
	movq	%rax, 24(%rbx)
LBB0_26:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	$0, 16(%rbx)
	jmp	LBB0_29
LBB0_9:
	testq	%r14, %r14
	je	LBB0_2
## %bb.10:
	movq	_PNG_INFO_tRNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.11:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_16:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
	jmp	LBB0_29
LBB0_17:
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.18:
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.19:
	cmpl	%r12d, 56(%rbx)
	jb	LBB0_21
## %bb.20:
	leal	-1(%r12), %eax
	cmpl	(%r13), %eax
	jae	LBB0_21
## %bb.25:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_png_crc_read
	movl	%r12d, 16(%rbx)
	jmp	LBB0_26
LBB0_28:
	movl	16(%rbx), %ecx
	leaq	24(%rbx), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_png_set_tRNS
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.24:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_21:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.22:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_8
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_MAX_PALETTE_LENGTH,4,2     ## @PNG_MAX_PALETTE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_tRNS"

	.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"

	.comm	_PNG_INFO_tRNS,4,2              ## @PNG_INFO_tRNS
L_.str.3:                               ## @.str.3
	.asciz	"duplicate"

	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ## @PNG_COLOR_TYPE_GRAY
L_.str.4:                               ## @.str.4
	.asciz	"invalid"

	.comm	_PNG_COLOR_TYPE_RGB,8,3         ## @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ## @PNG_COLOR_TYPE_PALETTE
	.comm	_PNG_HAVE_PLTE,4,2              ## @PNG_HAVE_PLTE
L_.str.5:                               ## @.str.5
	.asciz	"invalid with alpha channel"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_tRNS                ; -- Begin function png_handle_tRNS
	.p2align	2
_png_handle_tRNS:                       ; @png_handle_tRNS
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x22, x2
	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, #-56]
Lloh3:
	adrp	x23, _PNG_MAX_PALETTE_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PNG_MAX_PALETTE_LENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh12:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_png_crc_finish
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.3:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_png_chunk_benign_error
LBB0_5:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
LBB0_6:
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _PNG_COLOR_TYPE_GRAY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PNG_COLOR_TYPE_GRAY@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	cmp	w22, #2
	b.ne	LBB0_18
; %bb.8:
	sub	x1, x29, #80
	mov	x0, x19
	mov	w2, #2
	bl	_png_crc_read
	mov	w8, #1
	str	w8, [x19, #16]
	sub	x0, x29, #80
	bl	_png_get_uint_16
	str	x0, [x19, #48]
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x9, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.10:
	cmp	w22, #6
	b.ne	LBB0_18
; %bb.11:
	sub	x22, x29, #80
	sub	x1, x29, #80
	mov	x0, x19
	mov	w2, #6
	bl	_png_crc_read
	mov	w8, #1
	str	w8, [x19, #16]
	sub	x0, x29, #80
	bl	_png_get_uint_16
	str	x0, [x19, #40]
	add	x0, x22, #8
	bl	_png_get_uint_16
	str	x0, [x19, #32]
	add	x0, x22, #16
	bl	_png_get_uint_16
	str	x0, [x19, #24]
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbz	x0, LBB0_24
; %bb.13:
	str	wzr, [x19, #16]
	b	LBB0_25
LBB0_14:
	cbz	x20, LBB0_6
; %bb.15:
	ldr	w8, [x20]
Lloh28:
	adrp	x9, _PNG_INFO_tRNS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PNG_INFO_tRNS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.16:
	mov	x0, x19
	mov	x1, x22
	bl	_png_crc_finish
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.17:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_18:
	mov	x0, x19
	mov	x1, x22
	bl	_png_crc_finish
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_benign_error
	b	LBB0_25
LBB0_19:
Lloh38:
	adrp	x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.20:
	ldr	w8, [x19]
Lloh41:
	adrp	x9, _PNG_HAVE_PLTE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PNG_HAVE_PLTE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.21:
	ldr	w8, [x19, #56]
	cmp	w8, w22
	b.lo	LBB0_29
; %bb.22:
	ldr	w8, [x23]
	sub	w9, w22, #1
	cmp	w9, w8
	b.hs	LBB0_29
; %bb.23:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_png_crc_read
	str	w22, [x19, #16]
	b	LBB0_12
LBB0_24:
	ldr	w3, [x19, #16]
	add	x4, x19, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_png_set_tRNS
LBB0_25:
	ldur	x8, [x29, #-56]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.26:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	bl	_png_crc_finish
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.28:
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_29:
	mov	x0, x19
	mov	x1, x22
	bl	_png_crc_finish
	ldur	x8, [x29, #-56]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_MAX_PALETTE_LENGTH,4,2     ; @PNG_MAX_PALETTE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_tRNS"

	.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"

	.comm	_PNG_INFO_tRNS,4,2              ; @PNG_INFO_tRNS
l_.str.3:                               ; @.str.3
	.asciz	"duplicate"

	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ; @PNG_COLOR_TYPE_GRAY
l_.str.4:                               ; @.str.4
	.asciz	"invalid"

	.comm	_PNG_COLOR_TYPE_RGB,8,3         ; @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ; @PNG_COLOR_TYPE_PALETTE
	.comm	_PNG_HAVE_PLTE,4,2              ; @PNG_HAVE_PLTE
l_.str.5:                               ; @.str.5
	.asciz	"invalid with alpha channel"

.subsections_via_symbols
