	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_register_rx_cb       ## -- Begin function mei_cldev_register_rx_cb
	.p2align	4, 0x90
_mei_cldev_register_rx_cb:              ## @mei_cldev_register_rx_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), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %r14
	movq	%rsi, 8(%rbx)
	leaq	4(%rbx), %rdi
	movq	_mei_cl_bus_rx_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_mei_cl_mtu
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mei_cl_read_start
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_mei_cl_bus_rx_work,4,2         ## @mei_cl_bus_rx_work
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_cldev_register_rx_cb       ; -- Begin function mei_cldev_register_rx_cb
	.p2align	2
_mei_cldev_register_rx_cb:              ; @mei_cldev_register_rx_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_6
; %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	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x20, [x19, #16]
	str	x1, [x19, #8]
	add	x0, x19, #4
Lloh4:
	adrp	x8, _mei_cl_bus_rx_work@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mei_cl_bus_rx_work@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	bl	_mutex_lock
	ldr	w19, [x19]
	mov	x0, x19
	bl	_mei_cl_mtu
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_mei_cl_read_start
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w19, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w19, w8
	b.ne	LBB0_5
LBB0_8:
	mov	w19, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_mei_cl_bus_rx_work,4,2         ; @mei_cl_bus_rx_work
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
