	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pixel_in_context
_decode_pixel_in_context:               ## @decode_pixel_in_context
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	movl	16(%rbp), %eax
	leaq	(,%r12,8), %rcx
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	movq	(%rdx), %rdx
	movq	_TOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, -80(%rbp,%rcx,8)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdx
	notq	%rdx
	movq	(%rbx,%rdx,8), %rdx
	movq	_TOP_LEFT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, -80(%rbp,%rsi,8)
	movq	-8(%rbx), %rdx
	movq	_LEFT@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	-8(%rbx), %rsi
	leaq	-80(%rbp), %rdi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_9
LBB0_3:
	movq	_LEFT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, -80(%rbp,%rsi,8)
	movq	_TOP_LEFT@GOTPCREL(%rip), %rsi
LBB0_5:
	movq	(%rsi), %rsi
	movq	%rdx, -80(%rbp,%rsi,8)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	$1, %eax
	subq	%r12, %rax
	movq	(%rbx,%rax,8), %rax
	jmp	LBB0_8
LBB0_7:
	movq	-80(%rbp,%rcx,8), %rax
LBB0_8:
	movq	_TOP_RIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, -80(%rbp,%rcx,8)
LBB0_9:
	xorl	%r9d, %r9d
	cmpl	$2, %r14d
	jl	LBB0_11
## %bb.10:
	movq	-16(%rbx), %rcx
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%r9d, %r9d
	cmpq	-80(%rbp,%rdx,8), %rcx
	sete	%r9b
LBB0_11:
	cmpl	$2, %r13d
	movq	%r15, %r14
	jl	LBB0_13
## %bb.12:
	shlq	$4, %r12
	subq	%r12, %rbx
	movq	(%rbx), %rcx
	movq	_TOP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leal	2(%r9), %esi
	cmpq	-80(%rbp,%rdx,8), %rcx
	cmovnel	%r9d, %esi
	movl	%esi, %r9d
LBB0_13:
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx
	movq	%rcx, -112(%rbp)
	movl	$1, %ebx
	cmpq	%rdx, %rcx
	je	LBB0_15
## %bb.14:
	movq	%rdx, -104(%rbp)
	movl	$2, %ebx
LBB0_15:
	movq	-64(%rbp), %rsi
	xorl	%edi, %edi
	cmpq	%rsi, %rcx
	jne	LBB0_16
LBB0_19:
	cmpl	%edi, %ebx
	je	LBB0_20
	jmp	LBB0_21
LBB0_16:
	cmpq	%rdx, %rcx
	je	LBB0_20
## %bb.17:
	movq	-104(%rbp), %r8
	xorl	%eax, %eax
	cmpq	%rsi, %r8
	sete	%al
	movl	$2, %edi
	subl	%eax, %edi
	cmpq	%rsi, %r8
	je	LBB0_19
## %bb.18:
	cmpq	%rdx, %rcx
	je	LBB0_19
LBB0_20:
	movl	%ebx, %eax
	movq	-64(%rbp), %rdx
	incl	%ebx
	movq	%rdx, -112(%rbp,%rax,8)
LBB0_21:
	movq	-56(%rbp), %rdx
	xorl	%esi, %esi
	cmpq	%rdx, %rcx
	je	LBB0_27
## %bb.22:
	cmpl	$1, %ebx
	je	LBB0_28
## %bb.23:
	movl	$1, %esi
	cmpq	%rdx, -104(%rbp)
	je	LBB0_27
## %bb.24:
	cmpl	$2, %ebx
	je	LBB0_28
## %bb.25:
	movl	$2, %esi
	cmpq	%rdx, -96(%rbp)
	je	LBB0_27
## %bb.26:
	movl	$3, %esi
	cmpl	$3, %ebx
	je	LBB0_28
LBB0_27:
	cmpl	%esi, %ebx
	jne	LBB0_29
LBB0_28:
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx
	incl	%ebx
	movq	%rcx, -112(%rbp,%rax,8)
LBB0_29:
	cmpl	$4, %ebx
	je	LBB0_44
## %bb.30:
	cmpl	$3, %ebx
	je	LBB0_39
## %bb.31:
	cmpl	$2, %ebx
	jne	LBB0_32
## %bb.33:
	movq	_TOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rdx
	movq	_TOP_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rsi
	movq	_TOP_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_36
## %bb.34:
	movl	$1, %ecx
	cmpq	%rdx, %rdi
	je	LBB0_45
## %bb.35:
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	%rdx, -80(%rbp,%rax,8)
	sete	%cl
	xorq	$3, %rcx
	jmp	LBB0_45
LBB0_44:
	movl	$14, %ecx
	jmp	LBB0_45
LBB0_39:
	movq	_TOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rdx
	movq	_TOP_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rsi
	movl	$8, %ecx
	cmpq	%rsi, %rdx
	je	LBB0_45
## %bb.40:
	movq	_TOP_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rdi
	movl	$9, %ecx
	cmpq	%rsi, %rdi
	je	LBB0_45
## %bb.41:
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %r8
	movl	$10, %ecx
	cmpq	%rsi, %r8
	je	LBB0_45
## %bb.42:
	movl	$11, %ecx
	cmpq	%rdx, %rdi
	je	LBB0_45
## %bb.43:
	xorl	%ecx, %ecx
	cmpq	%r8, %rdx
	sete	%cl
	xorq	$13, %rcx
	jmp	LBB0_45
LBB0_32:
	xorl	%ecx, %ecx
LBB0_45:
	movq	(%r14), %rax
	movl	%r9d, %esi
	shlq	$2, %rsi
	addq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	cmpl	%ebx, %eax
	jge	LBB0_47
## %bb.46:
	cltq
	movl	-112(%rbp,%rax,8), %eax
	jmp	LBB0_48
LBB0_47:
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_decode_pixel
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_50
## %bb.49:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp,%rax,8), %rdx
	xorl	%ecx, %ecx
	cmpq	%rsi, %rdi
	jne	LBB0_38
## %bb.37:
	cmpq	%rsi, %rdx
	sete	%cl
	xorq	$5, %rcx
	jmp	LBB0_45
LBB0_38:
	cmpq	%rsi, %rdx
	sete	%cl
	xorq	$7, %rcx
	jmp	LBB0_45
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TOP,8,3                        ## @TOP
	.comm	_LEFT,8,3                       ## @LEFT
	.comm	_TOP_LEFT,8,3                   ## @TOP_LEFT
	.comm	_TOP_RIGHT,8,3                  ## @TOP_RIGHT
	.no_dead_strip	_decode_pixel_in_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pixel_in_context
_decode_pixel_in_context:               ; @decode_pixel_in_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	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, #72]
Lloh3:
	adrp	x26, _TOP@GOTPAGE
Lloh4:
	ldr	x26, [x26, _TOP@GOTPAGEOFF]
Lloh5:
	adrp	x25, _LEFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LEFT@GOTPAGEOFF]
	cbz	w5, LBB0_3
; %bb.1:
	sub	x8, x22, x21, lsl #3
	ldr	x9, [x8]
	ldr	x8, [x26]
	add	x10, sp, #40
	str	x9, [x10, x8, lsl #3]
	cbz	w24, LBB0_5
; %bb.2:
	mvn	x9, x21
	ldr	x9, [x22, x9, lsl #3]
Lloh7:
	adrp	x11, _TOP_LEFT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _TOP_LEFT@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	str	x9, [x10, x11, lsl #3]
	ldur	x9, [x22, #-8]
Lloh10:
	adrp	x10, _LEFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _LEFT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldur	x1, [x22, #-8]
	add	x0, sp, #40
	mov	w2, #4
	bl	_memset
	cmp	w24, #2
	b.ge	LBB0_10
LBB0_4:
	mov	w8, #0
	cmp	w23, #2
	b.ge	LBB0_11
	b	LBB0_12
LBB0_5:
	ldr	x11, [x25]
	str	x9, [x10, x11, lsl #3]
Lloh12:
	adrp	x10, _TOP_LEFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TOP_LEFT@GOTPAGEOFF]
LBB0_6:
	ldr	x11, [x10]
	add	x10, sp, #40
	str	x9, [x10, x11, lsl #3]
Lloh14:
	adrp	x9, _TOP_RIGHT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TOP_RIGHT@GOTPAGEOFF]
	cbz	w6, LBB0_8
; %bb.7:
	mov	w8, #1
	sub	x8, x8, x21
	ldr	x8, [x22, x8, lsl #3]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x10, x8, lsl #3]
LBB0_9:
	ldr	x9, [x9]
	str	x8, [x10, x9, lsl #3]
	cmp	w24, #2
	b.lt	LBB0_4
LBB0_10:
	ldur	x8, [x22, #-16]
	ldr	x9, [x25]
	add	x10, sp, #40
	ldr	x9, [x10, x9, lsl #3]
	cmp	x8, x9
	cset	w8, eq
	cmp	w23, #2
	b.lt	LBB0_12
LBB0_11:
	sub	x9, x22, x21, lsl #4
	ldr	x9, [x9]
	ldr	x10, [x26]
	add	x11, sp, #40
	ldr	x10, [x11, x10, lsl #3]
	orr	w11, w8, #0x2
	cmp	x9, x10
	csel	w8, w11, w8, eq
LBB0_12:
	ldp	x9, x10, [sp, #40]
	str	x9, [sp, #8]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	mov	w21, #1
	b	LBB0_15
LBB0_14:
	str	x10, [sp, #16]
	mov	w21, #2
LBB0_15:
	ldr	x11, [sp, #56]
	cmp	x9, x11
	b.ne	LBB0_18
; %bb.16:
	mov	w11, #0
LBB0_17:
	cmp	w21, w11
	b.eq	LBB0_21
	b	LBB0_22
LBB0_18:
	cmp	x9, x10
	b.eq	LBB0_21
; %bb.19:
	ldr	x12, [sp, #16]
	mov	w13, #1
	cmp	x12, x11
	cinc	w11, w13, ne
	b.eq	LBB0_17
; %bb.20:
	cmp	x9, x10
	b.eq	LBB0_17
LBB0_21:
	mov	w10, w21
	ldr	x11, [sp, #56]
	add	w21, w21, #1
	add	x12, sp, #8
	str	x11, [x12, x10, lsl #3]
LBB0_22:
	ldr	x10, [sp, #64]
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.23:
	mov	w9, #0
	cmp	w21, w9
	b.eq	LBB0_49
LBB0_24:
	cmp	w21, #4
	b.eq	LBB0_50
LBB0_25:
	cmp	w21, #3
	b.eq	LBB0_33
; %bb.26:
	cmp	w21, #2
	b.ne	LBB0_35
; %bb.27:
	ldr	x9, [x26]
	add	x11, sp, #40
	ldr	x9, [x11, x9, lsl #3]
Lloh16:
	adrp	x10, _TOP_LEFT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TOP_LEFT@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	x10, [x11, x10, lsl #3]
Lloh19:
	adrp	x12, _TOP_RIGHT@GOTPAGE
Lloh20:
	ldr	x12, [x12, _TOP_RIGHT@GOTPAGEOFF]
Lloh21:
	ldr	x12, [x12]
	ldr	x12, [x11, x12, lsl #3]
	cmp	x9, x10
	b.ne	LBB0_41
; %bb.28:
	cmp	x12, x9
	b.ne	LBB0_45
; %bb.29:
	mov	w9, #1
	b	LBB0_55
LBB0_30:
	cmp	w21, #1
	b.eq	LBB0_49
; %bb.31:
	ldr	x9, [sp, #16]
	cmp	x9, x10
	b.ne	LBB0_36
; %bb.32:
	mov	w9, #1
	cmp	w21, w9
	b.eq	LBB0_49
	b	LBB0_24
LBB0_33:
	ldr	x9, [x26]
	add	x11, sp, #40
	ldr	x9, [x11, x9, lsl #3]
Lloh22:
	adrp	x10, _TOP_LEFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _TOP_LEFT@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	ldr	x10, [x11, x10, lsl #3]
	cmp	x9, x10
	b.ne	LBB0_39
; %bb.34:
	mov	w9, #8
	b	LBB0_55
LBB0_35:
	mov	x9, #0
	b	LBB0_55
LBB0_36:
	cmp	w21, #2
	b.eq	LBB0_49
; %bb.37:
	ldr	x9, [sp, #24]
	cmp	x9, x10
	b.ne	LBB0_47
; %bb.38:
	mov	w9, #2
	cmp	w21, w9
	b.eq	LBB0_49
	b	LBB0_24
LBB0_39:
Lloh25:
	adrp	x12, _TOP_RIGHT@GOTPAGE
Lloh26:
	ldr	x12, [x12, _TOP_RIGHT@GOTPAGEOFF]
Lloh27:
	ldr	x12, [x12]
	ldr	x11, [x11, x12, lsl #3]
	cmp	x11, x10
	b.ne	LBB0_43
; %bb.40:
	mov	w9, #9
	b	LBB0_55
LBB0_41:
	ldr	x9, [x25]
	ldr	x9, [x11, x9, lsl #3]
	cmp	x12, x10
	b.ne	LBB0_46
; %bb.42:
	cmp	x9, x10
	mov	w9, #4
	b	LBB0_54
LBB0_43:
	ldr	x12, [x25]
	add	x13, sp, #40
	ldr	x12, [x13, x12, lsl #3]
	cmp	x12, x10
	b.ne	LBB0_51
; %bb.44:
	mov	w9, #10
	b	LBB0_55
LBB0_45:
	ldr	x10, [x25]
	add	x11, sp, #40
	ldr	x10, [x11, x10, lsl #3]
	cmp	x10, x9
	mov	w9, #2
	b	LBB0_54
LBB0_46:
	cmp	x9, x10
	mov	w9, #6
	b	LBB0_54
LBB0_47:
	cmp	w21, #3
	b.eq	LBB0_49
; %bb.48:
	mov	w9, #3
	cmp	w21, w9
	b.ne	LBB0_24
LBB0_49:
	mov	w9, w21
	ldr	x10, [sp, #64]
	add	w21, w21, #1
	add	x11, sp, #8
	str	x10, [x11, x9, lsl #3]
	cmp	w21, #4
	b.ne	LBB0_25
LBB0_50:
	mov	w9, #14
	b	LBB0_55
LBB0_51:
	cmp	x11, x9
	b.ne	LBB0_53
; %bb.52:
	mov	w9, #11
	b	LBB0_55
LBB0_53:
	cmp	x9, x12
	mov	w9, #12
LBB0_54:
	cinc	x9, x9, ne
LBB0_55:
	ldr	x10, [x20]
	ldr	x11, [x19]
	ldr	x9, [x11, x9, lsl #3]
	add	x1, x9, w8, uxtw #2
	mov	x0, x20
	blr	x10
	cmp	w0, w21
	b.ge	LBB0_57
; %bb.56:
	add	x8, sp, #8
	ldr	x0, [x8, w0, sxtw #3]
	b	LBB0_58
LBB0_57:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	mov	w4, #1
	bl	_decode_pixel
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_58:
	ldr	x8, [sp, #72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_60
; %bb.59:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #160
	ret
LBB0_60:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TOP,8,3                        ; @TOP
	.comm	_LEFT,8,3                       ; @LEFT
	.comm	_TOP_LEFT,8,3                   ; @TOP_LEFT
	.comm	_TOP_RIGHT,8,3                  ; @TOP_RIGHT
	.no_dead_strip	_decode_pixel_in_context
.subsections_via_symbols
