	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_register_notif_cb    ## -- Begin function mei_cldev_register_notif_cb
	.p2align	4, 0x90
_mei_cldev_register_notif_cb:           ## @mei_cldev_register_notif_cb
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_EALREADY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	16(%rbx), %r14
	movq	%rsi, 8(%rbx)
	leaq	4(%rbx), %rdi
	movq	_mei_cl_bus_notif_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_mei_cl_notify_request
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_mei_cl_bus_notif_work,4,2      ## @mei_cl_bus_notif_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_register_notif_cb    ; -- Begin function mei_cldev_register_notif_cb
	.p2align	2
_mei_cldev_register_notif_cb:           ; @mei_cldev_register_notif_cb
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _EALREADY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	x20, [x19, #16]
	str	x1, [x19, #8]
	add	x0, x19, #4
Lloh4:
	adrp	x8, _mei_cl_bus_notif_work@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mei_cl_bus_notif_work@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x19]
	mov	x1, #0
	mov	w2, #1
	bl	_mei_cl_notify_request
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_mei_cl_bus_notif_work,4,2      ; @mei_cl_bus_notif_work
.subsections_via_symbols
