	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_power_off         ## -- Begin function msm_dsi_host_power_off
	.p2align	4, 0x90
_msm_dsi_host_power_off:                ## @msm_dsi_host_power_off
	.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
	callq	_to_msm_dsi_host
	movq	%rax, %rbx
	movq	24(%rax), %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_dsi_ctrl_config
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	callq	_gpiod_set_value
LBB0_4:
	movq	8(%rbx), %rdi
	callq	_pinctrl_pm_select_sleep_state
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	8(%rbx), %rdi
	callq	_pm_runtime_put_autosuspend
	movq	%rbx, %rdi
	callq	_dsi_host_regulator_disable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_msm_dsi_sfpb_config
	leaq	L_.str.1(%rip), %rdi
	callq	_DBG
	movl	$0, (%rbx)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DBG
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi host already off"

L_.str.1:                               ## @.str.1
	.asciz	"-"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_power_off         ; -- Begin function msm_dsi_host_power_off
	.p2align	2
_msm_dsi_host_power_off:                ; @msm_dsi_host_power_off
	.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
	bl	_to_msm_dsi_host
	mov	x20, x0
	ldr	x21, [x0, #24]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_dsi_ctrl_config
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_3
; %bb.2:
	mov	w1, #0
	bl	_gpiod_set_value
LBB0_3:
	ldr	x0, [x20, #8]
	bl	_pinctrl_pm_select_sleep_state
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	x0, [x20, #8]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x20
	bl	_dsi_host_regulator_disable
	mov	x0, x20
	mov	w1, #0
	bl	_msm_dsi_sfpb_config
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	str	wzr, [x20]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi host already off"

l_.str.1:                               ; @.str.1
	.asciz	"-"

.subsections_via_symbols
