	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_wait_for_target_init ## -- Begin function ath10k_pci_wait_for_target_init
	.p2align	4, 0x90
_ath10k_pci_wait_for_target_init:       ## @ath10k_pci_wait_for_target_init
	.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, %r15
	callq	_ath10k_pci_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ATH10K_PCI_TARGET_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	movq	_FW_INDICATOR_ADDRESS@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_mdelay
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_ath10k_pci_read32
	movl	%eax, %ebx
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FW_IND_EVENT_PENDING@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FW_IND_INITIALIZED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ATH10K_PCI_IRQ_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_ath10k_pci_enable_legacy_irq
	jmp	LBB0_1
LBB0_8:
	movq	%r15, %rdi
	callq	_ath10k_pci_disable_and_clear_legacy_irq
	movq	%r15, %rdi
	callq	_ath10k_pci_irq_msi_fw_mask
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.9:
	movq	_FW_IND_EVENT_PENDING@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath10k_warn
	movq	_ECOMM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_FW_IND_INITIALIZED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %r14d
LBB0_16:
	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 waiting target to initialise\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATH10K_PCI_TARGET_WAIT,4,2     ## @ATH10K_PCI_TARGET_WAIT
	.comm	_FW_INDICATOR_ADDRESS,4,2       ## @FW_INDICATOR_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"boot target indicator %x\n"

	.comm	_FW_IND_EVENT_PENDING,4,2       ## @FW_IND_EVENT_PENDING
	.comm	_FW_IND_INITIALIZED,4,2         ## @FW_IND_INITIALIZED
	.comm	_ATH10K_PCI_IRQ_LEGACY,8,3      ## @ATH10K_PCI_IRQ_LEGACY
L_.str.2:                               ## @.str.2
	.asciz	"failed to read device register, device is gone\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"device has crashed during init\n"

	.comm	_ECOMM,4,2                      ## @ECOMM
L_.str.4:                               ## @.str.4
	.asciz	"failed to receive initialized event from target: %08x\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.5:                               ## @.str.5
	.asciz	"boot target initialised\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_wait_for_target_init ; -- Begin function ath10k_pci_wait_for_target_init
	.p2align	2
_ath10k_pci_wait_for_target_init:       ; @ath10k_pci_wait_for_target_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_ath10k_pci_priv
	mov	x20, x0
Lloh0:
	adrp	x24, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATH10K_DBG_BOOT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
Lloh4:
	adrp	x27, _jiffies@GOTPAGE
Lloh5:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x21, [x27]
Lloh6:
	adrp	x8, _ATH10K_PCI_TARGET_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH10K_PCI_TARGET_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x22, x0, x21
Lloh9:
	adrp	x28, _FW_INDICATOR_ADDRESS@GOTPAGE
Lloh10:
	ldr	x28, [x28, _FW_INDICATOR_ADDRESS@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str.1@PAGE
Lloh12:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh13:
	adrp	x26, _FW_IND_EVENT_PENDING@GOTPAGE
Lloh14:
	ldr	x26, [x26, _FW_IND_EVENT_PENDING@GOTPAGEOFF]
Lloh15:
	adrp	x25, _ATH10K_PCI_IRQ_LEGACY@GOTPAGE
Lloh16:
	ldr	x25, [x25, _ATH10K_PCI_IRQ_LEGACY@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_mdelay
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x27]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ath10k_pci_read32
	mov	x21, x0
	ldr	w1, [x24]
	str	x21, [sp]
	mov	x0, x19
	mov	x2, x23
	bl	_ath10k_dbg
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _FW_IND_INITIALIZED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FW_IND_INITIALIZED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ath10k_pci_enable_legacy_irq
	b	LBB0_1
LBB0_8:
	mov	x0, x19
	bl	_ath10k_pci_disable_and_clear_legacy_irq
	mov	x0, x19
	bl	_ath10k_pci_irq_msi_fw_mask
	cmn	w21, #1
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.10:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh22:
	adrp	x8, _ECOMM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ECOMM@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh28:
	adrp	x8, _FW_IND_INITIALIZED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FW_IND_INITIALIZED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x24]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w0, #0
	b	LBB0_16
LBB0_14:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh35:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"boot waiting target to initialise\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATH10K_PCI_TARGET_WAIT,4,2     ; @ATH10K_PCI_TARGET_WAIT
	.comm	_FW_INDICATOR_ADDRESS,4,2       ; @FW_INDICATOR_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"boot target indicator %x\n"

	.comm	_FW_IND_EVENT_PENDING,4,2       ; @FW_IND_EVENT_PENDING
	.comm	_FW_IND_INITIALIZED,4,2         ; @FW_IND_INITIALIZED
	.comm	_ATH10K_PCI_IRQ_LEGACY,8,3      ; @ATH10K_PCI_IRQ_LEGACY
l_.str.2:                               ; @.str.2
	.asciz	"failed to read device register, device is gone\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"device has crashed during init\n"

	.comm	_ECOMM,4,2                      ; @ECOMM
l_.str.4:                               ; @.str.4
	.asciz	"failed to receive initialized event from target: %08x\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.5:                               ; @.str.5
	.asciz	"boot target initialised\n"

.subsections_via_symbols
