	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_sw_reset
_dsi_sw_reset:                          ## @dsi_sw_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_REG_DSI_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSI_CLK_CTRL_ENABLE_CLKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dsi_write
	xorl	%eax, %eax
	callq	_wmb
	movq	_REG_DSI_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %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	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dsi_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
.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
_dsi_sw_reset:                          ; @dsi_sw_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_DSI_CLK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DSI_CLK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DSI_CLK_CTRL_ENABLE_CLKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_CLK_CTRL_ENABLE_CLKS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_dsi_write
	bl	_wmb
Lloh6:
	adrp	x20, _REG_DSI_RESET@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_DSI_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_dsi_write
Lloh8:
	adrp	x8, _DSI_RESET_TOGGLE_DELAY_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSI_RESET_TOGGLE_DELAY_MS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dsi_write
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
.subsections_via_symbols
