	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ath10k_ce_completed_send_next_nolock_64
__ath10k_ce_completed_send_next_nolock_64: ## @_ath10k_ce_completed_send_next_nolock_64
	.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	%rsi, %r15
	movq	16(%rdi), %r14
	movl	8(%rdi), %r12d
	movq	(%rdi), %rbx
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %r13d
	movl	8(%r14), %eax
	cmpl	%r13d, %eax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ath10k_ce_src_ring_read_index_get
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 8(%r14)
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ath10k_ce_src_ring_read_index_get
LBB0_7:
	cmpl	%r13d, %eax
	jne	LBB0_9
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, (%r15)
LBB0_11:
	movq	16(%r14), %rax
	movq	$0, (%rax,%r13,8)
	movl	12(%r14), %edi
	movl	%r13d, %esi
	callq	_CE_SRC_RING_TO_DESC_64
	movq	$0, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_CE_RING_IDX_INCR
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	__ath10k_ce_completed_send_next_nolock_64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ath10k_ce_completed_send_next_nolock_64
__ath10k_ce_completed_send_next_nolock_64: ; @_ath10k_ce_completed_send_next_nolock_64
	.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
	mov	x21, x1
	ldr	x24, [x0, #16]
	ldr	w22, [x0, #8]
	ldr	x23, [x0]
	ldp	w20, w19, [x24]
	ldr	w0, [x24, #8]
	cmp	w0, w19
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_ath10k_ce_src_ring_read_index_get
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	and	w0, w0, w20
	str	w0, [x24, #8]
LBB0_3:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	bl	_ath10k_ce_src_ring_read_index_get
LBB0_5:
	cmp	w0, w19
	b.ne	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	ldr	x8, [x24, #16]
	ldr	x8, [x8, x19, lsl #3]
	str	x8, [x21]
LBB0_9:
	ldr	x8, [x24, #16]
	str	xzr, [x8, x19, lsl #3]
	ldr	w0, [x24, #12]
	mov	x1, x19
	bl	_CE_SRC_RING_TO_DESC_64
	str	xzr, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_CE_RING_IDX_INCR
	mov	x8, x0
	mov	w0, #0
	str	w8, [x24, #4]
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	__ath10k_ce_completed_send_next_nolock_64
.subsections_via_symbols
