	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_sdio_probe
_ath6kl_sdio_probe:                     ## @ath6kl_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_ATH6KL_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r15), %edx
	movl	16(%r15), %ecx
	movl	12(%r15), %r8d
	movl	4(%r15), %eax
	movl	8(%r15), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_HIF_DMA_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, 24(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sdio_set_drvdata
	movq	%r14, 80(%r12)
	movl	$1, (%r12)
	leaq	72(%r12), %rdi
	callq	_spin_lock_init
	leaq	68(%r12), %rdi
	callq	_spin_lock_init
	leaq	64(%r12), %rdi
	callq	_spin_lock_init
	leaq	60(%r12), %rdi
	callq	_mutex_init
	leaq	56(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r12), %rdi
	movq	_ath6kl_sdio_write_async_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	addq	$40, %rdi
	callq	_init_waitqueue_head
	movq	_BUS_REQUEST_MAX_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_ath6kl_sdio_free_bus_req
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	24(%r12), %rdi
	callq	_ath6kl_core_create
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%rax, 16(%r12)
	movq	_ATH6KL_HIF_TYPE_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r12, 16(%r15)
	movq	_ath6kl_sdio_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movl	$256, (%r15)                    ## imm = 0x100
	movq	%r15, %rdi
	callq	_ath6kl_sdio_set_mbox_info
	movq	%r15, %rdi
	callq	_ath6kl_sdio_config
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_ath6kl_err
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ath6kl_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_11:
	movq	_ATH6KL_HTC_TYPE_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ath6kl_core_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ath6kl_err
LBB0_14:
	movq	16(%r12), %rdi
	callq	_ath6kl_core_destroy
LBB0_15:
	movq	8(%r12), %rdi
	callq	_kfree
LBB0_16:
	movq	%r12, %rdi
	callq	_kfree
LBB0_17:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_BOOT,4,2            ## @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HIF_DMA_BUFFER_SIZE,4,2        ## @HIF_DMA_BUFFER_SIZE
	.comm	_ath6kl_sdio_write_async_work,4,2 ## @ath6kl_sdio_write_async_work
	.comm	_BUS_REQUEST_MAX_NUM,4,2        ## @BUS_REQUEST_MAX_NUM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc ath6kl core\n"

	.comm	_ATH6KL_HIF_TYPE_SDIO,4,2       ## @ATH6KL_HIF_TYPE_SDIO
	.comm	_ath6kl_sdio_ops,4,2            ## @ath6kl_sdio_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to config sdio: %d\n"

	.comm	_ATH6KL_HTC_TYPE_MBOX,4,2       ## @ATH6KL_HTC_TYPE_MBOX
L_.str.3:                               ## @.str.3
	.asciz	"Failed to init ath6kl core\n"

	.no_dead_strip	_ath6kl_sdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_sdio_probe
_ath6kl_sdio_probe:                     ; @ath6kl_sdio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ATH6KL_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_BOOT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w3, w2, [x21, #16]
	ldp	w5, w4, [x21, #8]
	ldr	w6, [x21, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x8, _HIF_DMA_BUFFER_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HIF_DMA_BUFFER_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.2:
	str	x21, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_sdio_set_drvdata
	str	x20, [x19, #80]
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #72
	bl	_spin_lock_init
	add	x0, x19, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_spin_lock_init
	add	x0, x19, #60
	bl	_mutex_init
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x0, x19, #44
Lloh10:
	adrp	x8, _ath6kl_sdio_write_async_work@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ath6kl_sdio_write_async_work@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
	bl	_init_waitqueue_head
Lloh13:
	adrp	x20, _BUS_REQUEST_MAX_NUM@GOTPAGE
Lloh14:
	ldr	x20, [x20, _BUS_REQUEST_MAX_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x21
	mov	x0, x19
	bl	_ath6kl_sdio_free_bus_req
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x19, #24]
	bl	_ath6kl_core_create
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	str	x0, [x19, #16]
Lloh15:
	adrp	x8, _ATH6KL_HIF_TYPE_SDIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH6KL_HIF_TYPE_SDIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh18:
	adrp	x8, _ath6kl_sdio_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ath6kl_sdio_ops@GOTPAGEOFF]
	stp	x8, x19, [x0, #8]
	mov	w8, #256
	str	w8, [x0]
	bl	_ath6kl_sdio_set_mbox_info
	mov	x0, x21
	bl	_ath6kl_sdio_config
	cbz	w0, LBB0_11
; %bb.7:
	mov	x20, x0
	str	x20, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_9:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_10:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_11:
Lloh33:
	adrp	x8, _ATH6KL_HTC_TYPE_MBOX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ATH6KL_HTC_TYPE_MBOX@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ath6kl_core_init
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.12:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
	bl	_ath6kl_err
	ldr	x0, [x19, #16]
	bl	_ath6kl_core_destroy
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_BOOT,4,2            ; @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HIF_DMA_BUFFER_SIZE,4,2        ; @HIF_DMA_BUFFER_SIZE
	.comm	_ath6kl_sdio_write_async_work,4,2 ; @ath6kl_sdio_write_async_work
	.comm	_BUS_REQUEST_MAX_NUM,4,2        ; @BUS_REQUEST_MAX_NUM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc ath6kl core\n"

	.comm	_ATH6KL_HIF_TYPE_SDIO,4,2       ; @ATH6KL_HIF_TYPE_SDIO
	.comm	_ath6kl_sdio_ops,4,2            ; @ath6kl_sdio_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to config sdio: %d\n"

	.comm	_ATH6KL_HTC_TYPE_MBOX,4,2       ; @ATH6KL_HTC_TYPE_MBOX
l_.str.3:                               ; @.str.3
	.asciz	"Failed to init ath6kl core\n"

	.no_dead_strip	_ath6kl_sdio_probe
.subsections_via_symbols
