	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_mode_set
_dw_mipi_dsi_mode_set:                  ## @dw_mipi_dsi_mode_set
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r13
	callq	_dw_mipi_dsi_get_lanes
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	callq	_clk_prepare_enable
	movl	8(%rbx), %r8d
	movl	12(%rbx), %edx
	leaq	4(%rbx), %r9
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %ecx
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_2:
	movl	(%rbx), %edi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_dsi_dpi_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_packet_handler_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_video_mode_config
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_dsi_video_packet_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_command_mode_config
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_dsi_line_timer_config
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_dsi_vertical_timing_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_dphy_init
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_dphy_timing_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_dphy_interface_config
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_clear_err
	movq	%r15, %rdi
	callq	*8(%r13)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_4:
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_dphy_enable
	movq	%r14, %rdi
	callq	_dw_mipi_dsi_wait_for_two_frames
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dw_mipi_dsi_set_mode           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy get_lane_mbps() failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Phy init() failed\n"

	.no_dead_strip	_dw_mipi_dsi_mode_set
.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_mode_set
_dw_mipi_dsi_mode_set:                  ; @dw_mipi_dsi_mode_set
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	x21, x23, [x8]
	bl	_dw_mipi_dsi_get_lanes
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_clk_prepare_enable
	ldr	x8, [x23]
	add	x5, x19, #4
	ldp	w4, w2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_2:
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_dw_mipi_dsi_init
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mipi_dsi_dpi_config
	mov	x0, x19
	bl	_dw_mipi_dsi_packet_handler_config
	mov	x0, x19
	bl	_dw_mipi_dsi_video_mode_config
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mipi_dsi_video_packet_config
	mov	x0, x19
	bl	_dw_mipi_dsi_command_mode_config
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mipi_dsi_line_timer_config
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mipi_dsi_vertical_timing_config
	mov	x0, x19
	bl	_dw_mipi_dsi_dphy_init
	mov	x0, x19
	bl	_dw_mipi_dsi_dphy_timing_config
	mov	x0, x19
	bl	_dw_mipi_dsi_dphy_interface_config
	mov	x0, x19
	bl	_dw_mipi_dsi_clear_err
	ldr	x8, [x23, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_4:
	mov	x0, x19
	bl	_dw_mipi_dsi_dphy_enable
	mov	x0, x20
	bl	_dw_mipi_dsi_wait_for_two_frames
	mov	x0, x19
	mov	w1, #0
	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
	b	_dw_mipi_dsi_set_mode
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy get_lane_mbps() failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Phy init() failed\n"

	.no_dead_strip	_dw_mipi_dsi_mode_set
.subsections_via_symbols
