	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_init_sdio_new_mode
_mwifiex_init_sdio_new_mode:            ## @mwifiex_init_sdio_new_mode
	.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
	movq	_MEM_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	(%r15), %rax
	movl	8(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_mwifiex_read_reg
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movq	_CMD53_NEW_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	(%r15), %rax
	movl	4(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	_CMD_PORT_RD_LEN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_read_reg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_CMD_PORT_AUTO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_mwifiex_write_reg
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_PORT,4,2                   ## @MEM_PORT
	.comm	_CMD53_NEW_MODE,4,2             ## @CMD53_NEW_MODE
	.comm	_CMD_PORT_RD_LEN_EN,4,2         ## @CMD_PORT_RD_LEN_EN
	.comm	_CMD_PORT_AUTO_EN,4,2           ## @CMD_PORT_AUTO_EN
	.no_dead_strip	_mwifiex_init_sdio_new_mode
.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_new_mode
_mwifiex_init_sdio_new_mode:            ; @mwifiex_init_sdio_new_mode
	.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]
Lloh0:
	adrp	x8, _MEM_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	bl	_mwifiex_read_reg
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _CMD53_NEW_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD53_NEW_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _CMD_PORT_RD_LEN_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_PORT_RD_LEN_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _CMD_PORT_AUTO_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_PORT_AUTO_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mwifiex_write_reg
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_PORT,4,2                   ; @MEM_PORT
	.comm	_CMD53_NEW_MODE,4,2             ; @CMD53_NEW_MODE
	.comm	_CMD_PORT_RD_LEN_EN,4,2         ; @CMD_PORT_RD_LEN_EN
	.comm	_CMD_PORT_AUTO_EN,4,2           ; @CMD_PORT_AUTO_EN
	.no_dead_strip	_mwifiex_init_sdio_new_mode
.subsections_via_symbols
