	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function submit_qentry
_submit_qentry:                         ## @submit_qentry
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_Q_WP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_fs
	movq	_Q_FULL@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_FS_DEBUG_TXQ@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fs_dprintk
	xorl	%eax, %eax
	callq	_schedule
	movl	(%rbx), %edi
	callq	_Q_WP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_fs
	testl	%eax, (%r13)
	jne	LBB0_2
## %bb.3:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_4:
	andl	$-16, %eax
	movl	%eax, %edi
	callq	_bus_to_virt
	cmpq	%r15, %rax
	je	LBB0_6
## %bb.5:
	movq	_FS_DEBUG_TXQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fs_dprintk
LBB0_6:
	movl	(%rbx), %edi
	callq	_Q_WP
	movq	_Q_INCWRAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_write_fs
	movl	_submit_qentry.c(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _submit_qentry.c(%rip)
	imull	$-1030792151, %eax, %eax        ## imm = 0xC28F5C29
	addl	$85899344, %eax                 ## imm = 0x51EB850
	rorl	$2, %eax
	cmpl	$42949672, %eax                 ## imm = 0x28F5C28
	jbe	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %edi
	callq	_Q_RP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_fs
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_Q_WP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_fs
	movq	_FS_DEBUG_TXQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %edx
	movl	%eax, %r9d
	subl	%r15d, %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %r8d
	movl	%r15d, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fs_dprintk                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_FULL,4,2                     ## @Q_FULL
	.comm	_FS_DEBUG_TXQ,4,2               ## @FS_DEBUG_TXQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found queue at %x full. Waiting.\n"

L_.str.1:                               ## @.str.1
	.asciz	"q mismatch! %p %p\n"

	.comm	_Q_INCWRAP,4,2                  ## @Q_INCWRAP
.zerofill __DATA,__bss,_submit_qentry.c,4,2 ## @submit_qentry.c
L_.str.2:                               ## @.str.2
	.asciz	"q at %d: %x-%x: %x entries.\n"

	.no_dead_strip	_submit_qentry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function submit_qentry
_submit_qentry:                         ; @submit_qentry
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	bl	_Q_WP
	mov	x1, x0
	mov	x0, x20
	bl	_read_fs
Lloh0:
	adrp	x24, _Q_FULL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Q_FULL@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x23, _FS_DEBUG_TXQ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FS_DEBUG_TXQ@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w2, [x19]
	mov	x1, x22
	bl	_fs_dprintk
	bl	_schedule
	ldr	w0, [x19]
	bl	_Q_WP
	mov	x1, x0
	mov	x0, x20
	bl	_read_fs
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_3:
	and	w0, w0, #0xfffffff0
	bl	_bus_to_virt
	cmp	x0, x21
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	mov	x2, x21
	bl	_fs_dprintk
LBB0_5:
	ldr	w0, [x19]
	bl	_Q_WP
	mov	x1, x0
Lloh8:
	adrp	x8, _Q_INCWRAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Q_INCWRAP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_write_fs
	adrp	x8, _submit_qentry.c@PAGE
	ldr	w9, [x8, _submit_qentry.c@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _submit_qentry.c@PAGEOFF]
	mov	w8, #23593
	movk	w8, #49807, lsl #16
	mov	w10, #47184
	movk	w10, #1310, lsl #16
	madd	w8, w9, w8, w10
	ror	w8, w8, #2
	mov	w9, #23592
	movk	w9, #655, lsl #16
	cmp	w8, w9
	b.hi	LBB0_7
; %bb.6:
	ldr	w0, [x19]
	bl	_Q_RP
	mov	x1, x0
	mov	x0, x20
	bl	_read_fs
	mov	x21, x0
	ldr	w0, [x19]
	bl	_Q_WP
	mov	x1, x0
	mov	x0, x20
	bl	_read_fs
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x23]
	ldr	w2, [x19]
	sub	w9, w0, w21
	stp	x0, x9, [sp, #8]
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_fs_dprintk
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_FULL,4,2                     ; @Q_FULL
	.comm	_FS_DEBUG_TXQ,4,2               ; @FS_DEBUG_TXQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found queue at %x full. Waiting.\n"

l_.str.1:                               ; @.str.1
	.asciz	"q mismatch! %p %p\n"

	.comm	_Q_INCWRAP,4,2                  ; @Q_INCWRAP
.zerofill __DATA,__bss,_submit_qentry.c,4,2 ; @submit_qentry.c
l_.str.2:                               ; @.str.2
	.asciz	"q at %d: %x-%x: %x entries.\n"

	.no_dead_strip	_submit_qentry
.subsections_via_symbols
