	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_setup_resource      ## -- Begin function ath10k_pci_setup_resource
	.p2align	4, 0x90
_ath10k_pci_setup_resource:             ## @ath10k_pci_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ath10k_pci_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ath10k_ce_priv
	movq	%rax, %rdi
	callq	_spin_lock_init
	leaq	12(%rbx), %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %rdi
	callq	_mutex_init
	leaq	4(%rbx), %rdi
	movq	_ath10k_pci_fw_dump_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_ath10k_pci_rx_replenish_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r14, %rdi
	callq	_QCA_REV_6174
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_QCA_REV_9377
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_ath10k_pci_override_ce_config
LBB0_3:
	movq	%r14, %rdi
	callq	_ath10k_pci_alloc_pipes
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_pci_fw_dump_work,4,2    ## @ath10k_pci_fw_dump_work
	.comm	_ath10k_pci_rx_replenish_retry,4,2 ## @ath10k_pci_rx_replenish_retry
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate copy engine pipes: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_setup_resource      ; -- Begin function ath10k_pci_setup_resource
	.p2align	2
_ath10k_pci_setup_resource:             ; @ath10k_pci_setup_resource
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ath10k_pci_priv
	mov	x20, x0
	mov	x0, x19
	bl	_ath10k_ce_priv
	bl	_spin_lock_init
	add	x0, x20, #12
	bl	_spin_lock_init
	add	x0, x20, #8
	bl	_mutex_init
	add	x0, x20, #4
Lloh0:
	adrp	x8, _ath10k_pci_fw_dump_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_pci_fw_dump_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh3:
	adrp	x8, _ath10k_pci_rx_replenish_retry@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ath10k_pci_rx_replenish_retry@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x19
	bl	_QCA_REV_6174
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_QCA_REV_9377
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ath10k_pci_override_ce_config
LBB0_3:
	mov	x0, x19
	bl	_ath10k_pci_alloc_pipes
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_pci_fw_dump_work,4,2    ; @ath10k_pci_fw_dump_work
	.comm	_ath10k_pci_rx_replenish_retry,4,2 ; @ath10k_pci_rx_replenish_retry
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate copy engine pipes: %d\n"

.subsections_via_symbols
