	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_read_start              ## -- Begin function mei_cl_read_start
	.p2align	4, 0x90
_mei_cl_read_start:                     ## @mei_cl_read_start
	.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
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	sete	%dil
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	16(%r15), %r14
	movq	%r15, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	12(%r15), %edi
	callq	_mei_me_cl_is_active
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	callq	_mei_cl_is_fixed_address
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.12:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_cl_err
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	_MEI_FOP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	callq	_mei_cl_enqueue_ctrl_wr_cb
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_pm_runtime_get
	testl	%eax, %eax
	jns	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_25
LBB0_17:
	movq	%r14, %rdi
	callq	_mei_hbuf_acquire
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mei_hbm_cl_flow_control_req
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:
	leaq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_list_move_tail
	jmp	LBB0_22
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	incq	(%r15)
LBB0_23:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cl_dbg
	movl	(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	testl	%ebx, %ebx
	jne	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_25:
	movl	(%r14), %edi
	callq	_pm_runtime_put_noidle
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_cl_err
LBB0_26:
	movq	%r12, %rdi
	callq	_mei_io_cb_free
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no such me client\n"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MEI_FOP_READ,4,2               ## @MEI_FOP_READ
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"rpm: get failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rpm: autosuspend\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_read_start              ; -- Begin function mei_cl_read_start
	.p2align	2
_mei_cl_read_start:                     ; @mei_cl_read_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_7
LBB0_3:
	ldr	x20, [x19, #16]
	mov	x0, x19
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #12]
	bl	_mei_me_cl_is_active
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_mei_cl_is_fixed_address
	cbz	x0, LBB0_11
; %bb.6:
	mov	w21, #0
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_10:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_err
Lloh4:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_13:
Lloh8:
	adrp	x8, _MEI_FOP_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEI_FOP_READ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_mei_cl_enqueue_ctrl_wr_cb
	cbz	x0, LBB0_19
; %bb.14:
	mov	x22, x0
	ldr	w0, [x20]
	bl	_pm_runtime_get
	tbz	w0, #31, LBB0_16
; %bb.15:
	mov	x21, x0
Lloh11:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_23
LBB0_16:
	mov	x0, x20
	bl	_mei_hbuf_acquire
	cbz	x0, LBB0_20
; %bb.17:
	mov	x0, x20
	mov	x1, x19
	bl	_mei_hbm_cl_flow_control_req
	mov	x21, x0
	tbnz	w0, #31, LBB0_22
; %bb.18:
	add	x1, x19, #8
	mov	x0, x22
	bl	_list_move_tail
	b	LBB0_21
LBB0_19:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_20:
	mov	w21, #0
LBB0_21:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_22:
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_dbg
	ldr	w0, [x20]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20]
	bl	_pm_runtime_put_autosuspend
	cbnz	w21, LBB0_24
	b	LBB0_9
LBB0_23:
	ldr	w0, [x20]
	bl	_pm_runtime_put_noidle
	str	x21, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_err
LBB0_24:
	mov	x0, x22
	bl	_mei_io_cb_free
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no such me client\n"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MEI_FOP_READ,4,2               ; @MEI_FOP_READ
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"rpm: get failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rpm: autosuspend\n"

.subsections_via_symbols
