	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resource_build_bit_depth_reduction_params ## -- Begin function resource_build_bit_depth_reduction_params
	.p2align	4, 0x90
_resource_build_bit_depth_reduction_params: ## @resource_build_bit_depth_reduction_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movl	4(%rdi), %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movq	_DITHER_OPTION_DEFAULT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_9
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movq	_DITHER_OPTION_SPATIAL6@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_DITHER_OPTION_SPATIAL8@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DITHER_OPTION_SPATIAL10@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_DITHER_OPTION_DISABLE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r12d
LBB0_9:
	movq	_DITHER_OPTION_DISABLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_51
## %bb.10:
	movq	_DITHER_OPTION_TRUN6@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.11:
	movq	_DITHER_OPTION_TRUN8@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.12:
	movq	_DITHER_OPTION_TRUN8_SPATIAL6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.13:
	movq	_DITHER_OPTION_TRUN8_FM6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.14:
	movq	_DITHER_OPTION_TRUN10@GOTPCREL(%rip), %rcx
	movl	$2, %eax
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.15:
	movq	_DITHER_OPTION_TRUN10_SPATIAL6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.16:
	movq	_DITHER_OPTION_TRUN10_SPATIAL8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.17:
	movq	_DITHER_OPTION_TRUN10_FM8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.18:
	movq	_DITHER_OPTION_TRUN10_FM6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_20
## %bb.19:
	movq	_DITHER_OPTION_TRUN10_SPATIAL8_FM6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_21
LBB0_20:
	movl	$1, 4(%r14)
	movl	%eax, 8(%r14)
LBB0_21:
	movq	_DITHER_OPTION_SPATIAL6_FRAME_RANDOM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	sete	%al
	movq	_DITHER_OPTION_SPATIAL6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r12d
	sete	%dl
	orb	%al, %dl
	movq	_DITHER_OPTION_FM6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_23
## %bb.22:
	cmpl	%eax, %r12d
	jne	LBB0_24
LBB0_23:
	movabsq	$8589934593, %rsi               ## imm = 0x200000001
	movq	%rsi, 4(%r14)
	movl	$1, 12(%r14)
LBB0_24:
	movq	_DITHER_OPTION_TRUN10_SPATIAL6@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	sete	%bl
	orb	%bl, %dl
	jne	LBB0_26
## %bb.25:
	movq	_DITHER_OPTION_TRUN8_SPATIAL6@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r12d
	je	LBB0_26
## %bb.27:
	movq	_DITHER_OPTION_SPATIAL8_FRAME_RANDOM@GOTPCREL(%rip), %rsi
	movq	_DITHER_OPTION_SPATIAL8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	(%rsi), %r12d
	je	LBB0_32
## %bb.28:
	cmpl	%edx, %r12d
	je	LBB0_32
## %bb.29:
	movq	_DITHER_OPTION_SPATIAL8_FM6@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_32
## %bb.30:
	movq	_DITHER_OPTION_TRUN10_SPATIAL8@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_32
## %bb.31:
	movq	_DITHER_OPTION_TRUN10_SPATIAL8_FM6@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_32
## %bb.33:
	movq	_DITHER_OPTION_SPATIAL10_FRAME_RANDOM@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_37
## %bb.34:
	movq	_DITHER_OPTION_SPATIAL10@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_37
## %bb.35:
	movq	_DITHER_OPTION_SPATIAL10_FM8@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	je	LBB0_37
## %bb.36:
	movq	_DITHER_OPTION_SPATIAL10_FM6@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	jne	LBB0_39
LBB0_37:
	movabsq	$8589934593, %rsi               ## imm = 0x200000001
	jmp	LBB0_38
LBB0_26:
	movq	$1, 16(%r14)
	movl	$1, 24(%r14)
	movq	_PIXEL_ENCODING_RGB@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %r15d
	sete	%sil
	movl	%esi, 28(%r14)
	movq	_DITHER_OPTION_SPATIAL8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_39
LBB0_32:
	movabsq	$4294967297, %rsi               ## imm = 0x100000001
LBB0_38:
	movq	%rsi, 16(%r14)
	movl	$1, 24(%r14)
	movq	_PIXEL_ENCODING_RGB@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpl	(%rsi), %r15d
	sete	%dil
	movl	%edi, 28(%r14)
LBB0_39:
	cmpl	%ecx, %r12d
	setne	%cl
	cmpl	%edx, %r12d
	setne	%dl
	andb	%cl, %dl
	movq	_DITHER_OPTION_SPATIAL10@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	setne	%bl
	andb	%dl, %bl
	xorl	%ecx, %ecx
	movzbl	%bl, %edx
	movl	%edx, 32(%r14)
	cmpl	%eax, %r12d
	je	LBB0_49
## %bb.40:
	movq	_DITHER_OPTION_SPATIAL8_FM6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.41:
	movq	_DITHER_OPTION_SPATIAL10_FM6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.42:
	movq	_DITHER_OPTION_TRUN10_FM6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.43:
	movq	_DITHER_OPTION_TRUN8_FM6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.44:
	movq	_DITHER_OPTION_TRUN10_SPATIAL8_FM6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.45:
	movq	_DITHER_OPTION_FM8@GOTPCREL(%rip), %rax
	movl	$1, %ecx
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.46:
	movq	_DITHER_OPTION_SPATIAL10_FM8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.47:
	movq	_DITHER_OPTION_TRUN10_FM8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_49
## %bb.48:
	movq	_DITHER_OPTION_FM10@GOTPCREL(%rip), %rax
	movl	$2, %ecx
	cmpl	(%rax), %r12d
	jne	LBB0_50
LBB0_49:
	movl	$1, 36(%r14)
	movl	%ecx, 40(%r14)
LBB0_50:
	movl	%r15d, (%r14)
LBB0_51:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DITHER_OPTION_DEFAULT,4,2      ## @DITHER_OPTION_DEFAULT
	.comm	_DITHER_OPTION_SPATIAL6,4,2     ## @DITHER_OPTION_SPATIAL6
	.comm	_DITHER_OPTION_SPATIAL8,4,2     ## @DITHER_OPTION_SPATIAL8
	.comm	_DITHER_OPTION_SPATIAL10,4,2    ## @DITHER_OPTION_SPATIAL10
	.comm	_DITHER_OPTION_DISABLE,4,2      ## @DITHER_OPTION_DISABLE
	.comm	_DITHER_OPTION_TRUN6,4,2        ## @DITHER_OPTION_TRUN6
	.comm	_DITHER_OPTION_TRUN8,4,2        ## @DITHER_OPTION_TRUN8
	.comm	_DITHER_OPTION_TRUN8_SPATIAL6,4,2 ## @DITHER_OPTION_TRUN8_SPATIAL6
	.comm	_DITHER_OPTION_TRUN8_FM6,4,2    ## @DITHER_OPTION_TRUN8_FM6
	.comm	_DITHER_OPTION_TRUN10,4,2       ## @DITHER_OPTION_TRUN10
	.comm	_DITHER_OPTION_TRUN10_SPATIAL6,4,2 ## @DITHER_OPTION_TRUN10_SPATIAL6
	.comm	_DITHER_OPTION_TRUN10_SPATIAL8,4,2 ## @DITHER_OPTION_TRUN10_SPATIAL8
	.comm	_DITHER_OPTION_TRUN10_FM8,4,2   ## @DITHER_OPTION_TRUN10_FM8
	.comm	_DITHER_OPTION_TRUN10_FM6,4,2   ## @DITHER_OPTION_TRUN10_FM6
	.comm	_DITHER_OPTION_TRUN10_SPATIAL8_FM6,4,2 ## @DITHER_OPTION_TRUN10_SPATIAL8_FM6
	.comm	_DITHER_OPTION_SPATIAL6_FRAME_RANDOM,4,2 ## @DITHER_OPTION_SPATIAL6_FRAME_RANDOM
	.comm	_DITHER_OPTION_FM6,4,2          ## @DITHER_OPTION_FM6
	.comm	_PIXEL_ENCODING_RGB,4,2         ## @PIXEL_ENCODING_RGB
	.comm	_DITHER_OPTION_SPATIAL8_FRAME_RANDOM,4,2 ## @DITHER_OPTION_SPATIAL8_FRAME_RANDOM
	.comm	_DITHER_OPTION_SPATIAL8_FM6,4,2 ## @DITHER_OPTION_SPATIAL8_FM6
	.comm	_DITHER_OPTION_SPATIAL10_FRAME_RANDOM,4,2 ## @DITHER_OPTION_SPATIAL10_FRAME_RANDOM
	.comm	_DITHER_OPTION_SPATIAL10_FM8,4,2 ## @DITHER_OPTION_SPATIAL10_FM8
	.comm	_DITHER_OPTION_SPATIAL10_FM6,4,2 ## @DITHER_OPTION_SPATIAL10_FM6
	.comm	_DITHER_OPTION_FM8,4,2          ## @DITHER_OPTION_FM8
	.comm	_DITHER_OPTION_FM10,4,2         ## @DITHER_OPTION_FM10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function resource_build_bit_depth_reduction_params
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_resource_build_bit_depth_reduction_params
	.p2align	2
_resource_build_bit_depth_reduction_params: ; @resource_build_bit_depth_reduction_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldp	w22, w21, [x0]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #44
	bl	_memset
Lloh0:
	adrp	x8, _DITHER_OPTION_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DITHER_OPTION_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _DITHER_OPTION_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DITHER_OPTION_DISABLE@GOTPAGEOFF]
	cmp	w22, w9
	b.ne	LBB0_8
; %bb.1:
	ldr	w9, [x20, #8]
	cmp	w9, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_7
; %bb.4:
Lloh5:
	adrp	x9, _DITHER_OPTION_SPATIAL6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DITHER_OPTION_SPATIAL6@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x9]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x9, _DITHER_OPTION_SPATIAL8@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DITHER_OPTION_SPATIAL8@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x9]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x9, _DITHER_OPTION_SPATIAL10@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DITHER_OPTION_SPATIAL10@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x9]
	b	LBB0_8
LBB0_7:
	ldr	w22, [x8]
LBB0_8:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_51
; %bb.9:
Lloh14:
	adrp	x8, _DITHER_OPTION_TRUN6@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DITHER_OPTION_TRUN6@GOTPAGEOFF]
Lloh16:
	adrp	x13, _DITHER_OPTION_TRUN10_SPATIAL6@GOTPAGE
Lloh17:
	ldr	x13, [x13, _DITHER_OPTION_TRUN10_SPATIAL6@GOTPAGEOFF]
Lloh18:
	adrp	x15, _DITHER_OPTION_TRUN8_SPATIAL6@GOTPAGE
Lloh19:
	ldr	x15, [x15, _DITHER_OPTION_TRUN8_SPATIAL6@GOTPAGEOFF]
Lloh20:
	adrp	x10, _DITHER_OPTION_TRUN10_FM6@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DITHER_OPTION_TRUN10_FM6@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x8]
Lloh23:
	adrp	x9, _DITHER_OPTION_TRUN8_FM6@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DITHER_OPTION_TRUN8_FM6@GOTPAGEOFF]
Lloh25:
	adrp	x8, _DITHER_OPTION_TRUN10_SPATIAL8_FM6@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DITHER_OPTION_TRUN10_SPATIAL8_FM6@GOTPAGEOFF]
	cmp	w22, w11
	b.ne	LBB0_11
; %bb.10:
	mov	w11, #0
	b	LBB0_19
LBB0_11:
Lloh27:
	adrp	x11, _DITHER_OPTION_TRUN8@GOTPAGE
Lloh28:
	ldr	x11, [x11, _DITHER_OPTION_TRUN8@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	ldr	w12, [x15]
	ldr	w14, [x9]
	cmp	w22, w11
	ccmp	w22, w12, #4, ne
	ccmp	w22, w14, #4, ne
	b.ne	LBB0_13
; %bb.12:
	mov	w11, #1
	b	LBB0_19
LBB0_13:
Lloh30:
	adrp	x11, _DITHER_OPTION_TRUN10@GOTPAGE
Lloh31:
	ldr	x11, [x11, _DITHER_OPTION_TRUN10@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x11]
	mov	w11, #2
	cmp	w22, w12
	b.eq	LBB0_19
; %bb.14:
	ldr	w12, [x13]
	cmp	w22, w12
	b.eq	LBB0_19
; %bb.15:
Lloh33:
	adrp	x12, _DITHER_OPTION_TRUN10_SPATIAL8@GOTPAGE
Lloh34:
	ldr	x12, [x12, _DITHER_OPTION_TRUN10_SPATIAL8@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
	cmp	w22, w12
	b.eq	LBB0_19
; %bb.16:
Lloh36:
	adrp	x12, _DITHER_OPTION_TRUN10_FM8@GOTPAGE
Lloh37:
	ldr	x12, [x12, _DITHER_OPTION_TRUN10_FM8@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	cmp	w22, w12
	b.eq	LBB0_19
; %bb.17:
	ldr	w12, [x10]
	cmp	w22, w12
	b.eq	LBB0_19
; %bb.18:
	ldr	w12, [x8]
	cmp	w22, w12
	b.ne	LBB0_20
LBB0_19:
	mov	w12, #1
	stp	w12, w11, [x19, #4]
LBB0_20:
Lloh39:
	adrp	x11, _DITHER_OPTION_SPATIAL6_FRAME_RANDOM@GOTPAGE
Lloh40:
	ldr	x11, [x11, _DITHER_OPTION_SPATIAL6_FRAME_RANDOM@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	cmp	w22, w11
Lloh42:
	adrp	x11, _DITHER_OPTION_SPATIAL6@GOTPAGE
Lloh43:
	ldr	x11, [x11, _DITHER_OPTION_SPATIAL6@GOTPAGEOFF]
Lloh44:
	ldr	w12, [x11]
	ccmp	w22, w12, #4, ne
	cset	w14, eq
Lloh45:
	adrp	x11, _DITHER_OPTION_FM6@GOTPAGE
Lloh46:
	ldr	x11, [x11, _DITHER_OPTION_FM6@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	b.eq	LBB0_22
; %bb.21:
	cmp	w22, w11
	b.ne	LBB0_23
LBB0_22:
Lloh48:
	adrp	x16, lCPI0_0@PAGE
Lloh49:
	ldr	d0, [x16, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	mov	w16, #1
	str	w16, [x19, #12]
LBB0_23:
	ldr	w13, [x13]
	cmp	w22, w13
	cset	w13, eq
	orr	w17, w14, w13
Lloh50:
	adrp	x16, _DITHER_OPTION_SPATIAL10@GOTPAGE
Lloh51:
	ldr	x16, [x16, _DITHER_OPTION_SPATIAL10@GOTPAGEOFF]
Lloh52:
	adrp	x14, _DITHER_OPTION_SPATIAL8_FM6@GOTPAGE
Lloh53:
	ldr	x14, [x14, _DITHER_OPTION_SPATIAL8_FM6@GOTPAGEOFF]
Lloh54:
	adrp	x13, _DITHER_OPTION_SPATIAL10_FM6@GOTPAGE
Lloh55:
	ldr	x13, [x13, _DITHER_OPTION_SPATIAL10_FM6@GOTPAGEOFF]
	tbnz	w17, #0, LBB0_35
; %bb.24:
	ldr	w15, [x15]
	cmp	w22, w15
	b.eq	LBB0_35
; %bb.25:
Lloh56:
	adrp	x15, _DITHER_OPTION_SPATIAL8_FRAME_RANDOM@GOTPAGE
Lloh57:
	ldr	x15, [x15, _DITHER_OPTION_SPATIAL8_FRAME_RANDOM@GOTPAGEOFF]
Lloh58:
	ldr	w17, [x15]
Lloh59:
	adrp	x15, _DITHER_OPTION_SPATIAL8@GOTPAGE
Lloh60:
	ldr	x15, [x15, _DITHER_OPTION_SPATIAL8@GOTPAGEOFF]
Lloh61:
	ldr	w15, [x15]
	cmp	w22, w17
	b.eq	LBB0_36
; %bb.26:
	cmp	w22, w15
	b.eq	LBB0_36
; %bb.27:
	ldr	w17, [x14]
	cmp	w22, w17
	b.eq	LBB0_36
; %bb.28:
Lloh62:
	adrp	x17, _DITHER_OPTION_TRUN10_SPATIAL8@GOTPAGE
Lloh63:
	ldr	x17, [x17, _DITHER_OPTION_TRUN10_SPATIAL8@GOTPAGEOFF]
Lloh64:
	ldr	w17, [x17]
	cmp	w22, w17
	b.eq	LBB0_36
; %bb.29:
	ldr	w17, [x8]
	cmp	w22, w17
	b.eq	LBB0_36
; %bb.30:
Lloh65:
	adrp	x17, _DITHER_OPTION_SPATIAL10_FRAME_RANDOM@GOTPAGE
Lloh66:
	ldr	x17, [x17, _DITHER_OPTION_SPATIAL10_FRAME_RANDOM@GOTPAGEOFF]
Lloh67:
	ldr	w17, [x17]
	cmp	w22, w17
	b.eq	LBB0_34
; %bb.31:
	ldr	w17, [x16]
	cmp	w22, w17
	b.eq	LBB0_34
; %bb.32:
Lloh68:
	adrp	x17, _DITHER_OPTION_SPATIAL10_FM8@GOTPAGE
Lloh69:
	ldr	x17, [x17, _DITHER_OPTION_SPATIAL10_FM8@GOTPAGEOFF]
Lloh70:
	ldr	w17, [x17]
	cmp	w22, w17
	b.eq	LBB0_34
; %bb.33:
	ldr	w17, [x13]
	cmp	w22, w17
	b.ne	LBB0_38
LBB0_34:
Lloh71:
	adrp	x17, lCPI0_0@PAGE
Lloh72:
	ldr	d0, [x17, lCPI0_0@PAGEOFF]
	b	LBB0_37
LBB0_35:
Lloh73:
	adrp	x15, lCPI0_1@PAGE
Lloh74:
	ldr	d0, [x15, lCPI0_1@PAGEOFF]
	str	d0, [x19, #16]
	mov	w15, #1
Lloh75:
	adrp	x17, _PIXEL_ENCODING_RGB@GOTPAGE
Lloh76:
	ldr	x17, [x17, _PIXEL_ENCODING_RGB@GOTPAGEOFF]
Lloh77:
	ldr	w17, [x17]
	cmp	w21, w17
	cset	w17, eq
	stp	w15, w17, [x19, #24]
Lloh78:
	adrp	x15, _DITHER_OPTION_SPATIAL8@GOTPAGE
Lloh79:
	ldr	x15, [x15, _DITHER_OPTION_SPATIAL8@GOTPAGEOFF]
Lloh80:
	ldr	w15, [x15]
	b	LBB0_38
LBB0_36:
	movi.2s	v0, #1
LBB0_37:
	str	d0, [x19, #16]
Lloh81:
	adrp	x17, _PIXEL_ENCODING_RGB@GOTPAGE
Lloh82:
	ldr	x17, [x17, _PIXEL_ENCODING_RGB@GOTPAGEOFF]
	mov	w0, #1
Lloh83:
	ldr	w17, [x17]
	cmp	w21, w17
	cset	w17, eq
	stp	w0, w17, [x19, #24]
LBB0_38:
	mov	w17, #0
	cmp	w22, w12
	ccmp	w22, w15, #4, ne
	ldr	w12, [x16]
	ccmp	w22, w12, #4, ne
	cset	w12, ne
	str	w12, [x19, #32]
	cmp	w22, w11
	b.eq	LBB0_49
; %bb.39:
	ldr	w11, [x14]
	cmp	w22, w11
	b.eq	LBB0_49
; %bb.40:
	ldr	w11, [x13]
	cmp	w22, w11
	b.eq	LBB0_49
; %bb.41:
	ldr	w10, [x10]
	cmp	w22, w10
	b.eq	LBB0_49
; %bb.42:
	ldr	w9, [x9]
	cmp	w22, w9
	b.eq	LBB0_49
; %bb.43:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_49
; %bb.44:
Lloh84:
	adrp	x8, _DITHER_OPTION_FM8@GOTPAGE
Lloh85:
	ldr	x8, [x8, _DITHER_OPTION_FM8@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	mov	w17, #1
	cmp	w22, w8
	b.eq	LBB0_49
; %bb.45:
Lloh87:
	adrp	x8, _DITHER_OPTION_SPATIAL10_FM8@GOTPAGE
Lloh88:
	ldr	x8, [x8, _DITHER_OPTION_SPATIAL10_FM8@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_49
; %bb.46:
Lloh90:
	adrp	x8, _DITHER_OPTION_TRUN10_FM8@GOTPAGE
Lloh91:
	ldr	x8, [x8, _DITHER_OPTION_TRUN10_FM8@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_49
; %bb.47:
Lloh93:
	adrp	x8, _DITHER_OPTION_FM10@GOTPAGE
Lloh94:
	ldr	x8, [x8, _DITHER_OPTION_FM10@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_50
; %bb.48:
	mov	w17, #2
LBB0_49:
	mov	w8, #1
	stp	w8, w17, [x19, #36]
LBB0_50:
	str	w21, [x19]
LBB0_51:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdr	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdr	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdr	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_DITHER_OPTION_DEFAULT,4,2      ; @DITHER_OPTION_DEFAULT
	.comm	_DITHER_OPTION_SPATIAL6,4,2     ; @DITHER_OPTION_SPATIAL6
	.comm	_DITHER_OPTION_SPATIAL8,4,2     ; @DITHER_OPTION_SPATIAL8
	.comm	_DITHER_OPTION_SPATIAL10,4,2    ; @DITHER_OPTION_SPATIAL10
	.comm	_DITHER_OPTION_DISABLE,4,2      ; @DITHER_OPTION_DISABLE
	.comm	_DITHER_OPTION_TRUN6,4,2        ; @DITHER_OPTION_TRUN6
	.comm	_DITHER_OPTION_TRUN8,4,2        ; @DITHER_OPTION_TRUN8
	.comm	_DITHER_OPTION_TRUN8_SPATIAL6,4,2 ; @DITHER_OPTION_TRUN8_SPATIAL6
	.comm	_DITHER_OPTION_TRUN8_FM6,4,2    ; @DITHER_OPTION_TRUN8_FM6
	.comm	_DITHER_OPTION_TRUN10,4,2       ; @DITHER_OPTION_TRUN10
	.comm	_DITHER_OPTION_TRUN10_SPATIAL6,4,2 ; @DITHER_OPTION_TRUN10_SPATIAL6
	.comm	_DITHER_OPTION_TRUN10_SPATIAL8,4,2 ; @DITHER_OPTION_TRUN10_SPATIAL8
	.comm	_DITHER_OPTION_TRUN10_FM8,4,2   ; @DITHER_OPTION_TRUN10_FM8
	.comm	_DITHER_OPTION_TRUN10_FM6,4,2   ; @DITHER_OPTION_TRUN10_FM6
	.comm	_DITHER_OPTION_TRUN10_SPATIAL8_FM6,4,2 ; @DITHER_OPTION_TRUN10_SPATIAL8_FM6
	.comm	_DITHER_OPTION_SPATIAL6_FRAME_RANDOM,4,2 ; @DITHER_OPTION_SPATIAL6_FRAME_RANDOM
	.comm	_DITHER_OPTION_FM6,4,2          ; @DITHER_OPTION_FM6
	.comm	_PIXEL_ENCODING_RGB,4,2         ; @PIXEL_ENCODING_RGB
	.comm	_DITHER_OPTION_SPATIAL8_FRAME_RANDOM,4,2 ; @DITHER_OPTION_SPATIAL8_FRAME_RANDOM
	.comm	_DITHER_OPTION_SPATIAL8_FM6,4,2 ; @DITHER_OPTION_SPATIAL8_FM6
	.comm	_DITHER_OPTION_SPATIAL10_FRAME_RANDOM,4,2 ; @DITHER_OPTION_SPATIAL10_FRAME_RANDOM
	.comm	_DITHER_OPTION_SPATIAL10_FM8,4,2 ; @DITHER_OPTION_SPATIAL10_FM8
	.comm	_DITHER_OPTION_SPATIAL10_FM6,4,2 ; @DITHER_OPTION_SPATIAL10_FM6
	.comm	_DITHER_OPTION_FM8,4,2          ; @DITHER_OPTION_FM8
	.comm	_DITHER_OPTION_FM10,4,2         ; @DITHER_OPTION_FM10
.subsections_via_symbols
