	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbefifo_submit                 ## -- Begin function sbefifo_submit
	.p2align	4, 0x90
_sbefifo_submit:                        ## @sbefifo_submit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_SBEFIFO_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%r13, %r13
	je	LBB0_8
## %bb.6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	testq	%r14, %r14
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	shlq	$2, %rax
	movq	%r13, -64(%rbp)
	movq	%rax, -72(%rbp)
	movq	%rax, %r8
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movl	$1, %ecx
	callq	_iov_iter_kvec
	movq	%rbx, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	leaq	-48(%rbp), %r15
	movq	%r15, %rcx
	callq	___sbefifo_submit
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_iov_iter_count
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	shrq	$2, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SBEFIFO_MAGIC,8,3              ## @SBEFIFO_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WRITE,4,2                      ## @WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbefifo_submit                 ; -- Begin function sbefifo_submit
	.p2align	2
_sbefifo_submit:                        ; @sbefifo_submit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SBEFIFO_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SBEFIFO_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	cbz	x23, LBB0_10
; %bb.7:
	cbz	x21, LBB0_10
; %bb.8:
	cbz	x19, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	lsl	x24, x8, #2
	stp	x24, x23, [sp, #8]
Lloh5:
	adrp	x8, _WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #24
	add	x2, sp, #8
	mov	w3, #1
	mov	x4, x24
	bl	_iov_iter_kvec
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	___sbefifo_submit
	mov	x20, x0
	mov	x0, x23
	bl	_mutex_unlock
	add	x0, sp, #24
	bl	_iov_iter_count
	sub	x8, x24, x0
	lsr	x8, x8, #2
	str	x8, [x19]
	b	LBB0_5
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SBEFIFO_MAGIC,8,3              ; @SBEFIFO_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WRITE,4,2                      ; @WRITE
.subsections_via_symbols
