	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_pcie_pearl_probe
_qtnf_pcie_pearl_probe:                 ## @qtnf_pcie_pearl_probe
	.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, %r15d
	movq	%rdi, %r14
	callq	_get_bus_priv
	movq	%rax, %rbx
	movq	32(%rax), %r13
	movq	_qtnf_pcie_pearl_bus_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	leaq	44(%rbx), %rdi
	callq	_spin_lock_init
	leaq	8(%r14), %rdi
	movq	_qtnf_pearl_fw_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	24(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	16(%rbx), %rsi
	movq	%rsi, (%rbx)
	movl	12(%rbx), %edi
	addq	$8, %rsi
	callq	_writel
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_qtnf_pcie_pearl_init_xfer
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_qtnf_init_hdp_irqs
	movq	%rbx, %rdi
	callq	_qtnf_disable_hdp_irqs
	leaq	4(%r13), %rdi
	movl	(%r13), %esi
	movq	_qtnf_pcie_pearl_interrupt@GOTPCREL(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_qtnf_pearl_free_xfer_buffers
	movl	%r12d, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %r12
	addq	$8, %r12
	movq	_qtnf_pearl_reclaim_tasklet_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_tasklet_init
	leaq	4(%r14), %rdi
	movq	_qtnf_pcie_pearl_rx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$10, %ecx
	callq	_netif_napi_add
	movq	_qtnf_pcie_pearl_ipc_gen_ep_int@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, -56(%rbp)
	movq	(%rbx), %rdx
	leaq	4(%rdx), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	callq	_qtnf_pcie_init_shm_ipc
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtnf_pcie_pearl_bus_ops,4,2    ## @qtnf_pcie_pearl_bus_ops
	.comm	_qtnf_pearl_fw_work_handler,4,2 ## @qtnf_pearl_fw_work_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCIE xfer init failed\n"

	.comm	_qtnf_pcie_pearl_interrupt,4,2  ## @qtnf_pcie_pearl_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"qtnf_pearl_irq"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request pcie irq %d\n"

	.comm	_qtnf_pearl_reclaim_tasklet_fn,4,2 ## @qtnf_pearl_reclaim_tasklet_fn
	.comm	_qtnf_pcie_pearl_rx_poll,4,2    ## @qtnf_pcie_pearl_rx_poll
	.comm	_qtnf_pcie_pearl_ipc_gen_ep_int,4,2 ## @qtnf_pcie_pearl_ipc_gen_ep_int
	.no_dead_strip	_qtnf_pcie_pearl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_pcie_pearl_probe
_qtnf_pcie_pearl_probe:                 ; @qtnf_pcie_pearl_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x20, x0
	bl	_get_bus_priv
	mov	x19, x0
	ldr	x22, [x0, #32]
Lloh0:
	adrp	x8, _qtnf_pcie_pearl_bus_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtnf_pcie_pearl_bus_ops@GOTPAGEOFF]
	str	x8, [x20, #16]
	add	x0, x0, #44
	bl	_spin_lock_init
	add	x0, x20, #8
Lloh2:
	adrp	x8, _qtnf_pearl_fw_work_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qtnf_pearl_fw_work_handler@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x19, #24]
	str	w8, [x19, #40]
	ldr	x8, [x19, #16]
	str	x8, [x19]
	ldr	w0, [x19, #12]
	add	x1, x8, #8
	bl	_writel
	mov	x0, x19
	mov	x1, x21
	bl	_qtnf_pcie_pearl_init_xfer
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_qtnf_init_hdp_irqs
	mov	x0, x19
	bl	_qtnf_disable_hdp_irqs
	mov	x0, x22
	ldr	w1, [x0], #4
Lloh7:
	adrp	x2, _qtnf_pcie_pearl_interrupt@GOTPAGE
Lloh8:
	ldr	x2, [x2, _qtnf_pcie_pearl_interrupt@GOTPAGEOFF]
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w8, [x22]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_qtnf_pearl_free_xfer_buffers
	b	LBB0_5
LBB0_4:
	add	x21, x19, #8
Lloh13:
	adrp	x8, _qtnf_pearl_reclaim_tasklet_fn@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qtnf_pearl_reclaim_tasklet_fn@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_tasklet_init
	add	x0, x20, #4
Lloh16:
	adrp	x8, _qtnf_pcie_pearl_rx_poll@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qtnf_pcie_pearl_rx_poll@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #10
	bl	_netif_napi_add
Lloh19:
	adrp	x8, _qtnf_pcie_pearl_ipc_gen_ep_int@GOTPAGE
Lloh20:
	ldr	x8, [x8, _qtnf_pcie_pearl_ipc_gen_ep_int@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x19, [sp, #16]
	ldr	x2, [x19]
	add	x1, x2, #4
	add	x3, sp, #16
	mov	x0, x21
	bl	_qtnf_pcie_init_shm_ipc
	mov	w21, #0
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_qtnf_pcie_pearl_bus_ops,4,2    ; @qtnf_pcie_pearl_bus_ops
	.comm	_qtnf_pearl_fw_work_handler,4,2 ; @qtnf_pearl_fw_work_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCIE xfer init failed\n"

	.comm	_qtnf_pcie_pearl_interrupt,4,2  ; @qtnf_pcie_pearl_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"qtnf_pearl_irq"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request pcie irq %d\n"

	.comm	_qtnf_pearl_reclaim_tasklet_fn,4,2 ; @qtnf_pearl_reclaim_tasklet_fn
	.comm	_qtnf_pcie_pearl_rx_poll,4,2    ; @qtnf_pcie_pearl_rx_poll
	.comm	_qtnf_pcie_pearl_ipc_gen_ep_int,4,2 ; @qtnf_pcie_pearl_ipc_gen_ep_int
	.no_dead_strip	_qtnf_pcie_pearl_probe
.subsections_via_symbols
