	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addChunk_bKGD
_addChunk_bKGD:                         ## @addChunk_bKGD
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	callq	_ucvector_init
	movq	16(%rbx), %rax
	movq	_LCT_GREY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	_LCT_GREY_ALPHA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_LCT_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_LCT_RGBA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_LCT_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	(%rbx), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	leaq	-32(%rbp), %rdi
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movl	4(%rbx), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movzbl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_ucvector_push_back
	movl	8(%rbx), %eax
	addq	$8, %rbx
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movzbl	%ch, %esi
	movq	%r15, %rdi
LBB0_7:
	callq	_ucvector_push_back
LBB0_8:
	movzbl	(%rbx), %esi
	leaq	-32(%rbp), %rdi
	callq	_ucvector_push_back
LBB0_9:
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_addChunk
	movl	%eax, %ebx
	leaq	-32(%rbp), %rdi
	callq	_ucvector_cleanup
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_LCT_PALETTE,8,3                ## @LCT_PALETTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bKGD"

	.no_dead_strip	_addChunk_bKGD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addChunk_bKGD
_addChunk_bKGD:                         ; @addChunk_bKGD
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_ucvector_init
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _LCT_GREY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCT_GREY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _LCT_GREY_ALPHA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LCT_GREY_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _LCT_RGB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _LCT_RGBA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LCT_RGBA@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x20]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldrb	w1, [x20]
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldr	w8, [x20, #4]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldrb	w1, [x20, #4]
	add	x0, sp, #8
	bl	_ucvector_push_back
	ldr	w8, [x20, #8]!
LBB0_4:
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ubfx	w1, w8, #8, #8
	add	x0, sp, #8
	bl	_ucvector_push_back
LBB0_5:
	ldrb	w1, [x20]
	add	x0, sp, #8
	bl	_ucvector_push_back
LBB0_6:
	ldp	w3, w2, [sp, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_addChunk
	mov	x19, x0
	add	x0, sp, #8
	bl	_ucvector_cleanup
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh14:
	adrp	x9, _LCT_PALETTE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LCT_PALETTE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_LCT_PALETTE,8,3                ; @LCT_PALETTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bKGD"

	.no_dead_strip	_addChunk_bKGD
.subsections_via_symbols
