	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f01_resume
_rmi_f01_resume:                        ## @rmi_f01_resume
	.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, %r14
	callq	_dev_get_drvdata
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	_RMI_F01_CTRL0_NOSLEEP_BIT@GOTPCREL(%rip), %rdx
	movl	(%rax), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_3
LBB0_1:
	movl	(%rax), %ecx
LBB0_3:
	movq	_RMI_F01_CTRL0_SLEEP_MODE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_RMI_SLEEP_MODE_NORMAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_rmi_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_F01_CTRL0_NOSLEEP_BIT,4,2  ## @RMI_F01_CTRL0_NOSLEEP_BIT
	.comm	_RMI_F01_CTRL0_SLEEP_MODE_MASK,4,2 ## @RMI_F01_CTRL0_SLEEP_MODE_MASK
	.comm	_RMI_SLEEP_MODE_NORMAL,4,2      ## @RMI_SLEEP_MODE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to restore normal operation: %d.\n"

	.no_dead_strip	_rmi_f01_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f01_resume
_rmi_f01_resume:                        ; @rmi_f01_resume
	.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
	bl	_dev_get_drvdata
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RMI_F01_CTRL0_NOSLEEP_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_F01_CTRL0_NOSLEEP_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x0]
LBB0_3:
Lloh3:
	adrp	x9, _RMI_F01_CTRL0_SLEEP_MODE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RMI_F01_CTRL0_SLEEP_MODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh6:
	adrp	x9, _RMI_SLEEP_MODE_NORMAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RMI_SLEEP_MODE_NORMAL@GOTPAGEOFF]
	str	w8, [x0]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [x0]
	ldp	w1, w0, [x19, #4]
	bl	_rmi_write
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_F01_CTRL0_NOSLEEP_BIT,4,2  ; @RMI_F01_CTRL0_NOSLEEP_BIT
	.comm	_RMI_F01_CTRL0_SLEEP_MODE_MASK,4,2 ; @RMI_F01_CTRL0_SLEEP_MODE_MASK
	.comm	_RMI_SLEEP_MODE_NORMAL,4,2      ; @RMI_SLEEP_MODE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to restore normal operation: %d.\n"

	.no_dead_strip	_rmi_f01_resume
.subsections_via_symbols
