	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsicm_exit_ulps
_dsicm_exit_ulps:                       ## @dsicm_exit_ulps
	.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
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	(%rbx), %rax
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	*(%rax)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	__dsicm_enable_te
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_dsicm_panel_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_enable_irq
LBB0_5:
	movl	$0, (%r15)
LBB0_6:
	movq	%r15, %rdi
	callq	_dsicm_queue_ulps_work
	jmp	LBB0_10
LBB0_7:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_enable_irq
LBB0_9:
	movq	%r15, %rdi
	callq	_dsicm_queue_ulps_work
	movl	$0, (%r15)
LBB0_10:
	movl	%r14d, %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	"failed to re-enable TE"

L_.str.1:                               ## @.str.1
	.asciz	"failed to exit ULPS"

	.no_dead_strip	_dsicm_exit_ulps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsicm_exit_ulps
_dsicm_exit_ulps:                       ; @dsicm_exit_ulps
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x19, #24]
	mov	x0, x20
	mov	w2, #1
	blr	x8
	mov	x0, x19
	mov	w1, #1
	bl	__dsicm_enable_te
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_dsicm_panel_reset
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_gpiod_to_irq
	bl	_enable_irq
LBB0_5:
	str	wzr, [x19]
LBB0_6:
	mov	x0, x19
	bl	_dsicm_queue_ulps_work
	b	LBB0_11
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_gpiod_to_irq
	bl	_enable_irq
LBB0_10:
	mov	x0, x19
	bl	_dsicm_queue_ulps_work
	mov	w20, #0
	str	wzr, [x19]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to re-enable TE"

l_.str.1:                               ; @.str.1
	.asciz	"failed to exit ULPS"

	.no_dead_strip	_dsicm_exit_ulps
.subsections_via_symbols
