	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl3501_free_tx_buffer
_wl3501_free_tx_buffer:                 ## @wl3501_free_tx_buffer
	.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, %rbx
	movq	%rsi, -24(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_wl3501_set_to_wla
	movq	-24(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movq	%rsi, 16(%rbx)
	testq	%rsi, %rsi
	je	LBB0_6
LBB0_4:
	leaq	-32(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_wl3501_get_from_wla
	movq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	movq	-32(%rbp), %rsi
	movq	%rsi, -24(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wl3501_free_tx_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl3501_free_tx_buffer
_wl3501_free_tx_buffer:                 ; @wl3501_free_tx_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x1, [x19]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_wl3501_set_to_wla
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_wl3501_get_from_wla
	ldp	x1, x8, [sp]
	str	x8, [x19]
	str	x1, [sp, #8]
	cbnz	x1, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	str	x1, [x19, #16]
	cbnz	x1, LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wl3501_free_tx_buffer
.subsections_via_symbols
