	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_free_sta                ## -- Begin function wl1271_free_sta
	.p2align	4, 0x90
_wl1271_free_sta:                       ## @wl1271_free_sta
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, -32(%rbp)
	movl	(%rsi), %esi
	movq	%rdx, %rdi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_clear_bit
	leaq	20(%r15), %rsi
	movq	%rbx, %rdi
	callq	___clear_bit
	leaq	16(%r15), %rsi
	movq	%rbx, %rdi
	callq	___clear_bit
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_wlcore_save_freed_pkts_addr
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wl12xx_free_link
	decq	(%r15)
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_wl12xx_rearm_tx_watchdog_locked
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_free_sta                ; -- Begin function wl1271_free_sta
	.p2align	2
_wl1271_free_sta:                       ; @wl1271_free_sta
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #8]
	ldr	w1, [x1]
	mov	x0, x2
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_clear_bit
	add	x1, x19, #20
	mov	x0, x21
	bl	___clear_bit
	add	x1, x19, #16
	mov	x0, x21
	bl	___clear_bit
	ldr	x8, [x19, #8]
	ldr	w3, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wlcore_save_freed_pkts_addr
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_wl12xx_free_link
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_wl12xx_rearm_tx_watchdog_locked
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
