	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_tRNS                 ## -- Begin function png_write_tRNS
	.p2align	4, 0x90
_png_write_tRNS:                        ## @png_write_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	%r8d, %ebx
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.2:
	cmpl	%r13d, 8(%r14)
	jge	LBB0_6
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.9:
	movl	(%r15), %esi
	movb	(%r14), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%eax, %esi
	jge	LBB0_10
## %bb.19:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_png_save_uint_16
	movq	_png_tRNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	jmp	LBB0_20
LBB0_12:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_17
## %bb.13:
	movl	4(%r15), %esi
	leaq	-80(%rbp), %rdi
	callq	_png_save_uint_16
	leaq	-72(%rbp), %rdi
	movl	8(%r15), %esi
	callq	_png_save_uint_16
	leaq	-64(%rbp), %rdi
	movl	12(%r15), %esi
	callq	_png_save_uint_16
	cmpl	$8, (%r14)
	jne	LBB0_16
## %bb.14:
	movl	-72(%rbp), %eax
	orl	-80(%rbp), %eax
	orl	-64(%rbp), %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_png_warning
	jmp	LBB0_21
LBB0_6:
	movq	_png_tRNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.7:
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_write_chunk                ## TAILCALL
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_warning                    ## TAILCALL
LBB0_16:
	movq	_png_tRNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	$6, %ecx
LBB0_20:
	callq	_png_write_chunk
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_tRNS\n"

	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ## @PNG_COLOR_TYPE_PALETTE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of transparent colors specified"

	.comm	_png_tRNS,4,2                   ## @png_tRNS
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ## @PNG_COLOR_TYPE_GRAY
L_.str.2:                               ## @.str.2
	.asciz	"Ignoring attempt to write tRNS chunk out-of-range for bit_depth"

	.comm	_PNG_COLOR_TYPE_RGB,4,2         ## @PNG_COLOR_TYPE_RGB
L_.str.3:                               ## @.str.3
	.asciz	"Ignoring attempt to write 16-bit tRNS chunk when bit_depth is 8"

L_.str.4:                               ## @.str.4
	.asciz	"Can't write tRNS with an alpha channel"

	.comm	_PNG_tRNS,4,2                   ## @PNG_tRNS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_tRNS                 ; -- Begin function png_write_tRNS
	.p2align	2
_png_write_tRNS:                        ; @png_write_tRNS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, 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, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
Lloh5:
	adrp	x8, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.ge	LBB0_12
LBB0_3:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_5:
Lloh13:
	adrp	x8, _PNG_COLOR_TYPE_GRAY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PNG_COLOR_TYPE_GRAY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [x20]
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w1, w8
	b.ge	LBB0_14
; %bb.7:
	mov	x0, sp
	bl	_png_save_uint_16
Lloh16:
	adrp	x8, _png_tRNS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _png_tRNS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #2
	b	LBB0_20
LBB0_8:
Lloh19:
	adrp	x8, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.9:
	ldr	w1, [x20, #4]
	mov	x21, sp
	mov	x0, sp
	bl	_png_save_uint_16
	add	x0, x21, #8
	ldr	w1, [x20, #8]
	bl	_png_save_uint_16
	add	x0, x21, #16
	ldr	w1, [x20, #12]
	bl	_png_save_uint_16
	ldr	w8, [x19]
	cmp	w8, #8
	b.ne	LBB0_19
; %bb.10:
	ldr	w8, [sp]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	ldr	w9, [sp, #16]
	orr	w8, w8, w9
	cbz	w8, LBB0_19
; %bb.11:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	b	LBB0_21
LBB0_12:
Lloh24:
	adrp	x8, _png_tRNS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _png_tRNS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.13:
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_png_write_chunk
LBB0_14:
	ldr	x8, [sp, #24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.15:
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_16:
	ldr	x8, [sp, #24]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.17:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_png_warning
LBB0_19:
Lloh40:
	adrp	x8, _png_tRNS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _png_tRNS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #6
LBB0_20:
	bl	_png_write_chunk
LBB0_21:
	ldr	x8, [sp, #24]
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_23
; %bb.22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_tRNS\n"

	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ; @PNG_COLOR_TYPE_PALETTE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of transparent colors specified"

	.comm	_png_tRNS,4,2                   ; @png_tRNS
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ; @PNG_COLOR_TYPE_GRAY
l_.str.2:                               ; @.str.2
	.asciz	"Ignoring attempt to write tRNS chunk out-of-range for bit_depth"

	.comm	_PNG_COLOR_TYPE_RGB,4,2         ; @PNG_COLOR_TYPE_RGB
l_.str.3:                               ; @.str.3
	.asciz	"Ignoring attempt to write 16-bit tRNS chunk when bit_depth is 8"

l_.str.4:                               ; @.str.4
	.asciz	"Can't write tRNS with an alpha channel"

	.comm	_PNG_tRNS,4,2                   ; @PNG_tRNS
.subsections_via_symbols
