	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_pci_qca988x_chip_reset
_ath10k_pci_qca988x_chip_reset:         ## @ath10k_pci_qca988x_chip_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_ath10k_dbg
	movq	_ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r14), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	(%r15), %r14d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ath10k_pci_warm_reset
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ath10k_pci_init_pipes
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_QCA988X_HOST_INTEREST_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	callq	_ath10k_pci_diag_read32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_4
LBB0_5:
	movq	_ath10k_pci_reset_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ATH10K_PCI_RESET_WARM_ONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_13:
	movq	%rbx, %rdi
	callq	_ath10k_pci_cold_reset
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	callq	_ath10k_pci_wait_for_target_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
LBB0_15:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_20
LBB0_12:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_19
LBB0_18:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
LBB0_19:
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	xorl	%r14d, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"boot 988x chip reset\n"

	.comm	_ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS,4,2 ## @ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS
L_.str.1:                               ## @.str.1
	.asciz	"failed to warm reset attempt %d of %d: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to init copy engine: %d\n"

	.comm	_QCA988X_HOST_INTEREST_ADDRESS,4,2 ## @QCA988X_HOST_INTEREST_ADDRESS
L_.str.3:                               ## @.str.3
	.asciz	"failed to poke copy engine: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"boot chip reset complete (warm)\n"

	.comm	_ath10k_pci_reset_mode,8,3      ## @ath10k_pci_reset_mode
	.comm	_ATH10K_PCI_RESET_WARM_ONLY,8,3 ## @ATH10K_PCI_RESET_WARM_ONLY
L_.str.5:                               ## @.str.5
	.asciz	"refusing cold reset as requested\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.6:                               ## @.str.6
	.asciz	"failed to cold reset: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to wait for target after cold reset: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"boot qca988x chip reset complete (cold)\n"

	.no_dead_strip	_ath10k_pci_qca988x_chip_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_pci_qca988x_chip_reset
_ath10k_pci_qca988x_chip_reset:         ; @ath10k_pci_qca988x_chip_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x23, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATH10K_DBG_BOOT@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath10k_dbg
Lloh4:
	adrp	x24, _ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w25, #0
Lloh6:
	adrp	x26, _QCA988X_HOST_INTEREST_ADDRESS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _QCA988X_HOST_INTEREST_ADDRESS@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w25, #1
	ldr	w9, [x24]
	stp	x9, x0, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_ath10k_warn
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ath10k_pci_warm_reset
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ath10k_pci_init_pipes
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x21
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	add	x2, sp, #28
	mov	x0, x19
	bl	_ath10k_pci_diag_read32
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_3
LBB0_9:
Lloh14:
	adrp	x8, _ath10k_pci_reset_mode@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ath10k_pci_reset_mode@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _ATH10K_PCI_RESET_WARM_ONLY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATH10K_PCI_RESET_WARM_ONLY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh22:
	adrp	x8, _EPERM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_11:
	mov	x0, x19
	bl	_ath10k_pci_cold_reset
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_17
LBB0_13:
	mov	x0, x19
	bl	_ath10k_pci_wait_for_target_init
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.14:
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_17
LBB0_15:
	ldr	w1, [x23]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w20, #0
	b	LBB0_17
LBB0_16:
	ldr	w1, [x23]
Lloh31:
	adrp	x2, l_.str.8@PAGE
Lloh32:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"boot 988x chip reset\n"

	.comm	_ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS,4,2 ; @ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS
l_.str.1:                               ; @.str.1
	.asciz	"failed to warm reset attempt %d of %d: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to init copy engine: %d\n"

	.comm	_QCA988X_HOST_INTEREST_ADDRESS,4,2 ; @QCA988X_HOST_INTEREST_ADDRESS
l_.str.3:                               ; @.str.3
	.asciz	"failed to poke copy engine: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"boot chip reset complete (warm)\n"

	.comm	_ath10k_pci_reset_mode,8,3      ; @ath10k_pci_reset_mode
	.comm	_ATH10K_PCI_RESET_WARM_ONLY,8,3 ; @ATH10K_PCI_RESET_WARM_ONLY
l_.str.5:                               ; @.str.5
	.asciz	"refusing cold reset as requested\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.6:                               ; @.str.6
	.asciz	"failed to cold reset: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to wait for target after cold reset: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"boot qca988x chip reset complete (cold)\n"

	.no_dead_strip	_ath10k_pci_qca988x_chip_reset
.subsections_via_symbols
