	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_ahb_probe
_ath10k_ahb_probe:                      ## @ath10k_ahb_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_ath10k_ahb_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rax), %ecx
	movq	_ATH10K_BUS_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ath10k_ahb_hif_ops@GOTPCREL(%rip), %r8
	movl	$48, %edi
	movq	%r14, %rsi
	callq	_ath10k_core_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath10k_dbg
	movq	%r15, %rdi
	callq	_ath10k_pci_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ath10k_ahb_priv
	movq	%rax, %r13
	movq	%r14, 8(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_ath10k_ahb_resource_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.6:
	movq	$0, 8(%r15)
	movl	4(%r13), %eax
	movl	%eax, 28(%r12)
	movl	(%r13), %eax
	movl	%eax, 24(%r12)
	movq	%r15, 16(%r12)
	movq	_ath10k_ahb_bus_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	_ath10k_ahb_qca4019_targ_cpu_to_ce_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, (%r15)
	movq	%r15, %rdi
	callq	_ath10k_pci_setup_resource
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_8:
	movq	%r15, %rdi
	callq	_ath10k_pci_init_napi
	movq	%r15, %rdi
	callq	_ath10k_ahb_request_irq_legacy
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r15, %rdi
	callq	_ath10k_ahb_prepare_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	%r15, %rdi
	callq	_ath10k_pci_ce_deinit
	movq	_ATH10K_DEV_TYPE_LL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SOC_CHIP_ID_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ath10k_ahb_soc_read32
	movl	%eax, -48(%rbp)
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ath10k_core_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_ath10k_ahb_halt_chip
	movq	%r15, %rdi
	callq	_ath10k_ahb_clock_disable
LBB0_16:
	movq	%r15, %rdi
	callq	_ath10k_ahb_release_irq_legacy
LBB0_17:
	movq	%r15, %rdi
	callq	_ath10k_pci_free_pipes
LBB0_18:
	movq	%r15, %rdi
	callq	_ath10k_ahb_resource_deinit
LBB0_19:
	movq	%r15, %rdi
	callq	_ath10k_core_destroy
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_ahb_of_match,4,2        ## @ath10k_ahb_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find matching device tree id\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_BUS_AHB,4,2             ## @ATH10K_BUS_AHB
	.comm	_ath10k_ahb_hif_ops,4,2         ## @ath10k_ahb_hif_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate core\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
L_.str.2:                               ## @.str.2
	.asciz	"ahb probe\n"

	.comm	_ath10k_ahb_bus_ops,4,2         ## @ath10k_ahb_bus_ops
	.comm	_ath10k_ahb_qca4019_targ_cpu_to_ce_addr,4,2 ## @ath10k_ahb_qca4019_targ_cpu_to_ce_addr
L_.str.3:                               ## @.str.3
	.asciz	"failed to setup resource: %d\n"

	.comm	_ATH10K_DEV_TYPE_LL,4,2         ## @ATH10K_DEV_TYPE_LL
	.comm	_SOC_CHIP_ID_ADDRESS,4,2        ## @SOC_CHIP_ID_ADDRESS
L_.str.4:                               ## @.str.4
	.asciz	"failed to get chip id\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.5:                               ## @.str.5
	.asciz	"failed to register driver core: %d\n"

	.no_dead_strip	_ath10k_ahb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_ahb_probe
_ath10k_ahb_probe:                      ; @ath10k_ahb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _ath10k_ahb_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_ahb_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w3, [x0]
Lloh3:
	adrp	x8, _ATH10K_BUS_AHB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_BUS_AHB@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x4, _ath10k_ahb_hif_ops@GOTPAGE
Lloh7:
	ldr	x4, [x4, _ath10k_ahb_hif_ops@GOTPAGEOFF]
	mov	w0, #48
	mov	x1, x19
	bl	_ath10k_core_create
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh8:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_ath10k_dbg
	mov	x0, x20
	bl	_ath10k_pci_priv
	mov	x22, x0
	mov	x0, x20
	bl	_ath10k_ahb_priv
	mov	x23, x0
	str	x19, [x0, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_ath10k_ahb_resource_init
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.3:
	ldr	d0, [x23]
	str	d0, [x22, #24]
	str	x20, [x22, #16]
Lloh13:
	adrp	x8, _ath10k_ahb_bus_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ath10k_ahb_bus_ops@GOTPAGEOFF]
	str	x8, [x22]
Lloh15:
	adrp	x8, _ath10k_ahb_qca4019_targ_cpu_to_ce_addr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ath10k_ahb_qca4019_targ_cpu_to_ce_addr@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	stp	x22, xzr, [x20]
	mov	x0, x20
	bl	_ath10k_pci_setup_resource
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
	b	LBB0_17
LBB0_5:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_8:
	mov	x0, x20
	bl	_ath10k_pci_init_napi
	mov	x0, x20
	bl	_ath10k_ahb_request_irq_legacy
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_ath10k_ahb_prepare_device
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.10:
	mov	x0, x20
	bl	_ath10k_pci_ce_deinit
Lloh28:
	adrp	x8, _ATH10K_DEV_TYPE_LL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATH10K_DEV_TYPE_LL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh31:
	adrp	x8, _SOC_CHIP_ID_ADDRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SOC_CHIP_ID_ADDRESS@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ath10k_ahb_soc_read32
	str	w0, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:
	add	x1, sp, #8
	mov	x0, x20
	bl	_ath10k_core_register
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.12:
	str	x21, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_14
LBB0_13:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x20
	bl	_ath10k_ahb_halt_chip
	mov	x0, x20
	bl	_ath10k_ahb_clock_disable
LBB0_15:
	mov	x0, x20
	bl	_ath10k_ahb_release_irq_legacy
LBB0_16:
	mov	x0, x20
	bl	_ath10k_pci_free_pipes
LBB0_17:
	mov	x0, x20
	bl	_ath10k_ahb_resource_deinit
LBB0_18:
	mov	x0, x20
	bl	_ath10k_core_destroy
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
LBB0_19:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_ahb_of_match,4,2        ; @ath10k_ahb_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find matching device tree id\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_BUS_AHB,4,2             ; @ATH10K_BUS_AHB
	.comm	_ath10k_ahb_hif_ops,4,2         ; @ath10k_ahb_hif_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate core\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
l_.str.2:                               ; @.str.2
	.asciz	"ahb probe\n"

	.comm	_ath10k_ahb_bus_ops,4,2         ; @ath10k_ahb_bus_ops
	.comm	_ath10k_ahb_qca4019_targ_cpu_to_ce_addr,4,2 ; @ath10k_ahb_qca4019_targ_cpu_to_ce_addr
l_.str.3:                               ; @.str.3
	.asciz	"failed to setup resource: %d\n"

	.comm	_ATH10K_DEV_TYPE_LL,4,2         ; @ATH10K_DEV_TYPE_LL
	.comm	_SOC_CHIP_ID_ADDRESS,4,2        ; @SOC_CHIP_ID_ADDRESS
l_.str.4:                               ; @.str.4
	.asciz	"failed to get chip id\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.5:                               ; @.str.5
	.asciz	"failed to register driver core: %d\n"

	.no_dead_strip	_ath10k_ahb_probe
.subsections_via_symbols
