	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_ce_alloc_pipe           ## -- Begin function ath10k_ce_alloc_pipe
	.p2align	4, 0x90
_ath10k_ce_alloc_pipe:                  ## @ath10k_ce_alloc_pipe
	.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
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_ath10k_ce_priv
	movq	(%rax), %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r12
	movq	%r12, %rbx
	shlq	$6, %rbx
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	callq	_ath10k_ce_set_ops
	movq	_TARGET_NUM_MSDU_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movq	_CE_HTT_H2T_MSG_SRC_NENTRIES@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	_TARGET_10_4_NUM_MSDU_DESC_PFC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	xorl	%edi, %edi
	movq	_CE_HTT_H2T_MSG_SRC_NENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	_TARGET_TLV_NUM_MSDU_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	xorl	%edi, %edi
	movq	_CE_HTT_H2T_MSG_SRC_NENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	%r15, 56(%r14,%rbx)
	movl	%r12d, (%r14,%rbx)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ath10k_ce_base_address
	movl	%eax, 48(%r14,%rbx)
	movl	28(%r13), %eax
	movl	%eax, 44(%r14,%rbx)
	movl	24(%r13), %eax
	movl	%eax, 40(%r14,%rbx)
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	20(%r13), %eax
	movl	%eax, 36(%r14,%rbx)
LBB0_2:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%r13), %edx
	movl	%edx, 32(%r14,%rbx)
LBB0_4:
	testq	%rcx, %rcx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	movq	16(%r14,%rbx), %rax
	movq	%r15, %rdi
	movl	%ecx, %r12d
	movl	%ecx, %esi
	movq	%r13, %rdx
	callq	*8(%rax)
	movq	%rax, 24(%r14,%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	addq	%r14, %rbx
	addq	$24, %rbx
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%r12d, %edx
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_10
LBB0_6:
	movq	(%r13), %rax
	movl	%r12d, %ecx
LBB0_7:
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	16(%r14,%rbx), %rax
	movq	%r15, %rdi
	movl	%ecx, %esi
	movq	%r13, %rdx
	callq	*(%rax)
	movq	%rax, 8(%r14,%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	addq	%r14, %rbx
	addq	$8, %rbx
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_10:
	movl	%eax, %ecx
	callq	_ath10k_err
	movq	$0, (%rbx)
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_NUM_MSDU_DESC,4,2       ## @TARGET_NUM_MSDU_DESC
	.comm	_CE_HTT_H2T_MSG_SRC_NENTRIES,4,2 ## @CE_HTT_H2T_MSG_SRC_NENTRIES
	.comm	_TARGET_10_4_NUM_MSDU_DESC_PFC,4,2 ## @TARGET_10_4_NUM_MSDU_DESC_PFC
	.comm	_TARGET_TLV_NUM_MSDU_DESC,4,2   ## @TARGET_TLV_NUM_MSDU_DESC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc CE src ring %d: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to alloc CE dest ring %d: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_ce_alloc_pipe           ; -- Begin function ath10k_ce_alloc_pipe
	.p2align	2
_ath10k_ce_alloc_pipe:                  ; @ath10k_ce_alloc_pipe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_ath10k_ce_priv
	ldr	x23, [x0]
	sxtw	x24, w19
	add	x22, x23, x24, lsl #6
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_ce_set_ops
Lloh0:
	adrp	x8, _TARGET_NUM_MSDU_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_NUM_MSDU_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _CE_HTT_H2T_MSG_SRC_NENTRIES@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CE_HTT_H2T_MSG_SRC_NENTRIES@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, w8, lsl #1
	cset	w0, le
	bl	_BUILD_BUG_ON
Lloh5:
	adrp	x8, _TARGET_10_4_NUM_MSDU_DESC_PFC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TARGET_10_4_NUM_MSDU_DESC_PFC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x25]
	cmp	w9, w8, lsl #1
	cset	w0, le
	bl	_BUILD_BUG_ON
Lloh8:
	adrp	x8, _TARGET_TLV_NUM_MSDU_DESC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TARGET_TLV_NUM_MSDU_DESC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x25]
	cmp	w9, w8, lsl #1
	cset	w0, le
	bl	_BUILD_BUG_ON
	str	x20, [x22, #56]
	str	w19, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_ath10k_ce_base_address
	str	w0, [x22, #48]
	ldr	d0, [x21, #24]
	str	d0, [x22, #40]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x21, #20]
	str	w8, [x22, #36]
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w10, [x21, #16]
	add	x11, x23, x24, lsl #6
	str	w10, [x11, #32]
LBB0_4:
	cbz	x9, LBB0_8
; %bb.5:
	add	x22, x23, x24, lsl #6
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	str	x0, [x22, #24]!
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x22]
	bl	_PTR_ERR
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	ldr	x8, [x21]
LBB0_8:
	cbz	x8, LBB0_12
; %bb.9:
	add	x22, x23, x24, lsl #6
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	str	x0, [x22, #8]!
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x22]
	bl	_PTR_ERR
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_ath10k_err
	str	xzr, [x22]
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_NUM_MSDU_DESC,4,2       ; @TARGET_NUM_MSDU_DESC
	.comm	_CE_HTT_H2T_MSG_SRC_NENTRIES,4,2 ; @CE_HTT_H2T_MSG_SRC_NENTRIES
	.comm	_TARGET_10_4_NUM_MSDU_DESC_PFC,4,2 ; @TARGET_10_4_NUM_MSDU_DESC_PFC
	.comm	_TARGET_TLV_NUM_MSDU_DESC,4,2   ; @TARGET_TLV_NUM_MSDU_DESC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc CE src ring %d: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to alloc CE dest ring %d: %d\n"

.subsections_via_symbols
