	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_write_data_to_card
_mwifiex_write_data_to_card:            ## @mwifiex_write_data_to_card
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$-1, %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	movq	_MAX_WRITE_IOMEM_RETRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_mwifiex_write_data_sync
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	2(%r14), %rcx
	movq	_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_CONFIGURATION_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_5
LBB0_6:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host_to_card, write iomem\t(%d) failed: %d\n"

	.comm	_CONFIGURATION_REG,4,2          ## @CONFIGURATION_REG
L_.str.1:                               ## @.str.1
	.asciz	"write CFG reg failed\n"

	.comm	_MAX_WRITE_IOMEM_RETRY,8,3      ## @MAX_WRITE_IOMEM_RETRY
	.no_dead_strip	_mwifiex_write_data_to_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_write_data_to_card
_mwifiex_write_data_to_card:            ; @mwifiex_write_data_to_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x25, #-1
Lloh0:
	adrp	x26, _ERROR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _CONFIGURATION_REG@GOTPAGE
Lloh5:
	ldr	x27, [x27, _CONFIGURATION_REG@GOTPAGEOFF]
Lloh6:
	adrp	x28, _MAX_WRITE_IOMEM_RETRY@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MAX_WRITE_IOMEM_RETRY@GOTPAGEOFF]
Lloh8:
	adrp	x24, l_.str.1@PAGE
Lloh9:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	add	x25, x25, #1
	cmp	x25, x8
	b.ge	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_mwifiex_write_data_sync
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x25, #2
	ldr	w1, [x26]
	stp	x8, x0, [sp]
	mov	x0, x22
	mov	x2, x23
	bl	_mwifiex_dbg
	ldr	w1, [x27]
	mov	x0, x22
	mov	w2, #4
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x24
	bl	_mwifiex_dbg
	b	LBB0_1
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host_to_card, write iomem\t(%d) failed: %d\n"

	.comm	_CONFIGURATION_REG,4,2          ; @CONFIGURATION_REG
l_.str.1:                               ; @.str.1
	.asciz	"write CFG reg failed\n"

	.comm	_MAX_WRITE_IOMEM_RETRY,8,3      ; @MAX_WRITE_IOMEM_RETRY
	.no_dead_strip	_mwifiex_write_data_to_card
.subsections_via_symbols
