	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_save_freed_pkts
_wlcore_save_freed_pkts:                ## @wlcore_save_freed_pkts
	.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, %rax
	movq	_WL1271_TX_SQN_POST_RECOVERY_PADDING@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rbx
	movq	(%rcx), %r14
	movq	8(%rax), %rcx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, (%r14)
	movq	(%rsi), %r15
	movq	_KEY_GEM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	_WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	_WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%r13, %r15
	cmovel	%r12d, %ebx
	addl	%ebx, (%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_TX_SQN_POST_RECOVERY_PADDING,8,3 ## @WL1271_TX_SQN_POST_RECOVERY_PADDING
	.comm	_KEY_GEM,8,3                    ## @KEY_GEM
	.comm	_WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM,8,3 ## @WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ## @WL1271_FLAG_RECOVERY_IN_PROGRESS
	.no_dead_strip	_wlcore_save_freed_pkts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_save_freed_pkts
_wlcore_save_freed_pkts:                ; @wlcore_save_freed_pkts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x8, x0
Lloh0:
	adrp	x9, _WL1271_TX_SQN_POST_RECOVERY_PADDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1271_TX_SQN_POST_RECOVERY_PADDING@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x9]
	ldr	x9, [x0, #8]
	ldr	w9, [x9, x2, lsl #2]
	ldr	x20, [x3]
	str	w9, [x20]
	ldr	x21, [x1]
Lloh3:
	adrp	x9, _KEY_GEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEY_GEM@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x9]
Lloh6:
	adrp	x9, _WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x9]
Lloh9:
	adrp	x9, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	mov	x1, x8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	x21, x22
	csel	w9, w23, w19, eq
	add	w8, w8, w9
	str	w8, [x20]
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_TX_SQN_POST_RECOVERY_PADDING,8,3 ; @WL1271_TX_SQN_POST_RECOVERY_PADDING
	.comm	_KEY_GEM,8,3                    ; @KEY_GEM
	.comm	_WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM,8,3 ; @WL1271_TX_SQN_POST_RECOVERY_PADDING_GEM
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ; @WL1271_FLAG_RECOVERY_IN_PROGRESS
	.no_dead_strip	_wlcore_save_freed_pkts
.subsections_via_symbols
