	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rad_panel_probe
_rad_panel_probe:                       ## @rad_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, %r13
	leaq	16(%rdi), %r15
	movq	16(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r13, 24(%r14)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_MIPI_DSI_MODE_VIDEO_HSE@GOTPCREL(%rip), %rax
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r13)
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movl	-44(%rbp), %edx
	cmpl	$2, %edx
	je	LBB0_7
## %bb.3:
	cmpl	$1, %edx
	je	LBB0_10
## %bb.4:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.5:
	movq	_MIPI_DSI_MODE_VIDEO_BURST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_7:
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_10:
	leaq	4(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_22
LBB0_13:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 20(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	20(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_BACKLIGHT_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	callq	_dev_name
	movq	_rad_bl_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r9
	callq	_devm_backlight_device_register
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	16(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_17:
	movq	%r14, %rdi
	callq	_rad_init_regulators
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.18:
	movq	%r14, %rdi
	callq	_drm_panel_init
	movq	_rad_panel_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r15, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_drm_panel_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%r13, %rdi
	callq	_mipi_dsi_attach
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_22
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ## @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO_HSE,4,2    ## @MIPI_DSI_MODE_VIDEO_HSE
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ## @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video-mode"

	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ## @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ## @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
L_.str.1:                               ## @.str.1
	.asciz	"invalid video mode %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"dsi-lanes"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get dsi-lanes property (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_BACKLIGHT_RAW,4,2              ## @BACKLIGHT_RAW
	.comm	_rad_bl_ops,4,2                 ## @rad_bl_ops
L_.str.5:                               ## @.str.5
	.asciz	"Failed to register backlight (%d)\n"

	.comm	_rad_panel_funcs,4,2            ## @rad_panel_funcs
	.no_dead_strip	_rad_panel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rad_panel_probe
_rad_panel_probe:                       ; @rad_panel_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	x20, x0
	ldr	x22, [x20, #16]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mipi_dsi_set_drvdata
	str	x19, [x21, #24]
Lloh3:
	adrp	x8, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _MIPI_DSI_MODE_VIDEO_HSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO_HSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MIPI_DSI_CLOCK_NON_CONTINUOUS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w2, [sp, #12]
	cmp	w2, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w2, #1
	b.eq	LBB0_10
; %bb.4:
	cbnz	w2, LBB0_9
; %bb.5:
Lloh17:
	adrp	x8, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_7:
Lloh22:
	adrp	x8, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_10:
	add	x2, x19, #4
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x21, #20]
	bl	_PTR_ERR
	mov	x22, x0
LBB0_15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh35:
	adrp	x8, _BACKLIGHT_RAW@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BACKLIGHT_RAW@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	movi	d0, #0x0000ff000000ff
	str	d0, [sp, #16]
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
Lloh38:
	adrp	x4, _rad_bl_ops@GOTPAGE
Lloh39:
	ldr	x4, [x4, _rad_bl_ops@GOTPAGEOFF]
	add	x5, sp, #16
	mov	x0, x20
	mov	x2, x20
	mov	x3, x19
	bl	_devm_backlight_device_register
	str	w0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x21, #16]
	bl	_PTR_ERR
	mov	x22, x0
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_18:
	mov	x0, x21
	bl	_rad_init_regulators
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.19:
	mov	x0, x21
	bl	_drm_panel_init
Lloh42:
	adrp	x8, _rad_panel_funcs@GOTPAGE
Lloh43:
	ldr	x8, [x8, _rad_panel_funcs@GOTPAGEOFF]
	stp	x20, x8, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x21
	bl	_drm_panel_add
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.20:
	mov	x0, x19
	bl	_mipi_dsi_attach
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.21:
	mov	x0, x21
	bl	_drm_panel_remove
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ; @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO_HSE,4,2    ; @MIPI_DSI_MODE_VIDEO_HSE
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_CLOCK_NON_CONTINUOUS,4,2 ; @MIPI_DSI_CLOCK_NON_CONTINUOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video-mode"

	.comm	_MIPI_DSI_MODE_VIDEO_BURST,4,2  ; @MIPI_DSI_MODE_VIDEO_BURST
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ; @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
l_.str.1:                               ; @.str.1
	.asciz	"invalid video mode %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"dsi-lanes"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get dsi-lanes property (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_BACKLIGHT_RAW,4,2              ; @BACKLIGHT_RAW
	.comm	_rad_bl_ops,4,2                 ; @rad_bl_ops
l_.str.5:                               ; @.str.5
	.asciz	"Failed to register backlight (%d)\n"

	.comm	_rad_panel_funcs,4,2            ; @rad_panel_funcs
	.no_dead_strip	_rad_panel_probe
.subsections_via_symbols
