	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_tx_regulate_link
_wl1271_tx_regulate_link:               ## @wl1271_tx_regulate_link
	.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	(%rsi), %rsi
	movq	%rdx, %rdi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	16(%r15), %rsi
	movq	%rbx, %rdi
	callq	_test_bit
	movl	4(%r15), %ecx
	addl	%ecx, %ecx
	incl	%ecx
	cmpl	%ecx, (%r15)
	jle	LBB0_4
## %bb.2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_WL1271_PS_STA_MAX_PACKETS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl12xx_ps_link_start           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_PS_STA_MAX_PACKETS,8,3  ## @WL1271_PS_STA_MAX_PACKETS
	.no_dead_strip	_wl1271_tx_regulate_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_tx_regulate_link
_wl1271_tx_regulate_link:               ; @wl1271_tx_regulate_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x1, [x1]
	mov	x0, x2
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.1:
	add	x1, x21, #16
	mov	x0, x19
	bl	_test_bit
	ldp	w8, w9, [x21]
	mov	w10, #1
	bfi	w10, w9, #1, #31
	cmp	w8, w10
	ccmp	w0, #0, #4, gt
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
Lloh0:
	adrp	x9, _WL1271_PS_STA_MAX_PACKETS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1271_PS_STA_MAX_PACKETS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wl12xx_ps_link_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_PS_STA_MAX_PACKETS,8,3  ; @WL1271_PS_STA_MAX_PACKETS
	.no_dead_strip	_wl1271_tx_regulate_link
.subsections_via_symbols
