	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sbefifo_submit
___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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	16(%rdi), %rbx
	cmpq	$2, %rdx
	jb	LBB0_5
## %bb.4:
	movq	%rcx, %r15
	movl	(%r12), %edi
	callq	_be32_to_cpu
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_sbefifo_cleanup_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_sbefifo_collect_async_ffdc
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_sbefifo_do_command
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_sbefifo_request_reset
	jmp	LBB0_13
LBB0_5:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_dev_vdbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid command len %zd (header: %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.no_dead_strip	___sbefifo_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sbefifo_submit
___sbefifo_submit:                      ; @__sbefifo_submit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #16]
	cmp	x2, #2
	b.lo	LBB0_10
; %bb.3:
	mov	x21, x3
	ldr	w0, [x22]
	bl	_be32_to_cpu
	cmp	x0, x19
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_sbefifo_cleanup_hw
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_sbefifo_collect_async_ffdc
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_sbefifo_do_command
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh2:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x20
	bl	_sbefifo_request_reset
	b	LBB0_12
LBB0_10:
	ldr	w0, [x22]
	bl	_be32_to_cpu
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_dev_vdbg
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid command len %zd (header: %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.no_dead_strip	___sbefifo_submit
.subsections_via_symbols
