	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_notify_get              ## -- Begin function mei_cl_notify_get
	.p2align	4, 0x90
_mei_cl_notify_get:                     ## @mei_cl_notify_get
	.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, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	$0, (%rdx)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 8(%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_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r13), %r12
	cmpl	$0, 4(%r12)
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_10
LBB0_14:
	movl	%eax, (%r14)
	movl	$0, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cl_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_wait_event_interruptible
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_lock
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.13:
	movl	(%r13), %eax
	jmp	LBB0_14
LBB0_11:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.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	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cl_notify_get              ; -- Begin function mei_cl_notify_get
	.p2align	2
_mei_cl_notify_get:                     ; @mei_cl_notify_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [x2]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	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	x22, [x19, #8]
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
LBB0_6:
	mov	w21, #0
	str	w8, [x20]
	str	wzr, [x19]
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	bl	_cl_dbg
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	cbz	w21, LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_mutex_unlock
	ldp	w1, w0, [x19]
	bl	_wait_event_interruptible
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_lock
	tbnz	w21, #31, LBB0_9
; %bb.13:
	ldr	w8, [x19]
	b	LBB0_6
LBB0_14:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
