	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f54_request_report
_rmi_f54_request_report:                ## @rmi_f54_request_report
	.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, %r14d
	movq	%rdi, %r12
	addq	$16, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%r12), %r13
	cmpl	%r14d, 28(%rax)
	je	LBB0_3
## %bb.1:
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rmi_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	%r14d, 28(%rbx)
LBB0_3:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %esi
	movq	_F54_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_rmi_write
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	leaq	24(%rbx), %rdi
	callq	_init_completion
	movl	$1, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%r12, %rax
	movq	%rax, 16(%rbx)
	movl	12(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F54_GET_REPORT,4,2             ## @F54_GET_REPORT
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_rmi_f54_request_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f54_request_report
_rmi_f54_request_report:                ; @rmi_f54_request_report
	.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	x21, x0
	add	x0, x0, #16
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x23, [x21, #8]
	ldr	w8, [x0, #28]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x20
	bl	_rmi_write
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	str	w20, [x19, #28]
LBB0_3:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [x21]
Lloh0:
	adrp	x8, _F54_GET_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F54_GET_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_rmi_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_5
; %bb.4:
	add	x0, x19, #24
	bl	_init_completion
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x8, x0, x21
	str	x8, [x19, #16]
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	mov	w2, #0
	bl	_queue_delayed_work
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_F54_GET_REPORT,4,2             ; @F54_GET_REPORT
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_rmi_f54_request_report
.subsections_via_symbols
