	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_fw_dma_wait
_ipw_fw_dma_wait:                       ## @ipw_fw_dma_wait
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_FW
	movq	%r15, %rdi
	callq	_ipw_fw_dma_command_block_index
	movq	%rax, %rbx
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_IPW_DEBUG_FW_INFO
	cmpq	(%r15), %rbx
	jge	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_ipw_fw_dma_command_block_index
	cmpq	%rax, %rbx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$399, %r12                      ## imm = 0x18F
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_ipw_fw_dma_abort
	movq	_IPW_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPW_RESET_REG_MASTER_DISABLED@GOTPCREL(%rip), %rax
	movq	_IPW_RESET_REG_STOP_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ipw_set_bit
	leaq	L_.str.3(%rip), %rdi
	callq	_IPW_DEBUG_FW
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_FW_INFO
	movq	%r15, %rdi
	callq	_ipw_fw_dma_dump_command_block
	movq	%r15, %rdi
	callq	_ipw_fw_dma_abort
	movl	$-1, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	">> :\n"

L_.str.1:                               ## @.str.1
	.asciz	"sram_desc.last_cb_index:0x%08X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Timeout\n"

	.comm	_IPW_RESET_REG,4,2              ## @IPW_RESET_REG
	.comm	_IPW_RESET_REG_MASTER_DISABLED,4,2 ## @IPW_RESET_REG_MASTER_DISABLED
	.comm	_IPW_RESET_REG_STOP_MASTER,4,2  ## @IPW_RESET_REG_STOP_MASTER
L_.str.3:                               ## @.str.3
	.asciz	"<< dmaWaitSync\n"

	.no_dead_strip	_ipw_fw_dma_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_fw_dma_wait
_ipw_fw_dma_wait:                       ; @ipw_fw_dma_wait
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_FW
	mov	x0, x19
	bl	_ipw_fw_dma_command_block_index
	mov	x20, x0
	ldr	x8, [x19]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_FW_INFO
	ldr	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.1:
	mov	x21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	mov	x20, x0
	cmp	x0, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	mov	x0, x19
	bl	_ipw_fw_dma_command_block_index
	cmp	x20, x0
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, #399
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	b	LBB0_3
LBB0_7:
	mov	x0, x19
	bl	_ipw_fw_dma_abort
Lloh4:
	adrp	x8, _IPW_RESET_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPW_RESET_REG@GOTPAGEOFF]
Lloh6:
	adrp	x9, _IPW_RESET_REG_MASTER_DISABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPW_RESET_REG_MASTER_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _IPW_RESET_REG_STOP_MASTER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IPW_RESET_REG_STOP_MASTER@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ipw_set_bit
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_FW
	mov	w0, #0
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_FW_INFO
	mov	x0, x19
	bl	_ipw_fw_dma_dump_command_block
	mov	x0, x19
	bl	_ipw_fw_dma_abort
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	">> :\n"

l_.str.1:                               ; @.str.1
	.asciz	"sram_desc.last_cb_index:0x%08X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Timeout\n"

	.comm	_IPW_RESET_REG,4,2              ; @IPW_RESET_REG
	.comm	_IPW_RESET_REG_MASTER_DISABLED,4,2 ; @IPW_RESET_REG_MASTER_DISABLED
	.comm	_IPW_RESET_REG_STOP_MASTER,4,2  ; @IPW_RESET_REG_STOP_MASTER
l_.str.3:                               ; @.str.3
	.asciz	"<< dmaWaitSync\n"

	.no_dead_strip	_ipw_fw_dma_wait
.subsections_via_symbols
