	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_delay_for_sleep_cookie
_mwifiex_delay_for_sleep_cookie:        ## @mwifiex_delay_for_sleep_cookie
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	jle	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	8(%r14), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r13d
	movq	%r12, %rdi
	callq	_MWIFIEX_SKB_DMA_ADDR
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_pci_dma_sync_single_for_cpu
	movq	(%r12), %rdi
	callq	_get_unaligned_le32
	movq	_MWIFIEX_DEF_SLEEP_COOKIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %r13d
	movq	%r12, %rdi
	callq	_MWIFIEX_SKB_DMA_ADDR
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_pci_dma_sync_single_for_device
	movl	$20, %edi
	movl	$30, %esi
	callq	_usleep_range
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_4:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_dbg                    ## TAILCALL
LBB0_5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_dbg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_MWIFIEX_DEF_SLEEP_COOKIE,8,3   ## @MWIFIEX_DEF_SLEEP_COOKIE
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sleep cookie found at count %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"max count reached while accessing sleep cookie\n"

	.no_dead_strip	_mwifiex_delay_for_sleep_cookie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_delay_for_sleep_cookie
_mwifiex_delay_for_sleep_cookie:        ; @mwifiex_delay_for_sleep_cookie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x23, #0
	ldr	x24, [x19]
	ldr	x21, [x24, #8]
Lloh0:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MWIFIEX_DEF_SLEEP_COOKIE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MWIFIEX_DEF_SLEEP_COOKIE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x24]
	mov	x0, x21
	bl	_MWIFIEX_SKB_DMA_ADDR
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x22
	mov	w2, #8
	bl	_pci_dma_sync_single_for_cpu
	ldr	x0, [x21]
	bl	_get_unaligned_le32
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x24]
	mov	x0, x21
	bl	_MWIFIEX_SKB_DMA_ADDR
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x22
	mov	w2, #8
	bl	_pci_dma_sync_single_for_device
	mov	w0, #20
	mov	w1, #30
	bl	_usleep_range
	add	x23, x23, #1
	cmp	x20, x23
	b.ne	LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, _INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mwifiex_dbg
LBB0_5:
Lloh9:
	adrp	x8, _INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_MWIFIEX_DEF_SLEEP_COOKIE,8,3   ; @MWIFIEX_DEF_SLEEP_COOKIE
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sleep cookie found at count %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"max count reached while accessing sleep cookie\n"

	.no_dead_strip	_mwifiex_delay_for_sleep_cookie
.subsections_via_symbols
