	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readChunk_tRNS
_readChunk_tRNS:                        ## @readChunk_tRNS
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_LCT_PALETTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.1:
	movl	$38, %eax
	cmpq	%rdx, 8(%rdi)
	jb	LBB0_5
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.3:
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%r10), %r8d
	movq	16(%rdi), %r9
	leal	(,%r10,4), %ecx
	movb	%r8b, 3(%r9,%rcx)
	incl	%r10d
	cmpq	%rdx, %r10
	jb	LBB0_4
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	_LCT_GREY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.7:
	movl	$30, %eax
	cmpq	$2, %rdx
	jne	LBB0_5
## %bb.8:
	movl	$1, 24(%rdi)
	movzwl	(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	movl	%eax, 36(%rdi)
	movl	%eax, 32(%rdi)
	movl	%eax, 28(%rdi)
	jmp	LBB0_12
LBB0_9:
	movq	_LCT_RGB@GOTPCREL(%rip), %r8
	movl	$42, %eax
	cmpq	(%r8), %rcx
	jne	LBB0_5
## %bb.10:
	movl	$41, %eax
	cmpq	$6, %rdx
	jne	LBB0_5
## %bb.11:
	movl	$1, 24(%rdi)
	movzwl	(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	movl	%eax, 28(%rdi)
	movzwl	2(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	movl	%eax, 32(%rdi)
	movzwl	4(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	movl	%eax, 36(%rdi)
LBB0_12:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCT_PALETTE,8,3                ## @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ## @LCT_GREY
	.comm	_LCT_RGB,8,3                    ## @LCT_RGB
	.no_dead_strip	_readChunk_tRNS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readChunk_tRNS
_readChunk_tRNS:                        ; @readChunk_tRNS
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LCT_PALETTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCT_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	cmp	x8, x2
	b.hs	LBB0_6
; %bb.2:
	mov	w0, #38
	ret
LBB0_3:
Lloh3:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	cmp	x2, #2
	b.ne	LBB0_13
; %bb.5:
	mov	w9, #1
	str	w9, [x0, #24]
	ldrh	w9, [x1]
	rev16	w9, w9
	stp	w9, w9, [x0, #32]
	str	w9, [x0, #28]
	mov	w0, #0
	ret
LBB0_6:
	cbz	x2, LBB0_9
; %bb.7:
	mov	x8, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1, x8]
	ldr	x10, [x0, #16]
	lsl	w11, w8, #2
	add	x10, x10, x11
	strb	w9, [x10, #3]
	add	w8, w8, #1
	cmp	x8, x2
	b.lo	LBB0_8
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
Lloh6:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	cmp	x2, #6
	b.ne	LBB0_15
; %bb.12:
	mov	w9, #1
	str	w9, [x0, #24]
	ldrh	w9, [x1]
	rev16	w9, w9
	str	w9, [x0, #28]
	ldrh	w9, [x1, #2]
	rev16	w9, w9
	str	w9, [x0, #32]
	ldrh	w9, [x1, #4]
	rev16	w9, w9
	str	w9, [x0, #36]
	mov	w0, #0
	ret
LBB0_13:
	mov	w0, #30
	ret
LBB0_14:
	mov	w0, #42
	ret
LBB0_15:
	mov	w0, #41
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LCT_PALETTE,8,3                ; @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ; @LCT_GREY
	.comm	_LCT_RGB,8,3                    ; @LCT_RGB
	.no_dead_strip	_readChunk_tRNS
.subsections_via_symbols
