	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl111_versatile_enable
_pl111_versatile_enable:                ## @pl111_versatile_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	leal	-128(%r14), %eax
	cmpl	$9, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_SYS_CLCD_MODE_888@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_SYS_CLCD_MODE_5551@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_5:
	movq	_SYS_CLCD_MODE_565_R_LSB@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_SYS_CLCD_MODE_565_B_LSB@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
LBB0_8:
	movq	_versatile_syscon_map@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SYS_CLCD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SYS_CLCD_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movq	_SYS_CLCD_CONNECTOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SYS_CLCD_NLCDIOON@GOTPCREL(%rip), %rax
	movq	_SYS_CLCD_PWR3V5SWITCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable Versatile CLCD connectors\n"

	.comm	_SYS_CLCD_MODE_888,4,2          ## @SYS_CLCD_MODE_888
	.comm	_SYS_CLCD_MODE_565_R_LSB,4,2    ## @SYS_CLCD_MODE_565_R_LSB
	.comm	_SYS_CLCD_MODE_565_B_LSB,4,2    ## @SYS_CLCD_MODE_565_B_LSB
	.comm	_SYS_CLCD_MODE_5551,4,2         ## @SYS_CLCD_MODE_5551
L_.str.1:                               ## @.str.1
	.asciz	"unhandled format on Versatile 0x%08x\n"

	.comm	_versatile_syscon_map,4,2       ## @versatile_syscon_map
	.comm	_SYS_CLCD,4,2                   ## @SYS_CLCD
	.comm	_SYS_CLCD_MODE_MASK,4,2         ## @SYS_CLCD_MODE_MASK
	.comm	_SYS_CLCD_CONNECTOR_MASK,4,2    ## @SYS_CLCD_CONNECTOR_MASK
	.comm	_SYS_CLCD_NLCDIOON,4,2          ## @SYS_CLCD_NLCDIOON
	.comm	_SYS_CLCD_PWR3V5SWITCH,4,2      ## @SYS_CLCD_PWR3V5SWITCH
	.no_dead_strip	_pl111_versatile_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl111_versatile_enable
_pl111_versatile_enable:                ; @pl111_versatile_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	sub	w8, w19, #128
	cmp	w8, #9
	b.hi	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _SYS_CLCD_MODE_888@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SYS_CLCD_MODE_888@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _SYS_CLCD_MODE_5551@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_CLCD_MODE_5551@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	w3, #0
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _SYS_CLCD_MODE_565_R_LSB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SYS_CLCD_MODE_565_R_LSB@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _SYS_CLCD_MODE_565_B_LSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_CLCD_MODE_565_B_LSB@GOTPAGEOFF]
LBB0_7:
	ldr	w3, [x8]
LBB0_8:
Lloh14:
	adrp	x19, _versatile_syscon_map@GOTPAGE
Lloh15:
	ldr	x19, [x19, _versatile_syscon_map@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh16:
	adrp	x20, _SYS_CLCD@GOTPAGE
Lloh17:
	ldr	x20, [x20, _SYS_CLCD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh18:
	adrp	x8, _SYS_CLCD_MODE_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYS_CLCD_MODE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh21:
	adrp	x8, _SYS_CLCD_CONNECTOR_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SYS_CLCD_CONNECTOR_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _SYS_CLCD_NLCDIOON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYS_CLCD_NLCDIOON@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SYS_CLCD_PWR3V5SWITCH@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SYS_CLCD_PWR3V5SWITCH@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable Versatile CLCD connectors\n"

	.comm	_SYS_CLCD_MODE_888,4,2          ; @SYS_CLCD_MODE_888
	.comm	_SYS_CLCD_MODE_565_R_LSB,4,2    ; @SYS_CLCD_MODE_565_R_LSB
	.comm	_SYS_CLCD_MODE_565_B_LSB,4,2    ; @SYS_CLCD_MODE_565_B_LSB
	.comm	_SYS_CLCD_MODE_5551,4,2         ; @SYS_CLCD_MODE_5551
l_.str.1:                               ; @.str.1
	.asciz	"unhandled format on Versatile 0x%08x\n"

	.comm	_versatile_syscon_map,4,2       ; @versatile_syscon_map
	.comm	_SYS_CLCD,4,2                   ; @SYS_CLCD
	.comm	_SYS_CLCD_MODE_MASK,4,2         ; @SYS_CLCD_MODE_MASK
	.comm	_SYS_CLCD_CONNECTOR_MASK,4,2    ; @SYS_CLCD_CONNECTOR_MASK
	.comm	_SYS_CLCD_NLCDIOON,4,2          ; @SYS_CLCD_NLCDIOON
	.comm	_SYS_CLCD_PWR3V5SWITCH,4,2      ; @SYS_CLCD_PWR3V5SWITCH
	.no_dead_strip	_pl111_versatile_enable
.subsections_via_symbols
