	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_notify_request          ## -- Begin function mei_cl_notify_request
	.p2align	4, 0x90
_mei_cl_notify_request:                 ## @mei_cl_notify_request
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%r13), %r14
	cmpl	$0, 12(%r14)
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	(%r14), %edi
	callq	_pm_runtime_get
	testl	%eax, %eax
	jns	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_11
LBB0_12:
	movl	%r15d, %edi
	callq	_mei_cl_notify_req2fop
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_mei_cl_enqueue_ctrl_wr_cb
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_mei_hbuf_acquire
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_mei_hbm_cl_notify_req
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_cl_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_11:
	movl	(%r14), %edi
	callq	_pm_runtime_put_noidle
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_cl_err
	jmp	LBB0_25
LBB0_17:
	leaq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_move_tail
LBB0_18:
	leaq	4(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_unlock
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %ebx
	cmpl	%r15d, 4(%r13)
	je	LBB0_21
## %bb.19:
	cmpl	$0, (%r13)
	jne	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_mei_cl_is_connected
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_21:
	movq	_MEI_CL_CONNECT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mei_secs_to_jiffies
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	movl	(%r13), %ebx
	cmpl	%r15d, 4(%r13)
	je	LBB0_24
## %bb.22:
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.23:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	%ebx, (%r13)
LBB0_24:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_cl_dbg
	movl	(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	movq	%r12, %rdi
	callq	_mei_io_cb_free
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"notifications not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"rpm: get failed %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MEI_CL_CONNECT_TIMEOUT,4,2     ## @MEI_CL_CONNECT_TIMEOUT
	.comm	_EFAULT,4,2                     ## @EFAULT
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_notify_request          ; -- Begin function mei_cl_notify_request
	.p2align	2
_mei_cl_notify_request:                 ; @mei_cl_notify_request
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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_11
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_11
LBB0_3:
	ldr	x20, [x19, #16]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_14
; %bb.4:
	mov	x0, x19
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_11
; %bb.5:
	ldr	w0, [x20]
	bl	_pm_runtime_get
	tbz	w0, #31, LBB0_7
; %bb.6:
	mov	x23, x0
Lloh0:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_7:
	mov	x0, x21
	bl	_mei_cl_notify_req2fop
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	bl	_mei_cl_enqueue_ctrl_wr_cb
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_mei_hbuf_acquire
	cbz	x0, LBB0_19
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mei_hbm_cl_notify_req
	cbz	x0, LBB0_18
; %bb.10:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_cl_dbg
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_17:
	ldr	w0, [x20]
	bl	_pm_runtime_put_noidle
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	bl	_cl_err
	b	LBB0_13
LBB0_18:
	add	x1, x20, #8
	mov	x0, x22
	bl	_list_move_tail
LBB0_19:
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_unlock
	ldp	w8, w24, [x19, #4]
	cmp	w8, w21
	b.eq	LBB0_21
; %bb.20:
	ldr	w8, [x19]
	cbz	w8, LBB0_22
LBB0_21:
	mov	w25, #1
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	bl	_mei_cl_is_connected
	cmp	w0, #0
	cset	w25, eq
LBB0_23:
Lloh15:
	adrp	x8, _MEI_CL_CONNECT_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MEI_CL_CONNECT_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_mei_secs_to_jiffies
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_wait_event_timeout
	mov	x0, x23
	bl	_mutex_lock
	ldp	w23, w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_26
; %bb.24:
	cbnz	w23, LBB0_26
; %bb.25:
Lloh18:
	adrp	x8, _EFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
	str	w23, [x19]
LBB0_26:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	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
	mov	x0, x22
	bl	_mei_io_cb_free
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"notifications not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"rpm: get failed %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MEI_CL_CONNECT_TIMEOUT,4,2     ; @MEI_CL_CONNECT_TIMEOUT
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"rpm: autosuspend\n"

.subsections_via_symbols
