	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htt_rx_msdu_buff_replenish
_ath10k_htt_rx_msdu_buff_replenish:     ## @ath10k_htt_rx_msdu_buff_replenish
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	(%r15), %ebx
	subl	4(%r15), %ebx
	movq	_ATH10K_HTT_MAX_NUM_REFILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ath10k_htt_rx_ring_fill_n
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_HTT_RX_RING_REFILL_RETRY_MS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	cmpl	%r12d, %ebx
	jle	LBB0_5
## %bb.3:
	movq	_HTT_RX_RING_REFILL_RESCHED_MS@GOTPCREL(%rip), %rax
LBB0_4:
	addq	$12, %r15
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTT_MAX_NUM_REFILL,4,2  ## @ATH10K_HTT_MAX_NUM_REFILL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HTT_RX_RING_REFILL_RETRY_MS,4,2 ## @HTT_RX_RING_REFILL_RETRY_MS
	.comm	_HTT_RX_RING_REFILL_RESCHED_MS,4,2 ## @HTT_RX_RING_REFILL_RESCHED_MS
	.no_dead_strip	_ath10k_htt_rx_msdu_buff_replenish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htt_rx_msdu_buff_replenish
_ath10k_htt_rx_msdu_buff_replenish:     ; @ath10k_htt_rx_msdu_buff_replenish
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_bh
	ldp	w8, w9, [x20]
	sub	w21, w8, w9
Lloh0:
	adrp	x8, _ATH10K_HTT_MAX_NUM_REFILL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTT_MAX_NUM_REFILL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_min
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_htt_rx_ring_fill_n
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HTT_RX_RING_REFILL_RETRY_MS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HTT_RX_RING_REFILL_RETRY_MS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w21, w22
	b.le	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _HTT_RX_RING_REFILL_RESCHED_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTT_RX_RING_REFILL_RESCHED_MS@GOTPAGEOFF]
LBB0_4:
	add	x20, x20, #12
Lloh10:
	adrp	x9, _jiffies@GOTPAGE
Lloh11:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x9]
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x20
	bl	_mod_timer
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTT_MAX_NUM_REFILL,4,2  ; @ATH10K_HTT_MAX_NUM_REFILL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HTT_RX_RING_REFILL_RETRY_MS,4,2 ; @HTT_RX_RING_REFILL_RETRY_MS
	.comm	_HTT_RX_RING_REFILL_RESCHED_MS,4,2 ; @HTT_RX_RING_REFILL_RESCHED_MS
	.no_dead_strip	_ath10k_htt_rx_msdu_buff_replenish
.subsections_via_symbols
