	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function versatile_panel_probe
_versatile_panel_probe:                 ## @versatile_panel_probe
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rax), %edi
	callq	_syscon_node_to_regmap
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	movq	_SYS_CLCD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movq	_SYS_CLCD_CLCDID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, -44(%rbp)
	movq	_versatile_panels@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	12(%rdi,%r14), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_13
## %bb.15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_17:
	addq	%r14, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, 24(%r14)
LBB0_18:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_20:
	movq	24(%r14), %rax
	movl	8(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r12, 40(%r14)
	movq	%r15, 32(%r14)
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.21:
	leaq	L_.str.5(%rip), %rdi
	callq	_syscon_regmap_lookup_by_compatible
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	$0, 16(%r14)
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_24:
	movq	%r14, %rdi
	callq	_drm_panel_init
	movq	%r12, 8(%r14)
	movq	_versatile_panel_drm_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_drm_panel_add
	movl	%eax, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no parent for versatile panel\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"no regmap for versatile panel parent\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SYS_CLCD,4,2                   ## @SYS_CLCD
L_.str.2:                               ## @.str.2
	.asciz	"cannot access syscon regs\n"

	.comm	_SYS_CLCD_CLCDID_MASK,4,2       ## @SYS_CLCD_CLCDID_MASK
	.comm	_versatile_panels,8,3           ## @versatile_panels
L_.str.3:                               ## @.str.3
	.asciz	"no panel detected\n"

L_.str.4:                               ## @.str.4
	.asciz	"detected: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"arm,versatile-ib2-syscon"

L_.str.6:                               ## @.str.6
	.asciz	"panel mounted on IB2 daughterboard\n"

	.comm	_versatile_panel_drm_funcs,4,2  ## @versatile_panel_drm_funcs
	.no_dead_strip	_versatile_panel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function versatile_panel_probe
_versatile_panel_probe:                 ; @versatile_panel_probe
	.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	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8]
	bl	_syscon_node_to_regmap
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	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	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	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_7:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
Lloh9:
	adrp	x8, _SYS_CLCD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYS_CLCD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_regmap_read
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
Lloh16:
	adrp	x8, _SYS_CLCD_CLCDID_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SYS_CLCD_CLCDID_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
Lloh19:
	adrp	x22, _versatile_panels@GOTPAGE
Lloh20:
	ldr	x22, [x22, _versatile_panels@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x24, #0
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	add	x8, x0, x24
	ldr	w9, [x8, #12]
	ldr	w10, [sp, #12]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_13
	b	LBB0_17
LBB0_15:
	mov	w23, #0
	b	LBB0_17
LBB0_16:
	str	x8, [x20, #24]
LBB0_17:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_19
; %bb.18:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_4
LBB0_19:
	ldr	x8, [x20, #24]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	stp	x21, x19, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.20:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_syscon_regmap_lookup_by_compatible
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_22
; %bb.21:
	str	xzr, [x20, #16]
	b	LBB0_23
LBB0_22:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_23:
	mov	x0, x20
	bl	_drm_panel_init
Lloh29:
	adrp	x8, _versatile_panel_drm_funcs@GOTPAGE
Lloh30:
	ldr	x8, [x8, _versatile_panel_drm_funcs@GOTPAGEOFF]
	stp	x8, x19, [x20]
	mov	x0, x20
	bl	_drm_panel_add
	mov	x22, x0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no parent for versatile panel\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"no regmap for versatile panel parent\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SYS_CLCD,4,2                   ; @SYS_CLCD
l_.str.2:                               ; @.str.2
	.asciz	"cannot access syscon regs\n"

	.comm	_SYS_CLCD_CLCDID_MASK,4,2       ; @SYS_CLCD_CLCDID_MASK
	.comm	_versatile_panels,8,3           ; @versatile_panels
l_.str.3:                               ; @.str.3
	.asciz	"no panel detected\n"

l_.str.4:                               ; @.str.4
	.asciz	"detected: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"arm,versatile-ib2-syscon"

l_.str.6:                               ; @.str.6
	.asciz	"panel mounted on IB2 daughterboard\n"

	.comm	_versatile_panel_drm_funcs,4,2  ; @versatile_panel_drm_funcs
	.no_dead_strip	_versatile_panel_probe
.subsections_via_symbols
