	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readChunk_bKGD
_readChunk_bKGD:                        ## @readChunk_bKGD
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r9
	movq	_LCT_PALETTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	jne	LBB0_4
## %bb.1:
	movl	$43, %eax
	cmpq	$1, %rdx
	jne	LBB0_13
## %bb.2:
	movl	$1, (%rdi)
	movb	(%rsi), %al
	jmp	LBB0_3
LBB0_4:
	movq	_LCT_GREY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	je	LBB0_6
## %bb.5:
	movq	_LCT_GREY_ALPHA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	je	LBB0_6
## %bb.8:
	movq	_LCT_RGB@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %r9
	je	LBB0_10
## %bb.9:
	movq	_LCT_RGBA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	je	LBB0_10
LBB0_13:
	popq	%rbp
	retq
LBB0_6:
	movl	$44, %eax
	cmpq	$2, %rdx
	jne	LBB0_13
## %bb.7:
	movl	$1, (%rdi)
	movb	1(%rsi), %al
LBB0_3:
	movb	%al, 6(%rdi)
	movb	%al, 5(%rdi)
	movb	%al, 4(%rdi)
LBB0_12:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_10:
	movl	$45, %eax
	cmpq	$6, %rdx
	jne	LBB0_13
## %bb.11:
	movl	$1, (%rdi)
	movb	1(%rsi), %al
	movb	%al, 4(%rdi)
	movb	3(%rsi), %al
	movb	%al, 5(%rdi)
	movb	5(%rsi), %al
	movb	%al, 6(%rdi)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_LCT_PALETTE,8,3                ## @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ## @LCT_GREY
	.comm	_LCT_GREY_ALPHA,8,3             ## @LCT_GREY_ALPHA
	.comm	_LCT_RGB,8,3                    ## @LCT_RGB
	.comm	_LCT_RGBA,8,3                   ## @LCT_RGBA
	.no_dead_strip	_readChunk_bKGD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readChunk_bKGD
_readChunk_bKGD:                        ; @readChunk_bKGD
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
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:
	cmp	x2, #1
	b.ne	LBB0_7
; %bb.2:
	mov	w8, #0
	mov	w9, #1
	str	w9, [x0]
	ldrb	w9, [x1]
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _LCT_GREY_ALPHA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LCT_GREY_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.4:
	cmp	x2, #2
	b.ne	LBB0_11
; %bb.5:
	mov	w8, #0
	mov	w9, #1
	str	w9, [x0]
	ldrb	w9, [x1, #1]
LBB0_6:
	strb	w9, [x0, #6]
	strb	w9, [x0, #5]
	strb	w9, [x0, #4]
	mov	x0, x8
	ret
LBB0_7:
	mov	w0, #43
	ret
LBB0_8:
Lloh9:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _LCT_RGBA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LCT_RGBA@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.9:
	cmp	x2, #6
	b.ne	LBB0_13
; %bb.10:
	mov	w9, #1
	str	w9, [x0]
	ldrb	w9, [x1, #1]
	strb	w9, [x0, #4]
	ldrb	w9, [x1, #3]
	strb	w9, [x0, #5]
	ldrb	w9, [x1, #5]
	strb	w9, [x0, #6]
	mov	w0, #0
	ret
LBB0_11:
	mov	w0, #44
	ret
LBB0_12:
	mov	w0, #0
	ret
LBB0_13:
	mov	w0, #45
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LCT_PALETTE,8,3                ; @LCT_PALETTE
	.comm	_LCT_GREY,8,3                   ; @LCT_GREY
	.comm	_LCT_GREY_ALPHA,8,3             ; @LCT_GREY_ALPHA
	.comm	_LCT_RGB,8,3                    ; @LCT_RGB
	.comm	_LCT_RGBA,8,3                   ; @LCT_RGBA
	.no_dead_strip	_readChunk_bKGD
.subsections_via_symbols
