	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_init_sdio_ioport
_mwifiex_init_sdio_ioport:              ## @mwifiex_init_sdio_ioport
	.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, %rbx
	movq	8(%rdi), %r15
	movl	$0, (%rdi)
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mwifiex_init_sdio_new_mode
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movl	(%rbx), %ecx
LBB0_7:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_dbg
	movq	(%r15), %rax
	movl	8(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	movl	$-1, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	(%r15), %rax
	movl	(%rax), %edx
	movl	8(%rax), %esi
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	movq	(%r15), %rax
	movl	4(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	_AUTO_RE_ENABLE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rax
	movl	20(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	movl	$-1, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movzbl	-28(%rbp), %eax
	orl	%eax, (%rbx)
	movq	(%r15), %rax
	movl	16(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	-28(%rbp), %eax
	shll	$8, %eax
	movzwl	%ax, %eax
	orl	%eax, (%rbx)
	movq	(%r15), %rax
	movl	12(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-28(%rbp), %eax
	movzbl	%al, %ecx
	shll	$16, %ecx
	orl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: SDIO FUNC1 IO port: %#x\n"

	.comm	_AUTO_RE_ENABLE_INT,4,2         ## @AUTO_RE_ENABLE_INT
	.no_dead_strip	_mwifiex_init_sdio_ioport
.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_ioport
_mwifiex_init_sdio_ioport:              ; @mwifiex_init_sdio_ioport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	wzr, [x0]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_mwifiex_init_sdio_new_mode
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	w3, [x19]
LBB0_3:
Lloh0:
	adrp	x8, _INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	ldr	w9, [sp, #12]
	ldr	w8, [x8]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mwifiex_write_reg
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _AUTO_RE_ENABLE_INT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUTO_RE_ENABLE_INT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mwifiex_write_reg
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	ldr	w1, [x8, #20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbnz	w0, LBB0_9
; %bb.7:
	ldrb	w8, [sp, #12]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	ubfiz	w8, w8, #8, #8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbz	w0, LBB0_11
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	ldr	w8, [sp, #12]
	ubfiz	w8, w8, #16, #8
	ldr	w9, [x19]
	orr	w3, w8, w9
	str	w3, [x19]
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: SDIO FUNC1 IO port: %#x\n"

	.comm	_AUTO_RE_ENABLE_INT,4,2         ; @AUTO_RE_ENABLE_INT
	.no_dead_strip	_mwifiex_init_sdio_ioport
.subsections_via_symbols
