	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PNG_MAX_PALETTE_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movb	(%r13), %cl
	movl	$-1, %ebx
	shll	%cl, %ebx
	movl	4(%r13), %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_10
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r13, %rdi
	callq	_png_warning
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.8:
	movq	%r13, %rdi
	movl	%r15d, %esi
LBB0_9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_crc_finish                 ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_png_error
LBB0_2:
	notl	%ebx
	movq	8(%r13), %rax
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.3:
	cmpl	$2, %r15d
	jne	LBB0_17
## %bb.4:
	leaq	-80(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_png_crc_read
	movl	$1, 16(%r13)
	movq	%r15, %rdi
	callq	_png_get_uint_16
	andl	%ebx, %eax
	movl	%eax, 20(%r13)
	jmp	LBB0_29
LBB0_14:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	cmpl	$6, %r15d
	jne	LBB0_17
## %bb.16:
	leaq	-80(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_png_crc_read
	movl	$1, 16(%r13)
	movq	%r15, %rdi
	callq	_png_get_uint_16
	andl	%ebx, %eax
	movl	%eax, 24(%r13)
	leaq	-72(%rbp), %rdi
	callq	_png_get_uint_16
	andl	%ebx, %eax
	movl	%eax, 28(%r13)
	leaq	-64(%rbp), %rdi
	callq	_png_get_uint_16
	andl	%ebx, %eax
	movl	%eax, 32(%r13)
	jmp	LBB0_29
LBB0_10:
	testq	%r14, %r14
	je	LBB0_2
## %bb.11:
	movq	_PNG_INFO_tRNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_png_warning
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_png_crc_finish
	jmp	LBB0_32
LBB0_18:
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.19:
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_png_warning
LBB0_21:
	cmpl	%r15d, 40(%r13)
	jl	LBB0_23
## %bb.22:
	cmpl	%r15d, (%r12)
	jl	LBB0_23
## %bb.24:
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.28:
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_png_crc_read
	movl	%r15d, 16(%r13)
LBB0_29:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	$0, 16(%r13)
	jmp	LBB0_32
LBB0_31:
	movl	16(%r13), %ecx
	leaq	20(%r13), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_png_set_tRNS
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.33:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_7
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_25:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_png_warning
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.26:
	movq	%r13, %rdi
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_13:
	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\n"

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

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid tRNS after IDAT"

	.comm	_PNG_INFO_tRNS,4,2              ## @PNG_INFO_tRNS
L_.str.3:                               ## @.str.3
	.asciz	"Duplicate tRNS chunk"

	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ## @PNG_COLOR_TYPE_GRAY
L_.str.4:                               ## @.str.4
	.asciz	"Incorrect tRNS chunk length"

	.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	"Missing PLTE before tRNS"

L_.str.6:                               ## @.str.6
	.asciz	"Zero length tRNS chunk"

L_.str.7:                               ## @.str.7
	.asciz	"tRNS chunk not allowed 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	x20, x2
	mov	x21, 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	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldp	w24, 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_6
; %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_13
; %bb.2:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_png_warning
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.4:
	mov	x0, x19
	mov	x1, x20
LBB0_5:
	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_crc_finish
LBB0_6:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_error
LBB0_7:
	mov	w8, #-1
	lsl	w8, w8, w24
	mvn	w24, w8
	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_10
; %bb.8:
	cmp	w20, #2
	b.ne	LBB0_16
; %bb.9:
	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
	and	w8, w0, w24
	str	w8, [x19, #20]
	b	LBB0_24
LBB0_10:
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_17
; %bb.11:
	cmp	w20, #6
	b.ne	LBB0_16
; %bb.12:
	sub	x20, 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
	and	w8, w0, w24
	str	w8, [x19, #24]
	add	x0, x20, #8
	bl	_png_get_uint_16
	and	w8, w0, w24
	str	w8, [x19, #28]
	add	x0, x20, #16
	bl	_png_get_uint_16
	and	w8, w0, w24
	str	w8, [x19, #32]
	b	LBB0_24
LBB0_13:
	cbz	x21, LBB0_7
; %bb.14:
	ldr	w8, [x21]
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_7
; %bb.15:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_16:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	mov	x0, x19
	mov	x1, x20
	bl	_png_crc_finish
	b	LBB0_27
LBB0_17:
Lloh35:
	adrp	x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.18:
	ldr	w8, [x19, #4]
Lloh38:
	adrp	x9, _PNG_HAVE_PLTE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PNG_HAVE_PLTE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.19:
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_png_warning
LBB0_20:
	ldr	w8, [x19, #40]
	cmp	w8, w20
	b.lt	LBB0_30
; %bb.21:
	ldr	w8, [x23]
	cmp	w8, w20
	b.lt	LBB0_30
; %bb.22:
	cbz	w20, LBB0_31
; %bb.23:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_png_crc_read
	str	w20, [x19, #16]
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbz	x0, LBB0_26
; %bb.25:
	str	wzr, [x19, #16]
	b	LBB0_27
LBB0_26:
	ldr	w3, [x19, #16]
	add	x4, x19, #20
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_png_set_tRNS
LBB0_27:
	ldur	x8, [x29, #-56]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.28:
	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_29:
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_3
LBB0_30:
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_31:
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	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_33
; %bb.32:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_5
LBB0_33:
	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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.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\n"

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

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid tRNS after IDAT"

	.comm	_PNG_INFO_tRNS,4,2              ; @PNG_INFO_tRNS
l_.str.3:                               ; @.str.3
	.asciz	"Duplicate tRNS chunk"

	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ; @PNG_COLOR_TYPE_GRAY
l_.str.4:                               ; @.str.4
	.asciz	"Incorrect tRNS chunk length"

	.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	"Missing PLTE before tRNS"

l_.str.6:                               ; @.str.6
	.asciz	"Zero length tRNS chunk"

l_.str.7:                               ; @.str.7
	.asciz	"tRNS chunk not allowed with alpha channel"

.subsections_via_symbols
