	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_probe
_ath10k_sdio_probe:                     ## @ath10k_sdio_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_ATH10K_HW_QCA6174@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	20(%rdi), %rbx
	movq	_ATH10K_BUS_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ath10k_sdio_hif_ops@GOTPCREL(%rip), %r8
	movl	$88, %edi
	movq	%rbx, %rsi
	callq	_ath10k_core_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %ecx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %eax
	movl	4(%r13), %ebx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	pushq	%rax
	pushq	%rbx
	callq	_ath10k_dbg
	addq	$16, %rsp
	movq	%r12, %rdi
	callq	_ath10k_sdio_priv
	movq	%rax, %r15
	movl	12(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	12(%r12), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	12(%r12), %edi
	movq	_BMI_MAX_CMDBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_devm_kzalloc
	movq	%rax, 80(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%r13, 72(%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sdio_set_drvdata
	movl	$1, (%r15)
	movq	%r12, 64(%r15)
	leaq	60(%r15), %rdi
	callq	_spin_lock_init
	leaq	56(%r15), %rdi
	callq	_spin_lock_init
	leaq	32(%r15), %rdi
	callq	_mutex_init
	leaq	24(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_ath10k_sdio_write_async_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	L_.str.2(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_ATH10K_SDIO_BUS_REQUEST_MAX_NUM@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_ath10k_sdio_free_bus_req
	incq	%r14
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_9
LBB0_10:
	movq	_QCA_MANUFACTURER_ID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	callq	_FIELD_GET
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_14
## %bb.11:
	movq	_QCA9377_1_0_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	4(%r14), %eax
	movl	%eax, 4(%r12)
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_ath10k_sdio_set_mbox_info
	movq	_ATH10K_DEV_TYPE_HL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	$1, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ath10k_core_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	%r12, %rdi
	callq	_ath10k_core_destroy
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
LBB0_15:
	movl	4(%r15), %edi
	callq	_destroy_workqueue
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_ath10k_warn
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HW_QCA6174,4,2          ## @ATH10K_HW_QCA6174
	.comm	_ATH10K_BUS_SDIO,4,2            ## @ATH10K_BUS_SDIO
	.comm	_ath10k_sdio_hif_ops,4,2        ## @ath10k_sdio_hif_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate core\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
L_.str.1:                               ## @.str.1
	.asciz	"sdio new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BMI_MAX_CMDBUF_SIZE,4,2        ## @BMI_MAX_CMDBUF_SIZE
	.comm	_ath10k_sdio_write_async_work,4,2 ## @ath10k_sdio_write_async_work
L_.str.2:                               ## @.str.2
	.asciz	"ath10k_sdio_wq"

	.comm	_ATH10K_SDIO_BUS_REQUEST_MAX_NUM,4,2 ## @ATH10K_SDIO_BUS_REQUEST_MAX_NUM
	.comm	_QCA_MANUFACTURER_ID_BASE,4,2   ## @QCA_MANUFACTURER_ID_BASE
	.comm	_QCA9377_1_0_DEVICE_ID,4,2      ## @QCA9377_1_0_DEVICE_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"unsupported device id %u (0x%x)\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"WARNING: ath10k SDIO support is work-in-progress, problems may arise!\n"

	.no_dead_strip	_ath10k_sdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_probe
_ath10k_sdio_probe:                     ; @ath10k_sdio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x22, x0
	stp	xzr, xzr, [sp, #8]
Lloh0:
	adrp	x8, _ATH10K_HW_QCA6174@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HW_QCA6174@GOTPAGEOFF]
	str	xzr, [sp, #24]
Lloh2:
	ldr	w3, [x8]
	add	x21, x0, #20
Lloh3:
	adrp	x8, _ATH10K_BUS_SDIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_BUS_SDIO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x4, _ath10k_sdio_hif_ops@GOTPAGE
Lloh7:
	ldr	x4, [x4, _ath10k_sdio_hif_ops@GOTPAGEOFF]
	mov	w0, #88
	mov	x1, x21
	bl	_ath10k_core_create
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w4, w3, [x22, #12]
	ldp	w6, w5, [x22, #4]
	ldr	w7, [x22]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_ath10k_sdio_priv
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh13:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_devm_kzalloc
	str	x0, [x21, #48]
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w0, [x19, #12]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_devm_kzalloc
	str	x0, [x21, #40]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x19, #12]
Lloh15:
	adrp	x8, _BMI_MAX_CMDBUF_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMI_MAX_CMDBUF_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x23]
	bl	_devm_kzalloc
	str	x0, [x21, #80]
	cbz	x0, LBB0_11
; %bb.4:
	str	x22, [x21, #72]
	mov	x0, x22
	mov	x1, x21
	bl	_sdio_set_drvdata
	mov	w8, #1
	str	w8, [x21]
	str	x19, [x21, #64]
	add	x0, x21, #60
	bl	_spin_lock_init
	add	x0, x21, #56
	bl	_spin_lock_init
	add	x0, x21, #32
	bl	_mutex_init
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	add	x0, x21, #20
	bl	_INIT_LIST_HEAD
	add	x0, x21, #16
Lloh18:
	adrp	x8, _ath10k_sdio_write_async_work@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ath10k_sdio_write_async_work@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x21, #4]
	cbz	w0, LBB0_11
; %bb.5:
Lloh23:
	adrp	x22, _ATH10K_SDIO_BUS_REQUEST_MAX_NUM@GOTPAGE
Lloh24:
	ldr	x22, [x22, _ATH10K_SDIO_BUS_REQUEST_MAX_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, x23
	mov	x0, x19
	bl	_ath10k_sdio_free_bus_req
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_8:
Lloh25:
	adrp	x8, _QCA_MANUFACTURER_ID_BASE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QCA_MANUFACTURER_ID_BASE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_FIELD_GET
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.9:
Lloh28:
	adrp	x8, _QCA9377_1_0_DEVICE_ID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _QCA9377_1_0_DEVICE_ID@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
	mov	x0, x19
	bl	_ath10k_sdio_set_mbox_info
Lloh31:
	adrp	x8, _ATH10K_DEV_TYPE_HL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ATH10K_DEV_TYPE_HL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_core_register
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.10:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	b	LBB0_16
LBB0_11:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x19
	bl	_ath10k_core_destroy
	b	LBB0_14
LBB0_13:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x2, x0
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	w8, [x20]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_16:
	bl	_ath10k_err
	ldr	w0, [x21, #4]
	bl	_destroy_workqueue
	b	LBB0_12
LBB0_17:
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_14
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HW_QCA6174,4,2          ; @ATH10K_HW_QCA6174
	.comm	_ATH10K_BUS_SDIO,4,2            ; @ATH10K_BUS_SDIO
	.comm	_ath10k_sdio_hif_ops,4,2        ; @ath10k_sdio_hif_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate core\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
l_.str.1:                               ; @.str.1
	.asciz	"sdio new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BMI_MAX_CMDBUF_SIZE,4,2        ; @BMI_MAX_CMDBUF_SIZE
	.comm	_ath10k_sdio_write_async_work,4,2 ; @ath10k_sdio_write_async_work
l_.str.2:                               ; @.str.2
	.asciz	"ath10k_sdio_wq"

	.comm	_ATH10K_SDIO_BUS_REQUEST_MAX_NUM,4,2 ; @ATH10K_SDIO_BUS_REQUEST_MAX_NUM
	.comm	_QCA_MANUFACTURER_ID_BASE,4,2   ; @QCA_MANUFACTURER_ID_BASE
	.comm	_QCA9377_1_0_DEVICE_ID,4,2      ; @QCA9377_1_0_DEVICE_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"unsupported device id %u (0x%x)\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"WARNING: ath10k SDIO support is work-in-progress, problems may arise!\n"

	.no_dead_strip	_ath10k_sdio_probe
.subsections_via_symbols
