	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_pci_hif_power_up
_ath10k_pci_hif_power_up:               ## @ath10k_pci_hif_power_up
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ath10k_pci_priv
	movq	%rax, %rbx
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath10k_dbg
	movl	4(%rbx), %edi
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_pcie_capability_read_word
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	_PCI_EXP_LNKCTL_ASPMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
	callq	_pcie_capability_write_word
	movq	%r15, %rdi
	callq	_ath10k_pci_chip_reset
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ath10k_pci_has_fw_crashed
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath10k_warn
	movq	%r15, %rdi
	callq	_ath10k_pci_fw_crashed_clear
	movq	%r15, %rdi
	callq	_ath10k_pci_fw_crashed_dump
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_ath10k_pci_init_pipes
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ath10k_err
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_ath10k_pci_init_config
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	%r15, %rdi
	callq	_ath10k_pci_wake_target_cpu
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ath10k_err
	movq	%r15, %rdi
	callq	_ath10k_pci_ce_deinit
	jmp	LBB0_13
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"boot hif power up\n"

	.comm	_PCI_EXP_LNKCTL,4,2             ## @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_LNKCTL_ASPMC,4,2       ## @PCI_EXP_LNKCTL_ASPMC
L_.str.1:                               ## @.str.1
	.asciz	"firmware crashed during chip reset\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to reset chip: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to initialize CE: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to setup init config: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"could not wake up target CPU: %d\n"

	.no_dead_strip	_ath10k_pci_hif_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_pci_hif_power_up
_ath10k_pci_hif_power_up:               ; @ath10k_pci_hif_power_up
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_ath10k_pci_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x21, _PCI_EXP_LNKCTL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PCI_EXP_LNKCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_pcie_capability_read_word
	ldr	w1, [x21]
	ldp	w8, w0, [x20]
Lloh7:
	adrp	x9, _PCI_EXP_LNKCTL_ASPMC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PCI_EXP_LNKCTL_ASPMC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w2, w8, w9
	bl	_pcie_capability_write_word
	mov	x0, x19
	bl	_ath10k_pci_chip_reset
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_ath10k_pci_has_fw_crashed
	cbz	x0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x19
	bl	_ath10k_pci_fw_crashed_clear
	mov	x0, x19
	bl	_ath10k_pci_fw_crashed_dump
LBB0_3:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_ath10k_pci_init_pipes
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_ath10k_pci_init_config
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_ath10k_pci_wake_target_cpu
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.11:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
	mov	x0, x19
	bl	_ath10k_pci_ce_deinit
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"boot hif power up\n"

	.comm	_PCI_EXP_LNKCTL,4,2             ; @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_LNKCTL_ASPMC,4,2       ; @PCI_EXP_LNKCTL_ASPMC
l_.str.1:                               ; @.str.1
	.asciz	"firmware crashed during chip reset\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to reset chip: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to initialize CE: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to setup init config: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"could not wake up target CPU: %d\n"

	.no_dead_strip	_ath10k_pci_hif_power_up
.subsections_via_symbols
