	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_sw_reset_restore
_dsi_sw_reset_restore:                  ## @dsi_sw_reset_restore
	.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, %rbx
	movq	_REG_DSI_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_dsi_read
	movl	%eax, %r14d
	movq	_DSI_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%r14d, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_dsi_write
	xorl	%eax, %eax
	callq	_wmb
	movq	_REG_DSI_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSI_CLK_CTRL_ENABLE_CLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dsi_write
	xorl	%eax, %eax
	callq	_wmb
	movq	_REG_DSI_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_dsi_write
	movq	_DSI_RESET_TOGGLE_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dsi_write
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dsi_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DSI_CTRL,4,2               ## @REG_DSI_CTRL
	.comm	_DSI_CTRL_ENABLE,4,2            ## @DSI_CTRL_ENABLE
	.comm	_REG_DSI_CLK_CTRL,4,2           ## @REG_DSI_CLK_CTRL
	.comm	_DSI_CLK_CTRL_ENABLE_CLKS,4,2   ## @DSI_CLK_CTRL_ENABLE_CLKS
	.comm	_REG_DSI_RESET,4,2              ## @REG_DSI_RESET
	.comm	_DSI_RESET_TOGGLE_DELAY_MS,4,2  ## @DSI_RESET_TOGGLE_DELAY_MS
	.no_dead_strip	_dsi_sw_reset_restore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_sw_reset_restore
_dsi_sw_reset_restore:                  ; @dsi_sw_reset_restore
	.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
Lloh0:
	adrp	x21, _REG_DSI_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_DSI_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_dsi_read
	mov	x20, x0
Lloh2:
	adrp	x8, _DSI_CTRL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_CTRL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dsi_write
	bl	_wmb
Lloh5:
	adrp	x8, _REG_DSI_CLK_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_DSI_CLK_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DSI_CLK_CTRL_ENABLE_CLKS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSI_CLK_CTRL_ENABLE_CLKS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dsi_write
	bl	_wmb
Lloh11:
	adrp	x22, _REG_DSI_RESET@GOTPAGE
Lloh12:
	ldr	x22, [x22, _REG_DSI_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_dsi_write
Lloh13:
	adrp	x8, _DSI_RESET_TOGGLE_DELAY_MS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSI_RESET_TOGGLE_DELAY_MS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_dsi_write
	bl	_wmb
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_write
	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	_wmb
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DSI_CTRL,4,2               ; @REG_DSI_CTRL
	.comm	_DSI_CTRL_ENABLE,4,2            ; @DSI_CTRL_ENABLE
	.comm	_REG_DSI_CLK_CTRL,4,2           ; @REG_DSI_CLK_CTRL
	.comm	_DSI_CLK_CTRL_ENABLE_CLKS,4,2   ; @DSI_CLK_CTRL_ENABLE_CLKS
	.comm	_REG_DSI_RESET,4,2              ; @REG_DSI_RESET
	.comm	_DSI_RESET_TOGGLE_DELAY_MS,4,2  ; @DSI_RESET_TOGGLE_DELAY_MS
	.no_dead_strip	_dsi_sw_reset_restore
.subsections_via_symbols
