	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optc1_set_test_pattern
_optc1_set_test_pattern:                ## @optc1_set_test_pattern
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_DCN10TG_FROM_TG
	addl	$-137, %ebx
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.1:
	movl	$129, %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	$128, %r15d
	jmp	LBB0_5
LBB0_3:
	movq	_TEST_PATTERN_COLOR_FORMAT_BPC_12@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_5
LBB0_2:
	movl	$130, %r15d
LBB0_5:
	leal	-131(%r14), %eax
	cmpl	$5, %eax
	ja	LBB0_33
## %bb.6:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	cmpl	$132, %r14d
	jne	LBB0_15
## %bb.16:
	movq	_TEST_PATTERN_MODE_VERTICALBARS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	cmpl	$134, %r14d
	jne	LBB0_8
## %bb.9:
	movq	_TEST_PATTERN_DYN_RANGE_CEA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_33:
	addq	$8, %rsp
	jmp	LBB0_13
LBB0_32:
	movq	_OTG_TEST_PATTERN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_OTG_TEST_PATTERN_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_20:
	cmpl	$130, %r15d
	jne	LBB0_21
## %bb.22:
	movq	_TEST_PATTERN_MODE_DUALRAMP_RGB@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_15:
	movq	_TEST_PATTERN_MODE_HORIZONTALBARS@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	-128(%r15), %eax
	movl	$8, %ecx
	cmpl	$2, %eax
	ja	LBB0_19
## %bb.18:
	cltq
	leaq	l_switch.table.optc1_set_test_pattern(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_19:
	movl	$65532, %ebx                    ## imm = 0xFFFC
	shrl	%cl, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_OTG_TEST_PATTERN_COLOR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_OTG_TEST_PATTERN_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_OTG_TEST_PATTERN_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$2, %ecx
	movl	%ebx, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$4, %ecx
	movl	%ebx, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$8, %ecx
	movl	%ebx, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$16, %ecx
	xorl	%r9d, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$32, %ecx
	xorl	%r9d, %r9d
	callq	_REG_SET_2
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	movl	$32, %ecx
	xorl	%r9d, %r9d
	callq	_REG_SET_2
	movq	_OTG_TEST_PATTERN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OTG_TEST_PATTERN_COLOR_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$1, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	%r15
	pushq	%rax
	pushq	$0
	jmp	LBB0_11
LBB0_8:
	movq	_TEST_PATTERN_DYN_RANGE_VESA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
	movq	_TEST_PATTERN_MODE_COLORSQUARES_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_VRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_HRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$6, %edx
	movl	$6, %r8d
	callq	_REG_UPDATE_2
	movq	_OTG_TEST_PATTERN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OTG_TEST_PATTERN_COLOR_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$1, %edx
	movl	%ebx, %r8d
	pushq	%r15
	pushq	%rax
	pushq	%r14
LBB0_11:
	callq	_REG_UPDATE_4
	jmp	LBB0_12
LBB0_21:
	movq	_TEST_PATTERN_MODE_SINGLERAMP_RGB@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r14d
	cmpl	$128, %r15d
	je	LBB0_27
## %bb.24:
	cmpl	$130, %r15d
	je	LBB0_28
## %bb.25:
	cmpl	$129, %r15d
	jne	LBB0_31
## %bb.26:
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_INC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_INC1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_TEST_PATTERN_HRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OTG_TEST_PATTERN_VRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	$10, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$6
	pushq	%r10
	pushq	$6
	jmp	LBB0_30
LBB0_27:
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_INC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_INC1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_TEST_PATTERN_HRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OTG_TEST_PATTERN_VRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	$8, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$6
	jmp	LBB0_29
LBB0_28:
	movq	_OTG_TEST_PATTERN_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTG_TEST_PATTERN_INC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OTG_TEST_PATTERN_INC1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OTG_TEST_PATTERN_HRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_OTG_TEST_PATTERN_VRES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	$6, %edx
	movl	$8, %r8d
	pushq	$24576                          ## imm = 0x6000
	pushq	%rax
	pushq	$5
LBB0_29:
	pushq	%r10
	pushq	$8
LBB0_30:
	callq	_REG_UPDATE_5
	addq	$48, %rsp
LBB0_31:
	movq	_OTG_TEST_PATTERN_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_OTG_TEST_PATTERN_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movl	(%rbx), %edi
	movq	_OTG_TEST_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OTG_TEST_PATTERN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OTG_TEST_PATTERN_COLOR_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	movl	$1, %ecx
	movl	%r14d, %r9d
	pushq	%r15
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_REG_SET_4
LBB0_12:
	addq	$40, %rsp
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
.set L0_1_set_32, LBB0_32-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
LJTI0_1:
	.long	L0_1_set_32
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_7
	.long	L0_1_set_7
	.long	L0_1_set_20
	.end_data_region
                                        ## -- End function
	.comm	_TEST_PATTERN_COLOR_FORMAT_BPC_12,4,2 ## @TEST_PATTERN_COLOR_FORMAT_BPC_12
	.comm	_TEST_PATTERN_DYN_RANGE_CEA,4,2 ## @TEST_PATTERN_DYN_RANGE_CEA
	.comm	_TEST_PATTERN_DYN_RANGE_VESA,4,2 ## @TEST_PATTERN_DYN_RANGE_VESA
	.comm	_TEST_PATTERN_MODE_COLORSQUARES_RGB,4,2 ## @TEST_PATTERN_MODE_COLORSQUARES_RGB
	.comm	_OTG_TEST_PATTERN_PARAMETERS,4,2 ## @OTG_TEST_PATTERN_PARAMETERS
	.comm	_OTG_TEST_PATTERN_VRES,4,2      ## @OTG_TEST_PATTERN_VRES
	.comm	_OTG_TEST_PATTERN_HRES,4,2      ## @OTG_TEST_PATTERN_HRES
	.comm	_OTG_TEST_PATTERN_CONTROL,4,2   ## @OTG_TEST_PATTERN_CONTROL
	.comm	_OTG_TEST_PATTERN_EN,4,2        ## @OTG_TEST_PATTERN_EN
	.comm	_OTG_TEST_PATTERN_MODE,4,2      ## @OTG_TEST_PATTERN_MODE
	.comm	_OTG_TEST_PATTERN_DYNAMIC_RANGE,4,2 ## @OTG_TEST_PATTERN_DYNAMIC_RANGE
	.comm	_OTG_TEST_PATTERN_COLOR_FORMAT,4,2 ## @OTG_TEST_PATTERN_COLOR_FORMAT
	.comm	_TEST_PATTERN_MODE_VERTICALBARS,4,2 ## @TEST_PATTERN_MODE_VERTICALBARS
	.comm	_TEST_PATTERN_MODE_HORIZONTALBARS,4,2 ## @TEST_PATTERN_MODE_HORIZONTALBARS
	.comm	_OTG_TEST_PATTERN_COLOR,4,2     ## @OTG_TEST_PATTERN_COLOR
	.comm	_OTG_TEST_PATTERN_MASK,4,2      ## @OTG_TEST_PATTERN_MASK
	.comm	_OTG_TEST_PATTERN_DATA,4,2      ## @OTG_TEST_PATTERN_DATA
	.comm	_TEST_PATTERN_MODE_DUALRAMP_RGB,4,2 ## @TEST_PATTERN_MODE_DUALRAMP_RGB
	.comm	_TEST_PATTERN_MODE_SINGLERAMP_RGB,4,2 ## @TEST_PATTERN_MODE_SINGLERAMP_RGB
	.comm	_OTG_TEST_PATTERN_INC0,4,2      ## @OTG_TEST_PATTERN_INC0
	.comm	_OTG_TEST_PATTERN_INC1,4,2      ## @OTG_TEST_PATTERN_INC1
	.comm	_OTG_TEST_PATTERN_RAMP0_OFFSET,4,2 ## @OTG_TEST_PATTERN_RAMP0_OFFSET
	.no_dead_strip	_optc1_set_test_pattern
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.optc1_set_test_pattern
l_switch.table.optc1_set_test_pattern:
	.long	8                               ## 0x8
	.long	10                              ## 0xa
	.long	6                               ## 0x6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optc1_set_test_pattern
_optc1_set_test_pattern:                ; @optc1_set_test_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_DCN10TG_FROM_TG
	sub	w8, w20, #137
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	mov	w21, #129
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w21, #128
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _TEST_PATTERN_COLOR_FORMAT_BPC_12@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEST_PATTERN_COLOR_FORMAT_BPC_12@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_5
LBB0_4:
	mov	w21, #130
LBB0_5:
	sub	w8, w19, #131
	cmp	w8, #5
	b.hi	LBB0_22
; %bb.6:
Lloh5:
	adrp	x9, lJTI0_1@PAGE
Lloh6:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh7:
	adrp	x8, _TEST_PATTERN_MODE_VERTICALBARS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TEST_PATTERN_MODE_VERTICALBARS@GOTPAGEOFF]
Lloh9:
	adrp	x9, _TEST_PATTERN_MODE_HORIZONTALBARS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TEST_PATTERN_MODE_HORIZONTALBARS@GOTPAGEOFF]
	cmp	w19, #132
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
	sub	w8, w21, #128
	cmp	w8, #2
	b.hi	LBB0_15
; %bb.8:
Lloh11:
	adrp	x9, l_switch.table.optc1_set_test_pattern@PAGE
Lloh12:
	add	x9, x9, l_switch.table.optc1_set_test_pattern@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_16
LBB0_9:
Lloh13:
	adrp	x8, _TEST_PATTERN_DYN_RANGE_CEA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TEST_PATTERN_DYN_RANGE_CEA@GOTPAGEOFF]
Lloh15:
	adrp	x9, _TEST_PATTERN_DYN_RANGE_VESA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TEST_PATTERN_DYN_RANGE_VESA@GOTPAGEOFF]
	cmp	w19, #134
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
Lloh17:
	adrp	x8, _TEST_PATTERN_MODE_COLORSQUARES_RGB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TEST_PATTERN_MODE_COLORSQUARES_RGB@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _OTG_TEST_PATTERN_VRES@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OTG_TEST_PATTERN_VRES@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _OTG_TEST_PATTERN_HRES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OTG_TEST_PATTERN_HRES@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	w2, #6
	mov	w4, #6
	bl	_REG_UPDATE_2
Lloh29:
	adrp	x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _OTG_TEST_PATTERN_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OTG_TEST_PATTERN_EN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _OTG_TEST_PATTERN_MODE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OTG_TEST_PATTERN_MODE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGEOFF]
Lloh40:
	ldr	w5, [x8]
Lloh41:
	adrp	x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGEOFF]
Lloh43:
	ldr	w7, [x8]
	str	w21, [sp]
	mov	w2, #1
	mov	x4, x20
	mov	x6, x19
	bl	_REG_UPDATE_4
	b	LBB0_22
LBB0_10:
Lloh44:
	adrp	x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
Lloh47:
	adrp	x8, _OTG_TEST_PATTERN_COLOR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _OTG_TEST_PATTERN_COLOR@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
Lloh50:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_REG_WRITE
LBB0_11:
Lloh53:
	adrp	x8, _TEST_PATTERN_MODE_DUALRAMP_RGB@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TEST_PATTERN_MODE_DUALRAMP_RGB@GOTPAGEOFF]
Lloh55:
	adrp	x9, _TEST_PATTERN_MODE_SINGLERAMP_RGB@GOTPAGE
Lloh56:
	ldr	x9, [x9, _TEST_PATTERN_MODE_SINGLERAMP_RGB@GOTPAGEOFF]
	cmp	w21, #130
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
	cmp	w21, #128
	b.eq	LBB0_17
; %bb.12:
	cmp	w21, #130
	b.eq	LBB0_18
; %bb.13:
	cmp	w21, #129
	b.ne	LBB0_21
; %bb.14:
Lloh57:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x8, _OTG_TEST_PATTERN_INC0@GOTPAGE
Lloh61:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC0@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, _OTG_TEST_PATTERN_INC1@GOTPAGE
Lloh64:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC1@GOTPAGEOFF]
Lloh65:
	ldr	w3, [x8]
Lloh66:
	adrp	x8, _OTG_TEST_PATTERN_HRES@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OTG_TEST_PATTERN_HRES@GOTPAGEOFF]
Lloh68:
	ldr	w5, [x8]
Lloh69:
	adrp	x8, _OTG_TEST_PATTERN_VRES@GOTPAGE
Lloh70:
	ldr	x8, [x8, _OTG_TEST_PATTERN_VRES@GOTPAGEOFF]
Lloh71:
	ldr	w7, [x8]
Lloh72:
	adrp	x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGE
Lloh73:
	ldr	x8, [x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #4]
	mov	w9, #6
	str	w9, [sp]
	mov	w2, #10
	mov	w4, #0
	mov	w6, #6
	b	LBB0_20
LBB0_15:
	mov	w8, #8
LBB0_16:
	mov	w9, #-1
	lsl	w8, w9, w8
	and	w20, w8, #0xfffc
Lloh75:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
Lloh78:
	adrp	x22, _OTG_TEST_PATTERN_COLOR@GOTPAGE
Lloh79:
	ldr	x22, [x22, _OTG_TEST_PATTERN_COLOR@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh80:
	adrp	x23, _OTG_TEST_PATTERN_MASK@GOTPAGE
Lloh81:
	ldr	x23, [x23, _OTG_TEST_PATTERN_MASK@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh82:
	adrp	x24, _OTG_TEST_PATTERN_DATA@GOTPAGE
Lloh83:
	ldr	x24, [x24, _OTG_TEST_PATTERN_DATA@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #1
	mov	w5, #0
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #2
	mov	x5, x20
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #4
	mov	x5, x20
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #8
	mov	x5, x20
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #16
	mov	w5, #0
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #32
	mov	w5, #0
	bl	_REG_SET_2
	ldr	w0, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	w1, #0
	mov	w3, #32
	mov	w5, #0
	bl	_REG_SET_2
Lloh84:
	adrp	x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGE
Lloh85:
	ldr	x8, [x8, _OTG_TEST_PATTERN_CONTROL@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
Lloh87:
	adrp	x8, _OTG_TEST_PATTERN_EN@GOTPAGE
Lloh88:
	ldr	x8, [x8, _OTG_TEST_PATTERN_EN@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x8, _OTG_TEST_PATTERN_MODE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _OTG_TEST_PATTERN_MODE@GOTPAGEOFF]
Lloh92:
	ldr	w3, [x8]
Lloh93:
	adrp	x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGEOFF]
Lloh95:
	ldr	w5, [x8]
Lloh96:
	adrp	x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGE
Lloh97:
	ldr	x8, [x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGEOFF]
Lloh98:
	ldr	w7, [x8]
	str	w21, [sp]
	mov	w2, #1
	mov	x4, x19
	mov	w6, #0
	bl	_REG_UPDATE_4
	b	LBB0_22
LBB0_17:
Lloh99:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh100:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
Lloh102:
	adrp	x8, _OTG_TEST_PATTERN_INC0@GOTPAGE
Lloh103:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC0@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
Lloh105:
	adrp	x8, _OTG_TEST_PATTERN_INC1@GOTPAGE
Lloh106:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC1@GOTPAGEOFF]
Lloh107:
	ldr	w3, [x8]
Lloh108:
	adrp	x8, _OTG_TEST_PATTERN_HRES@GOTPAGE
Lloh109:
	ldr	x8, [x8, _OTG_TEST_PATTERN_HRES@GOTPAGEOFF]
Lloh110:
	ldr	w5, [x8]
Lloh111:
	adrp	x8, _OTG_TEST_PATTERN_VRES@GOTPAGE
Lloh112:
	ldr	x8, [x8, _OTG_TEST_PATTERN_VRES@GOTPAGEOFF]
Lloh113:
	ldr	w7, [x8]
Lloh114:
	adrp	x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGE
Lloh115:
	ldr	x8, [x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #4]
	mov	w9, #6
	str	w9, [sp]
	mov	w2, #8
	mov	w4, #0
	b	LBB0_19
LBB0_18:
Lloh117:
	adrp	x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGE
Lloh118:
	ldr	x8, [x8, _OTG_TEST_PATTERN_PARAMETERS@GOTPAGEOFF]
Lloh119:
	ldr	w0, [x8]
Lloh120:
	adrp	x8, _OTG_TEST_PATTERN_INC0@GOTPAGE
Lloh121:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC0@GOTPAGEOFF]
Lloh122:
	ldr	w1, [x8]
Lloh123:
	adrp	x8, _OTG_TEST_PATTERN_INC1@GOTPAGE
Lloh124:
	ldr	x8, [x8, _OTG_TEST_PATTERN_INC1@GOTPAGEOFF]
Lloh125:
	ldr	w3, [x8]
Lloh126:
	adrp	x8, _OTG_TEST_PATTERN_HRES@GOTPAGE
Lloh127:
	ldr	x8, [x8, _OTG_TEST_PATTERN_HRES@GOTPAGEOFF]
Lloh128:
	ldr	w5, [x8]
Lloh129:
	adrp	x8, _OTG_TEST_PATTERN_VRES@GOTPAGE
Lloh130:
	ldr	x8, [x8, _OTG_TEST_PATTERN_VRES@GOTPAGEOFF]
Lloh131:
	ldr	w7, [x8]
Lloh132:
	adrp	x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGE
Lloh133:
	ldr	x8, [x8, _OTG_TEST_PATTERN_RAMP0_OFFSET@GOTPAGEOFF]
Lloh134:
	ldr	w8, [x8]
	mov	w9, #24576
	stp	w8, w9, [sp, #4]
	mov	w9, #5
	str	w9, [sp]
	mov	w2, #6
	mov	w4, #8
LBB0_19:
	mov	w6, #8
LBB0_20:
	bl	_REG_UPDATE_5
LBB0_21:
Lloh135:
	adrp	x8, _OTG_TEST_PATTERN_COLOR@GOTPAGE
Lloh136:
	ldr	x8, [x8, _OTG_TEST_PATTERN_COLOR@GOTPAGEOFF]
Lloh137:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_REG_WRITE
Lloh138:
	adrp	x20, _OTG_TEST_PATTERN_CONTROL@GOTPAGE
Lloh139:
	ldr	x20, [x20, _OTG_TEST_PATTERN_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_REG_WRITE
	ldr	w0, [x20]
Lloh140:
	adrp	x8, _OTG_TEST_PATTERN_EN@GOTPAGE
Lloh141:
	ldr	x8, [x8, _OTG_TEST_PATTERN_EN@GOTPAGEOFF]
Lloh142:
	ldr	w2, [x8]
Lloh143:
	adrp	x8, _OTG_TEST_PATTERN_MODE@GOTPAGE
Lloh144:
	ldr	x8, [x8, _OTG_TEST_PATTERN_MODE@GOTPAGEOFF]
Lloh145:
	ldr	w4, [x8]
Lloh146:
	adrp	x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGE
Lloh147:
	ldr	x8, [x8, _OTG_TEST_PATTERN_DYNAMIC_RANGE@GOTPAGEOFF]
Lloh148:
	ldr	w6, [x8]
Lloh149:
	adrp	x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGE
Lloh150:
	ldr	x8, [x8, _OTG_TEST_PATTERN_COLOR_FORMAT@GOTPAGEOFF]
Lloh151:
	ldr	w8, [x8]
	stp	w8, w21, [sp]
	mov	w1, #0
	mov	w3, #1
	mov	x5, x19
	mov	w7, #0
	bl	_REG_SET_4
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGot	Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_TEST_PATTERN_COLOR_FORMAT_BPC_12,4,2 ; @TEST_PATTERN_COLOR_FORMAT_BPC_12
	.comm	_TEST_PATTERN_DYN_RANGE_CEA,4,2 ; @TEST_PATTERN_DYN_RANGE_CEA
	.comm	_TEST_PATTERN_DYN_RANGE_VESA,4,2 ; @TEST_PATTERN_DYN_RANGE_VESA
	.comm	_TEST_PATTERN_MODE_COLORSQUARES_RGB,4,2 ; @TEST_PATTERN_MODE_COLORSQUARES_RGB
	.comm	_OTG_TEST_PATTERN_PARAMETERS,4,2 ; @OTG_TEST_PATTERN_PARAMETERS
	.comm	_OTG_TEST_PATTERN_VRES,4,2      ; @OTG_TEST_PATTERN_VRES
	.comm	_OTG_TEST_PATTERN_HRES,4,2      ; @OTG_TEST_PATTERN_HRES
	.comm	_OTG_TEST_PATTERN_CONTROL,4,2   ; @OTG_TEST_PATTERN_CONTROL
	.comm	_OTG_TEST_PATTERN_EN,4,2        ; @OTG_TEST_PATTERN_EN
	.comm	_OTG_TEST_PATTERN_MODE,4,2      ; @OTG_TEST_PATTERN_MODE
	.comm	_OTG_TEST_PATTERN_DYNAMIC_RANGE,4,2 ; @OTG_TEST_PATTERN_DYNAMIC_RANGE
	.comm	_OTG_TEST_PATTERN_COLOR_FORMAT,4,2 ; @OTG_TEST_PATTERN_COLOR_FORMAT
	.comm	_TEST_PATTERN_MODE_VERTICALBARS,4,2 ; @TEST_PATTERN_MODE_VERTICALBARS
	.comm	_TEST_PATTERN_MODE_HORIZONTALBARS,4,2 ; @TEST_PATTERN_MODE_HORIZONTALBARS
	.comm	_OTG_TEST_PATTERN_COLOR,4,2     ; @OTG_TEST_PATTERN_COLOR
	.comm	_OTG_TEST_PATTERN_MASK,4,2      ; @OTG_TEST_PATTERN_MASK
	.comm	_OTG_TEST_PATTERN_DATA,4,2      ; @OTG_TEST_PATTERN_DATA
	.comm	_TEST_PATTERN_MODE_DUALRAMP_RGB,4,2 ; @TEST_PATTERN_MODE_DUALRAMP_RGB
	.comm	_TEST_PATTERN_MODE_SINGLERAMP_RGB,4,2 ; @TEST_PATTERN_MODE_SINGLERAMP_RGB
	.comm	_OTG_TEST_PATTERN_INC0,4,2      ; @OTG_TEST_PATTERN_INC0
	.comm	_OTG_TEST_PATTERN_INC1,4,2      ; @OTG_TEST_PATTERN_INC1
	.comm	_OTG_TEST_PATTERN_RAMP0_OFFSET,4,2 ; @OTG_TEST_PATTERN_RAMP0_OFFSET
	.no_dead_strip	_optc1_set_test_pattern
	.p2align	2                               ; @switch.table.optc1_set_test_pattern
l_switch.table.optc1_set_test_pattern:
	.long	8                               ; 0x8
	.long	10                              ; 0xa
	.long	6                               ; 0x6

.subsections_via_symbols
