	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsicm_enter_ulps
_dsicm_enter_ulps:                      ## @dsicm_enter_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)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	callq	_dsicm_cancel_ulps_work
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__dsicm_enable_te
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_dsicm_panel_reset
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_dsicm_queue_ulps_work
	jmp	LBB0_6
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_gpiod_to_irq
	movl	%eax, %edi
	callq	_disable_irq
LBB0_4:
	movq	(%r15), %rax
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	*(%rax)
	movl	$1, (%rbx)
LBB0_6:
	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	"enter ULPS failed"

	.no_dead_strip	_dsicm_enter_ulps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsicm_enter_ulps
_dsicm_enter_ulps:                      ; @dsicm_enter_ulps
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
	bl	_dsicm_cancel_ulps_work
	mov	x0, x19
	mov	w1, #0
	bl	__dsicm_enable_te
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_dsicm_panel_reset
	str	wzr, [x19]
	mov	x0, x19
	bl	_dsicm_queue_ulps_work
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_gpiod_to_irq
	bl	_disable_irq
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w22, #1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	blr	x8
	mov	w21, #0
	str	w22, [x19]
LBB0_7:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter ULPS failed"

	.no_dead_strip	_dsicm_enter_ulps
.subsections_via_symbols
