	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_prepare_restart         ## -- Begin function iwlagn_prepare_restart
	.p2align	4, 0x90
_iwlagn_prepare_restart:                ## @iwlagn_prepare_restart
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$64, %rdi
	callq	_lockdep_assert_held
	movq	$0, 56(%r15)
	movq	(%r15), %rbx
	movq	48(%r15), %r14
	movups	32(%r15), %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%r15, %rdi
	callq	_iwl_down
	movq	%rbx, (%r15)
	movq	%r14, 48(%r15)
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 32(%r15)
	movq	_IWLAGN_FIRST_AMPDU_QUEUE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_IWL_MAX_HW_QUEUES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.1:
	movq	24(%r15), %rdx
	movq	_IWL_INVALID_MAC80211_QUEUE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_2
LBB0_3:
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	8(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWLAGN_FIRST_AMPDU_QUEUE,4,2   ## @IWLAGN_FIRST_AMPDU_QUEUE
	.comm	_IWL_MAX_HW_QUEUES,4,2          ## @IWL_MAX_HW_QUEUES
	.comm	_IWL_INVALID_MAC80211_QUEUE,4,2 ## @IWL_INVALID_MAC80211_QUEUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_prepare_restart         ; -- Begin function iwlagn_prepare_restart
	.p2align	2
_iwlagn_prepare_restart:                ; @iwlagn_prepare_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	add	x0, x0, #64
	bl	_lockdep_assert_held
	str	xzr, [x19, #56]
	ldr	x20, [x19, #48]
	ldr	q0, [x19, #32]
	str	q0, [sp]                        ; 16-byte Folded Spill
	ldr	d8, [x19]
	mov	x0, x19
	bl	_iwl_down
	str	x20, [x19, #48]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x19, #32]
Lloh0:
	adrp	x8, _IWLAGN_FIRST_AMPDU_QUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWLAGN_FIRST_AMPDU_QUEUE@GOTPAGEOFF]
	str	d8, [x19]
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x20, _IWL_MAX_HW_QUEUES@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IWL_MAX_HW_QUEUES@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	ldr	x10, [x19, #24]
Lloh5:
	adrp	x11, _IWL_INVALID_MAC80211_QUEUE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IWL_INVALID_MAC80211_QUEUE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11]
	str	w9, [x10, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_3:
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	mov	w1, #0
	bl	_atomic_set
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_memset
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IWLAGN_FIRST_AMPDU_QUEUE,4,2   ; @IWLAGN_FIRST_AMPDU_QUEUE
	.comm	_IWL_MAX_HW_QUEUES,4,2          ; @IWL_MAX_HW_QUEUES
	.comm	_IWL_INVALID_MAC80211_QUEUE,4,2 ; @IWL_INVALID_MAC80211_QUEUE
.subsections_via_symbols
