	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function has_png_transparency_chunk
_has_png_transparency_chunk:            ## @has_png_transparency_chunk
	.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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$8, %r13d
	leaq	-64(%rbp), %r12
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STREAM_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	leaq	-88(%rbp), %rcx
	callq	_IStream_Seek
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	leaq	-96(%rbp), %rcx
	callq	_IStream_Read
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$8, -96(%rbp)
	jl	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-80(%rbp), %r15d
	movl	-76(%rbp), %r13d
	movl	-72(%rbp), %ebx
	movl	-68(%rbp), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-88(%rbp), %r14d
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	shll	$24, %r15d
	shll	$16, %r13d
	orl	%r15d, %r13d
	shll	$8, %ebx
	orl	%r13d, %ebx
	orl	-92(%rbp), %ebx                 ## 4-byte Folded Reload
	leal	(%rbx,%r14), %r13d
	addl	$12, %r13d
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_1
LBB0_8:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_STREAM_SEEK_SET,4,2            ## @STREAM_SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tRNS"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"IDAT"

L_.str.2:                               ## @.str.2
	.asciz	"IEND"

L_.str.3:                               ## @.str.3
	.asciz	"has_tRNS = %d\n"

	.no_dead_strip	_has_png_transparency_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function has_png_transparency_chunk
_has_png_transparency_chunk:            ; @has_png_transparency_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	add	x8, sp, #24
	add	x21, x8, #16
	mov	w26, #8
Lloh6:
	adrp	x25, _STREAM_SEEK_SET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _STREAM_SEEK_SET@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	w1, w26
	add	x3, sp, #16
	mov	x0, x20
	bl	_IStream_Seek
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #24
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #8
	bl	_IStream_Read
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #8
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w26, w19, [sp, #24]
	ldp	w27, w28, [sp, #32]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w24, [sp, #16]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w8, w19, #16
	orr	w8, w8, w26, lsl #24
	orr	w8, w8, w27, lsl #8
	orr	w8, w8, w28
	add	w8, w8, w24
	add	w26, w8, #12
	mov	x0, x21
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_1
LBB0_7:
	ldr	w19, [sp, #8]                   ; 4-byte Folded Reload
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	ldr	x8, [sp, #56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_STREAM_SEEK_SET,4,2            ; @STREAM_SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tRNS"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"IDAT"

l_.str.2:                               ; @.str.2
	.asciz	"IEND"

l_.str.3:                               ; @.str.3
	.asciz	"has_tRNS = %d\n"

	.no_dead_strip	_has_png_transparency_chunk
.subsections_via_symbols
