	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osd101t2587_panel_probe
_osd101t2587_panel_probe:               ## @osd101t2587_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_osd101t2587_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	$4, (%r12)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movq	_MIPI_DSI_MODE_VIDEO_BURST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MIPI_DSI_MODE_EOT_PACKET@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	8(%r12), %rdi
	movl	%ecx, 4(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mipi_dsi_set_drvdata
	movq	%r12, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_osd101t2587_panel_add
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_mipi_dsi_attach
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_drm_panel_remove
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_osd101t2587_of_match,4,2       ## @osd101t2587_of_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ## @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.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
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ## @MIPI_DSI_MODE_EOT_PACKET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_osd101t2587_panel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osd101t2587_panel_probe
_osd101t2587_panel_probe:               ; @osd101t2587_panel_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _osd101t2587_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _osd101t2587_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x21, x19
	ldr	w1, [x21, #8]!
	bl	_of_match_node
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w8, #4
	str	w8, [x19]
Lloh3:
	adrp	x8, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
	str	w8, [x19, #12]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_BURST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mipi_dsi_set_drvdata
	str	x19, [x21, #8]
	ldr	w8, [x20]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_osd101t2587_panel_add
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_mipi_dsi_attach
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x21
	bl	_drm_panel_remove
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_8:
	mov	x20, x0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_osd101t2587_of_match,4,2       ; @osd101t2587_of_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ; @MIPI_DSI_FMT_RGB888
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.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
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ; @MIPI_DSI_MODE_EOT_PACKET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_osd101t2587_panel_probe
.subsections_via_symbols
