	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mei_cl_send                  ## -- Begin function __mei_cl_send
	.p2align	4, 0x90
___mei_cl_send:                         ## @__mei_cl_send
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	24(%rbx), %r13
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	_MEI_DEV_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.6:
	movq	%rbx, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movl	20(%rbx), %edi
	callq	_mei_me_cl_is_active
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_mei_cl_mtu
	cmpq	%r15, %rax
	jae	LBB0_11
## %bb.9:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_10:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	8(%r13), %rax
	jl	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	16(%rbx), %r12d
	movq	8(%rbx), %rcx
	movb	$1, %al
	movq	_MEI_WRITE_COMPLETE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	sete	%al
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%al, %esi
	movl	%r12d, %edi
	callq	_wait_event_interruptible
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r12d, %r12d
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_mei_cl_is_connected
	testl	%eax, %eax
	jne	LBB0_12
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%r12d, %r12d
LBB0_19:
	subl	(%rax), %r12d
LBB0_20:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_MEI_FOP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_mei_cl_alloc_cb
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	%rax, %r13
	movq	_MEI_CL_IO_TX_INTERNAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %eax
	setne	%cl
	movl	%ecx, (%r13)
	movq	_MEI_CL_IO_TX_BLOCKING@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %edx
	setne	%cl
	movl	%ecx, 4(%r13)
	movl	8(%r13), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mei_cl_write
	movl	%eax, %r12d
	jmp	LBB0_20
LBB0_24:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_20
## %bb.25:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MEI_DEV_ENABLED,8,3            ## @MEI_DEV_ENABLED
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_MEI_WRITE_COMPLETE,8,3         ## @MEI_WRITE_COMPLETE
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_MEI_FOP_WRITE,4,2              ## @MEI_FOP_WRITE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MEI_CL_IO_TX_INTERNAL,4,2      ## @MEI_CL_IO_TX_INTERNAL
	.comm	_MEI_CL_IO_TX_BLOCKING,4,2      ## @MEI_CL_IO_TX_BLOCKING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mei_cl_send                  ; -- Begin function __mei_cl_send
	.p2align	2
___mei_cl_send:                         ; @__mei_cl_send
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_20
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x25, [x20, #24]
	add	x19, x25, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x25]
Lloh3:
	adrp	x9, _MEI_DEV_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEI_DEV_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.5:
	mov	x0, x20
	bl	_mei_cl_is_connected
	cbz	w0, LBB0_17
; %bb.6:
	ldr	w0, [x20, #20]
	bl	_mei_me_cl_is_active
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_mei_cl_mtu
	cmp	x0, x21
	b.hs	LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _EFBIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
Lloh8:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
Lloh10:
	adrp	x26, _MEI_WRITE_COMPLETE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MEI_WRITE_COMPLETE@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25, #8]
	cmp	x8, x9
	b.lt	LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w24, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_mei_cl_is_connected
	cmp	w0, #0
	cset	w1, eq
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_wait_event_interruptible
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_lock
	cbnz	w24, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_mei_cl_is_connected
	cbnz	w0, LBB0_11
LBB0_17:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_20:
	mov	x0, x24
	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_21:
Lloh14:
	adrp	x8, _MEI_FOP_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEI_FOP_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	bl	_mei_cl_alloc_cb
	cbz	x0, LBB0_25
; %bb.22:
	mov	x24, x0
Lloh17:
	adrp	x8, _MEI_CL_IO_TX_INTERNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEI_CL_IO_TX_INTERNAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w8, ne
Lloh20:
	adrp	x9, _MEI_CL_IO_TX_BLOCKING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MEI_CL_IO_TX_BLOCKING@GOTPAGEOFF]
	str	w8, [x0]
Lloh22:
	ldr	w8, [x9]
	tst	w8, w23
	cset	w8, ne
	str	w8, [x0, #4]
	ldr	w0, [x0, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	mov	x0, x20
	mov	x1, x24
	bl	_mei_cl_write
	mov	x24, x0
	b	LBB0_19
LBB0_23:
Lloh23:
	adrp	x8, _current@GOTPAGE
Lloh24:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_19
; %bb.24:
Lloh26:
	adrp	x8, _EINTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_18
LBB0_25:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MEI_DEV_ENABLED,8,3            ; @MEI_DEV_ENABLED
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_MEI_WRITE_COMPLETE,8,3         ; @MEI_WRITE_COMPLETE
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_MEI_FOP_WRITE,4,2              ; @MEI_FOP_WRITE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MEI_CL_IO_TX_INTERNAL,4,2      ; @MEI_CL_IO_TX_INTERNAL
	.comm	_MEI_CL_IO_TX_BLOCKING,4,2      ; @MEI_CL_IO_TX_BLOCKING
.subsections_via_symbols
