	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpi_touchscreen_dsi_probe
_rpi_touchscreen_dsi_probe:             ## @rpi_touchscreen_dsi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MIPI_DSI_MODE_LPM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movl	$1, 4(%rdi)
	callq	_mipi_dsi_attach
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dev_err
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ## @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_MIPI_DSI_MODE_LPM,4,2          ## @MIPI_DSI_MODE_LPM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ## @MIPI_DSI_FMT_RGB888
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to attach dsi to host: %d\n"

	.no_dead_strip	_rpi_touchscreen_dsi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpi_touchscreen_dsi_probe
_rpi_touchscreen_dsi_probe:             ; @rpi_touchscreen_dsi_probe
	.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, x0
Lloh0:
	adrp	x8, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MIPI_DSI_MODE_LPM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIPI_DSI_MODE_LPM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
	orr	w8, w8, w9
	mov	w9, #1
	stp	w8, w9, [x0]
Lloh11:
	ldr	w8, [x10]
	str	w8, [x0, #12]
	bl	_mipi_dsi_attach
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	add	x0, x19, #8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ; @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_MIPI_DSI_MODE_LPM,4,2          ; @MIPI_DSI_MODE_LPM
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ; @MIPI_DSI_FMT_RGB888
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to attach dsi to host: %d\n"

	.no_dead_strip	_rpi_touchscreen_dsi_probe
.subsections_via_symbols
