	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_queue_reset
_ipw_queue_reset:                       ## @ipw_queue_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ipw_tx_queue_free
	leaq	24(%r14), %rsi
	movq	_IPW_TX_CMD_QUEUE_READ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPW_TX_CMD_QUEUE_WRITE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IPW_TX_CMD_QUEUE_BD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IPW_TX_CMD_QUEUE_BD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_ipw_queue_tx_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_2:
	movq	16(%r14), %rsi
	movq	_IPW_TX_QUEUE_0_READ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPW_TX_QUEUE_0_WRITE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IPW_TX_QUEUE_0_BD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IPW_TX_QUEUE_0_BD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_ipw_queue_tx_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_4:
	movq	16(%r14), %rsi
	addq	$4, %rsi
	movq	_IPW_TX_QUEUE_1_READ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPW_TX_QUEUE_1_WRITE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IPW_TX_QUEUE_1_BD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IPW_TX_QUEUE_1_BD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_ipw_queue_tx_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	movq	16(%r14), %rsi
	addq	$8, %rsi
	movq	_IPW_TX_QUEUE_2_READ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPW_TX_QUEUE_2_WRITE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IPW_TX_QUEUE_2_BD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IPW_TX_QUEUE_2_BD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_ipw_queue_tx_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	movq	16(%r14), %rsi
	addq	$12, %rsi
	movq	_IPW_TX_QUEUE_3_READ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPW_TX_QUEUE_3_WRITE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IPW_TX_QUEUE_3_BD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IPW_TX_QUEUE_3_BD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_ipw_queue_tx_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
LBB0_10:
	callq	_IPW_ERROR
	movq	%r14, %rdi
	callq	_ipw_tx_queue_free
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_TX_CMD_QUEUE_READ_INDEX,4,2 ## @IPW_TX_CMD_QUEUE_READ_INDEX
	.comm	_IPW_TX_CMD_QUEUE_WRITE_INDEX,4,2 ## @IPW_TX_CMD_QUEUE_WRITE_INDEX
	.comm	_IPW_TX_CMD_QUEUE_BD_BASE,4,2   ## @IPW_TX_CMD_QUEUE_BD_BASE
	.comm	_IPW_TX_CMD_QUEUE_BD_SIZE,4,2   ## @IPW_TX_CMD_QUEUE_BD_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx Cmd queue init failed\n"

	.comm	_IPW_TX_QUEUE_0_READ_INDEX,4,2  ## @IPW_TX_QUEUE_0_READ_INDEX
	.comm	_IPW_TX_QUEUE_0_WRITE_INDEX,4,2 ## @IPW_TX_QUEUE_0_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_0_BD_BASE,4,2     ## @IPW_TX_QUEUE_0_BD_BASE
	.comm	_IPW_TX_QUEUE_0_BD_SIZE,4,2     ## @IPW_TX_QUEUE_0_BD_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Tx 0 queue init failed\n"

	.comm	_IPW_TX_QUEUE_1_READ_INDEX,4,2  ## @IPW_TX_QUEUE_1_READ_INDEX
	.comm	_IPW_TX_QUEUE_1_WRITE_INDEX,4,2 ## @IPW_TX_QUEUE_1_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_1_BD_BASE,4,2     ## @IPW_TX_QUEUE_1_BD_BASE
	.comm	_IPW_TX_QUEUE_1_BD_SIZE,4,2     ## @IPW_TX_QUEUE_1_BD_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Tx 1 queue init failed\n"

	.comm	_IPW_TX_QUEUE_2_READ_INDEX,4,2  ## @IPW_TX_QUEUE_2_READ_INDEX
	.comm	_IPW_TX_QUEUE_2_WRITE_INDEX,4,2 ## @IPW_TX_QUEUE_2_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_2_BD_BASE,4,2     ## @IPW_TX_QUEUE_2_BD_BASE
	.comm	_IPW_TX_QUEUE_2_BD_SIZE,4,2     ## @IPW_TX_QUEUE_2_BD_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Tx 2 queue init failed\n"

	.comm	_IPW_TX_QUEUE_3_READ_INDEX,4,2  ## @IPW_TX_QUEUE_3_READ_INDEX
	.comm	_IPW_TX_QUEUE_3_WRITE_INDEX,4,2 ## @IPW_TX_QUEUE_3_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_3_BD_BASE,4,2     ## @IPW_TX_QUEUE_3_BD_BASE
	.comm	_IPW_TX_QUEUE_3_BD_SIZE,4,2     ## @IPW_TX_QUEUE_3_BD_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Tx 3 queue init failed\n"

	.no_dead_strip	_ipw_queue_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_queue_reset
_ipw_queue_reset:                       ; @ipw_queue_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ipw_tx_queue_free
	add	x1, x19, #24
Lloh0:
	adrp	x8, _IPW_TX_CMD_QUEUE_READ_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPW_TX_CMD_QUEUE_READ_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _IPW_TX_CMD_QUEUE_WRITE_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPW_TX_CMD_QUEUE_WRITE_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _IPW_TX_CMD_QUEUE_BD_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPW_TX_CMD_QUEUE_BD_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _IPW_TX_CMD_QUEUE_BD_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPW_TX_CMD_QUEUE_BD_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_ipw_queue_tx_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_2:
	ldr	x1, [x19, #16]
Lloh14:
	adrp	x8, _IPW_TX_QUEUE_0_READ_INDEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPW_TX_QUEUE_0_READ_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _IPW_TX_QUEUE_0_WRITE_INDEX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPW_TX_QUEUE_0_WRITE_INDEX@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
Lloh20:
	adrp	x8, _IPW_TX_QUEUE_0_BD_BASE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPW_TX_QUEUE_0_BD_BASE@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
Lloh23:
	adrp	x8, _IPW_TX_QUEUE_0_BD_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IPW_TX_QUEUE_0_BD_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_ipw_queue_tx_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	x8, [x19, #16]
	add	x1, x8, #4
Lloh28:
	adrp	x8, _IPW_TX_QUEUE_1_READ_INDEX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IPW_TX_QUEUE_1_READ_INDEX@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _IPW_TX_QUEUE_1_WRITE_INDEX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IPW_TX_QUEUE_1_WRITE_INDEX@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
Lloh34:
	adrp	x8, _IPW_TX_QUEUE_1_BD_BASE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IPW_TX_QUEUE_1_BD_BASE@GOTPAGEOFF]
Lloh36:
	ldr	w5, [x8]
Lloh37:
	adrp	x8, _IPW_TX_QUEUE_1_BD_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IPW_TX_QUEUE_1_BD_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_ipw_queue_tx_init
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #16]
	add	x1, x8, #8
Lloh42:
	adrp	x8, _IPW_TX_QUEUE_2_READ_INDEX@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IPW_TX_QUEUE_2_READ_INDEX@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x8, _IPW_TX_QUEUE_2_WRITE_INDEX@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IPW_TX_QUEUE_2_WRITE_INDEX@GOTPAGEOFF]
Lloh47:
	ldr	w4, [x8]
Lloh48:
	adrp	x8, _IPW_TX_QUEUE_2_BD_BASE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IPW_TX_QUEUE_2_BD_BASE@GOTPAGEOFF]
Lloh50:
	ldr	w5, [x8]
Lloh51:
	adrp	x8, _IPW_TX_QUEUE_2_BD_SIZE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IPW_TX_QUEUE_2_BD_SIZE@GOTPAGEOFF]
Lloh53:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_ipw_queue_tx_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh54:
	adrp	x0, l_.str.3@PAGE
Lloh55:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19, #16]
	add	x1, x8, #12
Lloh56:
	adrp	x8, _IPW_TX_QUEUE_3_READ_INDEX@GOTPAGE
Lloh57:
	ldr	x8, [x8, _IPW_TX_QUEUE_3_READ_INDEX@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
Lloh59:
	adrp	x8, _IPW_TX_QUEUE_3_WRITE_INDEX@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IPW_TX_QUEUE_3_WRITE_INDEX@GOTPAGEOFF]
Lloh61:
	ldr	w4, [x8]
Lloh62:
	adrp	x8, _IPW_TX_QUEUE_3_BD_BASE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IPW_TX_QUEUE_3_BD_BASE@GOTPAGEOFF]
Lloh64:
	ldr	w5, [x8]
Lloh65:
	adrp	x8, _IPW_TX_QUEUE_3_BD_SIZE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _IPW_TX_QUEUE_3_BD_SIZE@GOTPAGEOFF]
Lloh67:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_ipw_queue_tx_init
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.9:
Lloh68:
	adrp	x0, l_.str.4@PAGE
Lloh69:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	_IPW_ERROR
	mov	x0, x19
	bl	_ipw_tx_queue_free
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	stp	xzr, xzr, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_TX_CMD_QUEUE_READ_INDEX,4,2 ; @IPW_TX_CMD_QUEUE_READ_INDEX
	.comm	_IPW_TX_CMD_QUEUE_WRITE_INDEX,4,2 ; @IPW_TX_CMD_QUEUE_WRITE_INDEX
	.comm	_IPW_TX_CMD_QUEUE_BD_BASE,4,2   ; @IPW_TX_CMD_QUEUE_BD_BASE
	.comm	_IPW_TX_CMD_QUEUE_BD_SIZE,4,2   ; @IPW_TX_CMD_QUEUE_BD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx Cmd queue init failed\n"

	.comm	_IPW_TX_QUEUE_0_READ_INDEX,4,2  ; @IPW_TX_QUEUE_0_READ_INDEX
	.comm	_IPW_TX_QUEUE_0_WRITE_INDEX,4,2 ; @IPW_TX_QUEUE_0_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_0_BD_BASE,4,2     ; @IPW_TX_QUEUE_0_BD_BASE
	.comm	_IPW_TX_QUEUE_0_BD_SIZE,4,2     ; @IPW_TX_QUEUE_0_BD_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Tx 0 queue init failed\n"

	.comm	_IPW_TX_QUEUE_1_READ_INDEX,4,2  ; @IPW_TX_QUEUE_1_READ_INDEX
	.comm	_IPW_TX_QUEUE_1_WRITE_INDEX,4,2 ; @IPW_TX_QUEUE_1_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_1_BD_BASE,4,2     ; @IPW_TX_QUEUE_1_BD_BASE
	.comm	_IPW_TX_QUEUE_1_BD_SIZE,4,2     ; @IPW_TX_QUEUE_1_BD_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Tx 1 queue init failed\n"

	.comm	_IPW_TX_QUEUE_2_READ_INDEX,4,2  ; @IPW_TX_QUEUE_2_READ_INDEX
	.comm	_IPW_TX_QUEUE_2_WRITE_INDEX,4,2 ; @IPW_TX_QUEUE_2_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_2_BD_BASE,4,2     ; @IPW_TX_QUEUE_2_BD_BASE
	.comm	_IPW_TX_QUEUE_2_BD_SIZE,4,2     ; @IPW_TX_QUEUE_2_BD_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Tx 2 queue init failed\n"

	.comm	_IPW_TX_QUEUE_3_READ_INDEX,4,2  ; @IPW_TX_QUEUE_3_READ_INDEX
	.comm	_IPW_TX_QUEUE_3_WRITE_INDEX,4,2 ; @IPW_TX_QUEUE_3_WRITE_INDEX
	.comm	_IPW_TX_QUEUE_3_BD_BASE,4,2     ; @IPW_TX_QUEUE_3_BD_BASE
	.comm	_IPW_TX_QUEUE_3_BD_SIZE,4,2     ; @IPW_TX_QUEUE_3_BD_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Tx 3 queue init failed\n"

	.no_dead_strip	_ipw_queue_reset
.subsections_via_symbols
