	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath10k_ce_rx_post_buf
___ath10k_ce_rx_post_buf:               ## @__ath10k_ce_rx_post_buf
	.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
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_ath10k_ce_priv
	movq	%rax, %r13
	movq	8(%r12), %r15
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %ebx
	movl	8(%r15), %r14d
	movq	24(%r15), %rdi
	movl	%ebx, %esi
	callq	_CE_DEST_RING_TO_DESC
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_lockdep_assert_held
	cmpl	$5, (%r12)
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_3
## %bb.1:
	decl	%r14d
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_CE_RING_DELTA
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_le32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
	movq	16(%r15), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%rbx,8)
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_CE_RING_IDX_INCR
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_ath10k_ce_dest_ring_write_index_set
	movl	%ebx, 4(%r15)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	___ath10k_ce_rx_post_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ath10k_ce_rx_post_buf
___ath10k_ce_rx_post_buf:               ; @__ath10k_ce_rx_post_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x26, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_ath10k_ce_priv
	mov	x27, x0
	ldr	x28, [x26, #8]
	ldp	w21, w23, [x28]
	ldr	w20, [x28, #8]
	ldr	x0, [x28, #24]
	mov	x1, x23
	bl	_CE_DEST_RING_TO_DESC
	mov	x25, x0
	ldr	w24, [x26, #4]
	mov	x0, x27
	bl	_lockdep_assert_held
	ldr	w8, [x26]
	cmp	w8, #5
	b.eq	LBB0_2
; %bb.1:
	sub	w2, w20, #1
	mov	x0, x21
	mov	x1, x23
	bl	_CE_RING_DELTA
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x22
	bl	___cpu_to_le32
	str	w0, [x25, #8]
	str	xzr, [x25]
	ldr	x8, [x28, #16]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x9, [x8, x23, lsl #3]
	mov	x0, x21
	mov	x1, x23
	bl	_CE_RING_IDX_INCR
	mov	x20, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_ath10k_ce_dest_ring_write_index_set
	mov	w0, #0
	str	w20, [x28, #4]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	___ath10k_ce_rx_post_buf
.subsections_via_symbols
