	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_snoc_setup_resource
_ath10k_snoc_setup_resource:            ## @ath10k_snoc_setup_resource
	.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	%rdi, %rbx
	callq	_ath10k_snoc_priv
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ath10k_ce_priv
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rdi
	movq	_ath10k_snoc_rx_replenish_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	_CE_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movl	$4, %r14d
	xorl	%r12d, %r12d
	movq	_host_ce_config_wlan@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	%r12, %rax
	movq	%rax, (%r13,%r14,4)
	movl	%ebx, -16(%r13,%r14,4)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, -8(%r13,%r14,4)
	movq	(%rcx), %rdx
	addq	%r12, %rdx
	movl	%ebx, %esi
	callq	_ath10k_ce_alloc_pipe
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_host_ce_config_wlan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movl	(%rax,%r12), %eax
	movl	%eax, -12(%r13,%r14,4)
	incq	%rbx
	movq	_CE_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	addq	$6, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_snoc_init_napi
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ath10k_err
	movl	%r15d, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_snoc_rx_replenish_retry,4,2 ## @ath10k_snoc_rx_replenish_retry
	.comm	_CE_COUNT,4,2                   ## @CE_COUNT
	.comm	_host_ce_config_wlan,8,3        ## @host_ce_config_wlan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate copy engine pipe %d: %d\n"

	.no_dead_strip	_ath10k_snoc_setup_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_snoc_setup_resource
_ath10k_snoc_setup_resource:            ; @ath10k_snoc_setup_resource
	.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	x19, x0
	bl	_ath10k_snoc_priv
	mov	x20, x0
	mov	x0, x19
	bl	_ath10k_ce_priv
	mov	x21, x0
	add	x0, x20, #8
Lloh0:
	adrp	x8, _ath10k_snoc_rx_replenish_retry@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_snoc_rx_replenish_retry@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x21, #8
	bl	_spin_lock_init
Lloh3:
	adrp	x24, _CE_COUNT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CE_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x26, #0
	mov	x22, #0
Lloh5:
	adrp	x27, _host_ce_config_wlan@GOTPAGE
Lloh6:
	ldr	x27, [x27, _host_ce_config_wlan@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x9, x9, x26
	add	x28, x8, x25
	str	w22, [x28]
	stp	x19, x9, [x28, #8]
	ldr	x8, [x27]
	add	x2, x8, x26
	mov	x0, x19
	mov	x1, x22
	bl	_ath10k_ce_alloc_pipe
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	ldr	w8, [x8, x26]
	str	w8, [x28, #4]
	add	x22, x22, #1
	ldrsw	x8, [x24]
	add	x26, x26, #4
	add	x25, x25, #24
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_ath10k_snoc_init_napi
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	mov	x23, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x23
	bl	_ath10k_err
LBB0_6:
	mov	x0, x23
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_snoc_rx_replenish_retry,4,2 ; @ath10k_snoc_rx_replenish_retry
	.comm	_CE_COUNT,4,2                   ; @CE_COUNT
	.comm	_host_ce_config_wlan,8,3        ; @host_ce_config_wlan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate copy engine pipe %d: %d\n"

	.no_dead_strip	_ath10k_snoc_setup_resource
.subsections_via_symbols
