	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_init_sdio
_mwifiex_init_sdio:                     ## @mwifiex_init_sdio
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	152(%rbx), %r15
	movl	160(%rbx), %edi
	movq	%rbx, %rsi
	callq	_sdio_set_drvdata
	movq	152(%rbx), %rax
	movl	16(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_read_reg
	movq	%r14, %rdi
	callq	_mwifiex_init_sdio_ioport
	xorps	%xmm0, %xmm0
	movups	%xmm0, 136(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 132(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 128(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 124(%rbx)
	movups	%xmm0, 88(%rbx)
	movq	$0, 104(%rbx)
	movl	$1, 80(%rbx)
	movl	120(%rbx), %eax
	movl	%eax, 84(%rbx)
	movups	%xmm0, 56(%rbx)
	movq	$0, 72(%rbx)
	movl	$1, 24(%rbx)
	movl	%eax, 48(%rbx)
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kzalloc
	movq	%rax, 112(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	120(%rbx), %edi
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	120(%rbx), %edi
	movl	(%r15), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_alloc_sdio_mpa_buffers
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_MWIFIEX_MP_AGGR_BUF_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_6
## %bb.5:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_8
LBB0_6:
	movl	$1, (%r14)
	movq	_MWIFIEX_MP_AGGR_BUF_SIZE_32K@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_mwifiex_alloc_sdio_mpa_buffers
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	$0, 80(%rbx)
	movl	$0, 24(%rbx)
LBB0_8:
	movl	20(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	112(%rbx), %rdi
	jmp	LBB0_11
LBB0_10:
	movq	112(%rbx), %rdi
	callq	_kfree
	movq	32(%rbx), %rdi
LBB0_11:
	callq	_kfree
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWIFIEX_MP_AGGR_BUF_SIZE_MAX,8,3 ## @MWIFIEX_MP_AGGR_BUF_SIZE_MAX
	.comm	_MWIFIEX_MP_AGGR_BUF_SIZE_32K,8,3 ## @MWIFIEX_MP_AGGR_BUF_SIZE_32K
	.no_dead_strip	_mwifiex_init_sdio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_init_sdio
_mwifiex_init_sdio:                     ; @mwifiex_init_sdio
	.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, x0
	ldr	x19, [x0, #16]
	ldr	x21, [x19, #152]
	ldr	w0, [x19, #160]
	mov	x1, x19
	bl	_sdio_set_drvdata
	ldr	x8, [x19, #152]
	ldr	w1, [x8, #16]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mwifiex_read_reg
	mov	x0, x20
	bl	_mwifiex_init_sdio_ioport
	stp	xzr, xzr, [x19, #136]
	ldr	w8, [x21, #12]
	str	w8, [x19, #132]
	ldur	d0, [x21, #4]
	stur	d0, [x19, #124]
	stp	xzr, xzr, [x19, #96]
	str	xzr, [x19, #88]
	mov	w8, #1
	ldr	w9, [x19, #120]
	stp	w8, w9, [x19, #80]
	stp	xzr, xzr, [x19, #64]
	str	xzr, [x19, #56]
	str	w8, [x19, #24]
	str	w9, [x19, #48]
	ldr	w0, [x21]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #112]
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w0, [x19, #120]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #120]
	ldr	w2, [x21]
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.3:
	ldp	x1, x2, [x19]
	mov	x0, x20
	bl	_mwifiex_alloc_sdio_mpa_buffers
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x9, [x19]
Lloh2:
	adrp	x8, _MWIFIEX_MP_AGGR_BUF_SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MWIFIEX_MP_AGGR_BUF_SIZE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x8, _MWIFIEX_MP_AGGR_BUF_SIZE_32K@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWIFIEX_MP_AGGR_BUF_SIZE_32K@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x1
	bl	_mwifiex_alloc_sdio_mpa_buffers
	cbz	w0, LBB0_8
; %bb.7:
	str	wzr, [x19, #80]
	str	wzr, [x19, #24]
LBB0_8:
	mov	w0, #0
	ldr	d0, [x19, #16]
	stur	d0, [x20, #4]
	b	LBB0_13
LBB0_9:
	ldr	x0, [x19, #112]
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19, #112]
	bl	_kfree
	ldr	x0, [x19, #32]
LBB0_11:
	bl	_kfree
LBB0_12:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWIFIEX_MP_AGGR_BUF_SIZE_MAX,8,3 ; @MWIFIEX_MP_AGGR_BUF_SIZE_MAX
	.comm	_MWIFIEX_MP_AGGR_BUF_SIZE_32K,8,3 ; @MWIFIEX_MP_AGGR_BUF_SIZE_32K
	.no_dead_strip	_mwifiex_init_sdio
.subsections_via_symbols
