	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_init_output
_dsi_init_output:                       ## @dsi_init_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movl	%eax, 60(%rdi)
	cmpq	$0, (%rdi)
	movq	_OMAP_DSS_OUTPUT_DSI2@GOTPCREL(%rip), %rax
	cmoveq	_OMAP_DSS_OUTPUT_DSI1@GOTPCREL(%rip), %rax
	leaq	16(%rdi), %r14
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_OMAP_DISPLAY_TYPE_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, 16(%rdi)
	callq	_dsi_get_channel
	movl	%eax, 48(%rbx)
	movq	_dsi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, 28(%rbx)
	movq	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPCREL(%rip), %rax
	movq	_DRM_BUS_FLAG_DE_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	%r14, %rdi
	callq	_omapdss_device_init_output
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_omapdss_device_register
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_OUTPUT_DSI1,4,2       ## @OMAP_DSS_OUTPUT_DSI1
	.comm	_OMAP_DSS_OUTPUT_DSI2,4,2       ## @OMAP_DSS_OUTPUT_DSI2
	.comm	_OMAP_DISPLAY_TYPE_DSI,4,2      ## @OMAP_DISPLAY_TYPE_DSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi.0"

L_.str.1:                               ## @.str.1
	.asciz	"dsi.1"

	.comm	_dsi_ops,4,2                    ## @dsi_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,4,2 ## @DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ## @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,4,2 ## @DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
	.no_dead_strip	_dsi_init_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_init_output
_dsi_init_output:                       ; @dsi_init_output
	.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	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	mov	x19, x0
	str	x8, [x19, #16]!
	ldr	w8, [x0, #8]
	str	w8, [x0, #60]
Lloh4:
	adrp	x8, _OMAP_DSS_OUTPUT_DSI1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OMAP_DSS_OUTPUT_DSI1@GOTPAGEOFF]
Lloh6:
	adrp	x9, _OMAP_DSS_OUTPUT_DSI2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMAP_DSS_OUTPUT_DSI2@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _OMAP_DISPLAY_TYPE_DSI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OMAP_DISPLAY_TYPE_DSI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #52]
	bl	_dsi_get_channel
Lloh11:
	adrp	x8, _dsi_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dsi_ops@GOTPAGEOFF]
	str	w0, [x20, #48]
	str	x8, [x20, #40]
Lloh13:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	w0, #0
	bl	_BIT
Lloh16:
	adrp	x8, _DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _DRM_BUS_FLAG_DE_HIGH@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DRM_BUS_FLAG_DE_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w0, [x20, #24]
	mov	x0, x19
	bl	_omapdss_device_init_output
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_omapdss_device_register
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_OUTPUT_DSI1,4,2       ; @OMAP_DSS_OUTPUT_DSI1
	.comm	_OMAP_DSS_OUTPUT_DSI2,4,2       ; @OMAP_DSS_OUTPUT_DSI2
	.comm	_OMAP_DISPLAY_TYPE_DSI,4,2      ; @OMAP_DISPLAY_TYPE_DSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi.0"

l_.str.1:                               ; @.str.1
	.asciz	"dsi.1"

	.comm	_dsi_ops,4,2                    ; @dsi_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,4,2 ; @DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ; @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,4,2 ; @DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
	.no_dead_strip	_dsi_init_output
.subsections_via_symbols
