	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_init
_dw_mipi_dsi_init:                      ## @dw_mipi_dsi_init
	.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
	movl	(%rdi), %eax
	sarl	$3, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$35, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %r14d
	incl	%r14d
	movq	_DSI_PWR_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dsi_write
	movq	_DSI_CLKMGR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$10, %edi
	callq	_TO_CLK_DIVISION
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_TX_ESC_CLK_DIVISION
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsi_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_PWR_UP,4,2                 ## @DSI_PWR_UP
	.comm	_RESET,4,2                      ## @RESET
	.comm	_DSI_CLKMGR_CFG,4,2             ## @DSI_CLKMGR_CFG
	.no_dead_strip	_dw_mipi_dsi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_init
_dw_mipi_dsi_init:                      ; @dw_mipi_dsi_init
	.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
	ldr	w8, [x0]
	asr	w8, w8, #3
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	add	w20, w8, #1
Lloh0:
	adrp	x8, _DSI_PWR_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSI_PWR_UP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_dsi_write
Lloh6:
	adrp	x8, _DSI_CLKMGR_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSI_CLKMGR_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #10
	bl	_TO_CLK_DIVISION
	mov	x22, x0
	mov	x0, x20
	bl	_TX_ESC_CLK_DIVISION
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	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
	b	_dsi_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_PWR_UP,4,2                 ; @DSI_PWR_UP
	.comm	_RESET,4,2                      ; @RESET
	.comm	_DSI_CLKMGR_CFG,4,2             ; @DSI_CLKMGR_CFG
	.no_dead_strip	_dw_mipi_dsi_init
.subsections_via_symbols
