	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_set_mode
_dw_mipi_dsi_set_mode:                  ## @dw_mipi_dsi_set_mode
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DSI_PWR_UP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dsi_write
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movq	_DSI_MODE_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%r14, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_ENABLE_VIDEO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dsi_write
	movq	%rbx, %rdi
	callq	_dw_mipi_dsi_video_mode_config
	movq	_DSI_LPCLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXREQUESTCLKHS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ENABLE_CMD_MODE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dsi_write
	movl	(%r15), %esi
	movq	_POWERUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	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	_MIPI_DSI_MODE_VIDEO,8,3        ## @MIPI_DSI_MODE_VIDEO
	.comm	_DSI_MODE_CFG,4,2               ## @DSI_MODE_CFG
	.comm	_ENABLE_VIDEO_MODE,4,2          ## @ENABLE_VIDEO_MODE
	.comm	_DSI_LPCLK_CTRL,4,2             ## @DSI_LPCLK_CTRL
	.comm	_PHY_TXREQUESTCLKHS,4,2         ## @PHY_TXREQUESTCLKHS
	.comm	_ENABLE_CMD_MODE,4,2            ## @ENABLE_CMD_MODE
	.comm	_POWERUP,4,2                    ## @POWERUP
	.no_dead_strip	_dw_mipi_dsi_set_mode
.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_set_mode
_dw_mipi_dsi_set_mode:                  ; @dw_mipi_dsi_set_mode
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _DSI_PWR_UP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DSI_PWR_UP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_dsi_write
Lloh5:
	adrp	x8, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _DSI_MODE_CFG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DSI_MODE_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	tst	x8, x20
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ENABLE_VIDEO_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENABLE_VIDEO_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dsi_write
	mov	x0, x19
	bl	_dw_mipi_dsi_video_mode_config
Lloh14:
	adrp	x8, _DSI_LPCLK_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSI_LPCLK_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _PHY_TXREQUESTCLKHS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_TXREQUESTCLKHS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x8, _ENABLE_CMD_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENABLE_CMD_MODE@GOTPAGEOFF]
LBB0_3:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dsi_write
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _POWERUP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POWERUP@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_PWR_UP,4,2                 ; @DSI_PWR_UP
	.comm	_RESET,4,2                      ; @RESET
	.comm	_MIPI_DSI_MODE_VIDEO,8,3        ; @MIPI_DSI_MODE_VIDEO
	.comm	_DSI_MODE_CFG,4,2               ; @DSI_MODE_CFG
	.comm	_ENABLE_VIDEO_MODE,4,2          ; @ENABLE_VIDEO_MODE
	.comm	_DSI_LPCLK_CTRL,4,2             ; @DSI_LPCLK_CTRL
	.comm	_PHY_TXREQUESTCLKHS,4,2         ; @PHY_TXREQUESTCLKHS
	.comm	_ENABLE_CMD_MODE,4,2            ; @ENABLE_CMD_MODE
	.comm	_POWERUP,4,2                    ; @POWERUP
	.no_dead_strip	_dw_mipi_dsi_set_mode
.subsections_via_symbols
