	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_display_init_dispc
_dsi_display_init_dispc:                ## @dsi_display_init_dispc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	20(%rbx), %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_DSS_CLK_SRC_PLL1_1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DSS_CLK_SRC_PLL2_1@GOTPCREL(%rip), %rax
LBB0_3:
	leaq	20(%rbx), %r15
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_dss_select_lcd_clk_source
	movq	8(%rbx), %rcx
	movq	_OMAP_DSS_DSI_CMD_MODE@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	cmpq	(%r13), %rcx
	jne	LBB0_6
## %bb.4:
	movq	_dsi_framedone_irq_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dss_mgr_register_framedone_handler
	testl	%eax, %eax
	je	LBB0_5
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_DSSERR
	jmp	LBB0_10
LBB0_5:
	movl	$1, %eax
LBB0_6:
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_dsi_configure_dispc_clocks
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.9:
	movq	_dsi_framedone_irq_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dss_mgr_unregister_framedone_handler
LBB0_10:
	movl	16(%rbx), %edi
	movq	_DSS_CLK_SRC_FCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_dss_select_lcd_clk_source
	jmp	LBB0_11
LBB0_7:
	movq	_DSS_IO_PAD_MODE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %r14
	movl	%eax, 44(%rbx)
	movl	48(%rbx), %edi
	callq	_dsi_get_pixel_size
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dss_mgr_set_lcd_config
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_CLK_SRC_PLL1_1,4,2         ## @DSS_CLK_SRC_PLL1_1
	.comm	_DSS_CLK_SRC_PLL2_1,4,2         ## @DSS_CLK_SRC_PLL2_1
	.comm	_OMAP_DSS_DSI_CMD_MODE,8,3      ## @OMAP_DSS_DSI_CMD_MODE
	.comm	_dsi_framedone_irq_callback,4,2 ## @dsi_framedone_irq_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't register FRAMEDONE handler\n"

	.comm	_DSS_IO_PAD_MODE_BYPASS,4,2     ## @DSS_IO_PAD_MODE_BYPASS
	.comm	_DSS_CLK_SRC_FCK,4,2            ## @DSS_CLK_SRC_FCK
	.no_dead_strip	_dsi_display_init_dispc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_display_init_dispc
_dsi_display_init_dispc:                ; @dsi_display_init_dispc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	w20, [x21, #20]!
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _DSS_CLK_SRC_PLL1_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_CLK_SRC_PLL1_1@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	adrp	x10, _DSS_CLK_SRC_PLL2_1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DSS_CLK_SRC_PLL2_1@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w2, [x8]
	mov	x1, x20
	bl	_dss_select_lcd_clk_source
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x23, _OMAP_DSS_DSI_CMD_MODE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _OMAP_DSS_DSI_CMD_MODE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _dsi_framedone_irq_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dsi_framedone_irq_callback@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_dss_mgr_register_framedone_handler
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSERR
	b	LBB0_8
LBB0_3:
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	mov	w8, #1
LBB0_5:
	stp	w8, w8, [x19, #24]
	mov	x0, x19
	bl	_dsi_configure_dispc_clocks
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _dsi_framedone_irq_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dsi_framedone_irq_callback@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_dss_mgr_unregister_framedone_handler
LBB0_8:
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x8, _DSS_CLK_SRC_FCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSS_CLK_SRC_FCK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_dss_select_lcd_clk_source
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _DSS_IO_PAD_MODE_BYPASS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DSS_IO_PAD_MODE_BYPASS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	x20, x19, #24
	str	w8, [x19, #44]
	ldr	w0, [x19, #48]
	bl	_dsi_get_pixel_size
	str	w0, [x19, #40]
	str	xzr, [x19, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_dss_mgr_set_lcd_config
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_CLK_SRC_PLL1_1,4,2         ; @DSS_CLK_SRC_PLL1_1
	.comm	_DSS_CLK_SRC_PLL2_1,4,2         ; @DSS_CLK_SRC_PLL2_1
	.comm	_OMAP_DSS_DSI_CMD_MODE,8,3      ; @OMAP_DSS_DSI_CMD_MODE
	.comm	_dsi_framedone_irq_callback,4,2 ; @dsi_framedone_irq_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't register FRAMEDONE handler\n"

	.comm	_DSS_IO_PAD_MODE_BYPASS,4,2     ; @DSS_IO_PAD_MODE_BYPASS
	.comm	_DSS_CLK_SRC_FCK,4,2            ; @DSS_CLK_SRC_FCK
	.no_dead_strip	_dsi_display_init_dispc
.subsections_via_symbols
