	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acx565akm_set_sleep_mode
_acx565akm_set_sleep_mode:              ## @acx565akm_set_sleep_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_MIPI_DCS_ENTER_SLEEP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MIPI_DCS_EXIT_SLEEP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rdi), %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.1:
	cmpq	8(%r12), %rbx
	ja	LBB0_3
## %bb.2:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_schedule_timeout
LBB0_3:
	testl	%r15d, %r15d
	cmovel	%r13d, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_acx565akm_cmd
	movl	$120, %edi
	callq	_msecs_to_jiffies
	movq	%rax, 8(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ## @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ## @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_acx565akm_set_sleep_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acx565akm_set_sleep_mode
_acx565akm_set_sleep_mode:              ; @acx565akm_set_sleep_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	x8, [x0]
Lloh6:
	adrp	x22, _jiffies@GOTPAGE
Lloh7:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x9, [x22]
	sub	x21, x8, x9
	cmp	x21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.hi	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x21
	bl	_schedule_timeout
LBB0_3:
	cmp	w20, #0
	csel	w1, w24, w23, eq
	mov	x0, x19
	bl	_acx565akm_cmd
	mov	w0, #120
	bl	_msecs_to_jiffies
	ldr	x8, [x22]
	add	x8, x8, x0
	stp	x8, x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ; @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ; @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_acx565akm_set_sleep_mode
.subsections_via_symbols
