	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ath10k_htt_rx_ring_fill_n
___ath10k_htt_rx_ring_fill_n:           ## @__ath10k_htt_rx_ring_fill_n
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_HTT_RX_RING_FILL_LEVEL@GOTPCREL(%rip), %rax
	movq	_HTT_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	xorl	%edi, %edi
	cmpl	%edx, (%rax)
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	___le32_to_cpu
	movl	%eax, %r12d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.1:
	incl	%ebx
	movq	_HTT_RX_DESC_ALIGN@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %r12d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	cmpl	$1, %ebx
	movq	_HTT_RX_DESC_ALIGN@GOTPCREL(%rip), %r14
	jle	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	_HTT_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rax), %rdi
	movq	(%r14), %rsi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdi
	movq	(%r14), %rsi
	callq	_PTR_ALIGN
	subq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_skb_pull
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r14
	xorl	%edi, %edi
	callq	___cpu_to_le32
	movq	%rax, (%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rax
	movl	(%rax), %r13d
	movq	(%r15), %r14
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	callq	_skb_tailroom
	addq	%rax, %r14
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dma_map_single
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_ATH10K_SKB_RXCB
	movl	%r13d, 4(%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %rax
	movslq	%r12d, %rdx
	movq	%r15, (%rax,%rdx,8)
	movq	%rbx, %rdi
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_htt_set_paddrs_ring
	incl	32(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %r14d
	movq	%r15, %rdi
	callq	_ATH10K_SKB_RXCB
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_hash_add
	jmp	LBB0_10
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	xorl	%eax, %eax
	callq	_mb
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTT_RX_RING_FILL_LEVEL,4,2     ## @HTT_RX_RING_FILL_LEVEL
	.comm	_HTT_RX_RING_SIZE,4,2           ## @HTT_RX_RING_SIZE
	.comm	_HTT_RX_BUF_SIZE,8,3            ## @HTT_RX_BUF_SIZE
	.comm	_HTT_RX_DESC_ALIGN,8,3          ## @HTT_RX_DESC_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	___ath10k_htt_rx_ring_fill_n
.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_ring_fill_n
___ath10k_htt_rx_ring_fill_n:           ; @__ath10k_htt_rx_ring_fill_n
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HTT_RX_RING_FILL_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTT_RX_RING_FILL_LEVEL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HTT_RX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HTT_RX_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	cset	w0, ge
	bl	_BUILD_BUG_ON
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	___le32_to_cpu
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	add	w24, w21, #1
Lloh6:
	adrp	x25, _HTT_RX_BUF_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HTT_RX_BUF_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _HTT_RX_DESC_ALIGN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HTT_RX_DESC_ALIGN@GOTPAGEOFF]
Lloh10:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, #1
	ldr	w9, [x19]
	and	w20, w9, w8
	sub	w24, w24, #1
	cmp	w24, #1
	b.le	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x26]
	bl	_IS_ALIGNED
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #8]
	ldr	x1, [x26]
	bl	_PTR_ALIGN
	ldr	x8, [x21, #8]
	sub	x1, x0, x8
	mov	x0, x21
	bl	_skb_pull
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x21, #8]
	mov	w0, #0
	bl	___cpu_to_le32
	str	x0, [x22]
	ldr	x8, [x19, #48]
	ldr	w22, [x8]
	ldp	x28, x23, [x21]
	mov	x0, x21
	bl	_skb_tailroom
	add	x2, x0, x28
	ldr	w3, [x27]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_map_single
	mov	x22, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ATH10K_SKB_RXCB
	str	w22, [x0, #4]
	ldr	x8, [x19, #40]
	str	x21, [x8, w20, sxtw #3]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ath10k_htt_set_paddrs_ring
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x19, #16]
	mov	x0, x21
	bl	_ATH10K_SKB_RXCB
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_hash_add
	b	LBB0_2
LBB0_9:
	mov	w21, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_dev_kfree_skb_any
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	bl	_mb
	mov	x0, x20
	bl	___cpu_to_le32
	ldr	x8, [x19, #8]
	str	x0, [x8]
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HTT_RX_RING_FILL_LEVEL,4,2     ; @HTT_RX_RING_FILL_LEVEL
	.comm	_HTT_RX_RING_SIZE,4,2           ; @HTT_RX_RING_SIZE
	.comm	_HTT_RX_BUF_SIZE,8,3            ; @HTT_RX_BUF_SIZE
	.comm	_HTT_RX_DESC_ALIGN,8,3          ; @HTT_RX_DESC_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	___ath10k_htt_rx_ring_fill_n
.subsections_via_symbols
