	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl111_versatile_init           ## -- Begin function pl111_versatile_init
	.p2align	4, 0x90
_pl111_versatile_init:                  ## @pl111_versatile_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_versatile_clcd_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_of_find_matching_node_and_match
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r13
	movq	-56(%rbp), %rax
	movl	(%rax), %r14d
	cmpl	$128, %r14d
	jne	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	callq	_vexpress_muxfpga_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_of_node_put
	jmp	LBB0_21
LBB0_9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_syscon_node_to_regmap
	movq	%rax, %r12
LBB0_10:
	movq	%r13, %rdi
	callq	_of_node_put
	movq	%r12, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_12:
	addl	$-128, %r14d
	cmpl	$7, %r14d
	ja	LBB0_13
## %bb.14:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_versatile_syscon_map@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_pl111_realview@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_pl111_realview_clcd_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_pl111_realview_clcd_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	leaq	L_.str.6(%rip), %rsi
LBB0_19:
	movq	%r15, %rdi
	callq	_dev_info
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_4:
	movq	%r13, %rdi
	callq	_of_find_device_by_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_platform_device_put
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_6:
	movq	%r13, %rdi
	callq	_of_node_put
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_19
LBB0_17:
	movq	_pl111_vexpress@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_pl111_vexpress_clcd_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_20
LBB0_15:
	movq	_versatile_syscon_map@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_pl110_versatile@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_pl111_versatile_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_pl111_versatile_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_CLCD_PL111_IENB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_CLCD_PL111_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_19
LBB0_18:
	movq	_versatile_syscon_map@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_pl110_integrator@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_pl111_integrator_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_versatile_clcd_of_match,4,2    ## @versatile_clcd_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to initialize muxfpga driver\n"

L_.str.1:                               ## @.str.1
	.asciz	"can't find the sysreg device, deferring\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"sysreg has not yet probed\n"

L_.str.3:                               ## @.str.3
	.asciz	"no Versatile syscon regmap\n"

	.comm	_versatile_syscon_map,8,3       ## @versatile_syscon_map
	.comm	_pl110_integrator,4,2           ## @pl110_integrator
	.comm	_pl111_integrator_enable,4,2    ## @pl111_integrator_enable
L_.str.4:                               ## @.str.4
	.asciz	"set up callbacks for Integrator PL110\n"

	.comm	_pl110_versatile,4,2            ## @pl110_versatile
	.comm	_pl111_versatile_enable,4,2     ## @pl111_versatile_enable
	.comm	_pl111_versatile_disable,4,2    ## @pl111_versatile_disable
	.comm	_CLCD_PL111_IENB,4,2            ## @CLCD_PL111_IENB
	.comm	_CLCD_PL111_CNTL,4,2            ## @CLCD_PL111_CNTL
L_.str.5:                               ## @.str.5
	.asciz	"set up callbacks for Versatile PL110\n"

	.comm	_pl111_realview,4,2             ## @pl111_realview
	.comm	_pl111_realview_clcd_enable,4,2 ## @pl111_realview_clcd_enable
	.comm	_pl111_realview_clcd_disable,4,2 ## @pl111_realview_clcd_disable
L_.str.6:                               ## @.str.6
	.asciz	"set up callbacks for RealView PL111\n"

	.comm	_pl111_vexpress,4,2             ## @pl111_vexpress
L_.str.7:                               ## @.str.7
	.asciz	"initializing Versatile Express PL111\n"

L_.str.8:                               ## @.str.8
	.asciz	"unknown Versatile system controller\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl111_versatile_init           ; -- Begin function pl111_versatile_init
	.p2align	2
_pl111_versatile_init:                  ; @pl111_versatile_init
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _versatile_clcd_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _versatile_clcd_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, #0
	bl	_of_find_matching_node_and_match
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	subs	w24, w8, #128
	b.ne	LBB0_4
; %bb.2:
	bl	_vexpress_muxfpga_init
	cbz	w0, LBB0_13
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_12
LBB0_4:
	mov	x0, x21
	bl	_syscon_node_to_regmap
	mov	x22, x0
LBB0_5:
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x22
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_12
LBB0_7:
	cmp	w24, #7
	b.hi	LBB0_18
; %bb.8:
Lloh7:
	adrp	x8, lJTI0_0@PAGE
Lloh8:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_9
	ldrb	w10, [x8, x24]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:
Lloh9:
	adrp	x8, _versatile_syscon_map@GOTPAGE
Lloh10:
	ldr	x8, [x8, _versatile_syscon_map@GOTPAGEOFF]
Lloh11:
	adrp	x9, _pl111_realview@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pl111_realview@GOTPAGEOFF]
Lloh13:
	str	x22, [x8]
	str	x9, [x20]
Lloh14:
	adrp	x8, _pl111_realview_clcd_enable@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pl111_realview_clcd_enable@GOTPAGEOFF]
Lloh16:
	adrp	x9, _pl111_realview_clcd_disable@GOTPAGE
Lloh17:
	ldr	x9, [x9, _pl111_realview_clcd_disable@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_info
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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
LBB0_13:
	mov	x0, x21
	bl	_of_find_device_by_node
	cbz	x0, LBB0_16
; %bb.14:
	mov	x23, x0
	bl	_dev_get_drvdata
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.15:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	bl	_platform_device_put
	b	LBB0_17
LBB0_16:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_17:
	mov	x0, x21
	bl	_of_node_put
Lloh26:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_18:
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_19:
Lloh31:
	adrp	x8, _pl111_vexpress@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pl111_vexpress@GOTPAGEOFF]
	str	x8, [x20]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_pl111_vexpress_clcd_init
	mov	x22, x0
	cbnz	w0, LBB0_12
	b	LBB0_11
LBB0_20:
Lloh35:
	adrp	x8, _versatile_syscon_map@GOTPAGE
Lloh36:
	ldr	x8, [x8, _versatile_syscon_map@GOTPAGEOFF]
Lloh37:
	str	x22, [x8]
Lloh38:
	adrp	x8, _pl110_versatile@GOTPAGE
Lloh39:
	ldr	x8, [x8, _pl110_versatile@GOTPAGEOFF]
	str	x8, [x20]
Lloh40:
	adrp	x8, _pl111_versatile_enable@GOTPAGE
Lloh41:
	ldr	x8, [x8, _pl111_versatile_enable@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _pl111_versatile_disable@GOTPAGE
Lloh44:
	ldr	x9, [x9, _pl111_versatile_disable@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh46:
	adrp	x8, _CLCD_PL111_IENB@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CLCD_PL111_IENB@GOTPAGEOFF]
Lloh48:
	adrp	x9, _CLCD_PL111_CNTL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _CLCD_PL111_CNTL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_21:
Lloh54:
	adrp	x8, _versatile_syscon_map@GOTPAGE
Lloh55:
	ldr	x8, [x8, _versatile_syscon_map@GOTPAGEOFF]
Lloh56:
	str	x22, [x8]
Lloh57:
	adrp	x8, _pl110_integrator@GOTPAGE
Lloh58:
	ldr	x8, [x8, _pl110_integrator@GOTPAGEOFF]
	str	x8, [x20]
Lloh59:
	adrp	x8, _pl111_integrator_enable@GOTPAGE
Lloh60:
	ldr	x8, [x8, _pl111_integrator_enable@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh62:
	adrp	x1, l_.str.4@PAGE
Lloh63:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_21-LBB0_9)>>2
                                        ; -- End function
	.comm	_versatile_clcd_of_match,4,2    ; @versatile_clcd_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to initialize muxfpga driver\n"

l_.str.1:                               ; @.str.1
	.asciz	"can't find the sysreg device, deferring\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"sysreg has not yet probed\n"

l_.str.3:                               ; @.str.3
	.asciz	"no Versatile syscon regmap\n"

	.comm	_versatile_syscon_map,8,3       ; @versatile_syscon_map
	.comm	_pl110_integrator,4,2           ; @pl110_integrator
	.comm	_pl111_integrator_enable,4,2    ; @pl111_integrator_enable
l_.str.4:                               ; @.str.4
	.asciz	"set up callbacks for Integrator PL110\n"

	.comm	_pl110_versatile,4,2            ; @pl110_versatile
	.comm	_pl111_versatile_enable,4,2     ; @pl111_versatile_enable
	.comm	_pl111_versatile_disable,4,2    ; @pl111_versatile_disable
	.comm	_CLCD_PL111_IENB,4,2            ; @CLCD_PL111_IENB
	.comm	_CLCD_PL111_CNTL,4,2            ; @CLCD_PL111_CNTL
l_.str.5:                               ; @.str.5
	.asciz	"set up callbacks for Versatile PL110\n"

	.comm	_pl111_realview,4,2             ; @pl111_realview
	.comm	_pl111_realview_clcd_enable,4,2 ; @pl111_realview_clcd_enable
	.comm	_pl111_realview_clcd_disable,4,2 ; @pl111_realview_clcd_disable
l_.str.6:                               ; @.str.6
	.asciz	"set up callbacks for RealView PL111\n"

	.comm	_pl111_vexpress,4,2             ; @pl111_vexpress
l_.str.7:                               ; @.str.7
	.asciz	"initializing Versatile Express PL111\n"

l_.str.8:                               ; @.str.8
	.asciz	"unknown Versatile system controller\n"

.subsections_via_symbols
