	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_handle_sta_tx_exc       ## -- Begin function hostap_handle_sta_tx_exc
	.p2align	4, 0x90
_hostap_handle_sta_tx_exc:              ## @hostap_handle_sta_tx_exc
	.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, %r14
	movq	(%rsi), %r13
	movq	8(%rsi), %rbx
	movq	(%rdi), %rdi
	callq	_spin_lock
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	movq	$0, 32(%rax)
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	_WLAN_RATE_DECREASE_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_15
## %bb.2:
	movl	8(%r15), %r12d
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.3:
	movq	(%r13), %rax
	cmpq	16(%r15), %rax
	jg	LBB0_15
## %bb.4:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	%ebx, 8(%r15)
	cmpl	%ebx, %r12d
	jne	LBB0_10
	jmp	LBB0_14
LBB0_16:
	movq	(%r14), %rdi
	callq	_spin_unlock
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_8:
	movl	8(%r15), %ebx
	cmpl	%ebx, %r12d
	je	LBB0_14
LBB0_10:
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.12:
	movslq	%ebx, %rcx
	leaq	l_switch.table.hostap_handle_sta_tx_exc(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	L_switch.table.hostap_handle_sta_tx_exc.2(%rip), %rdx
	movl	(%rdx,%rcx,4), %r8d
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
LBB0_13:
	movq	%rax, 16(%r15)
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movl	24(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_PDEBUG
LBB0_14:
	movq	$0, (%r15)
LBB0_15:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Could not find STA %pM for this TX error (@%lu)\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_WLAN_RATE_DECREASE_THRESHOLD,8,3 ## @WLAN_RATE_DECREASE_THRESHOLD
L_.str.1:                               ## @.str.1
	.asciz	"%s: STA %pM TX rate lowered to %d\n"

	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.hostap_handle_sta_tx_exc
l_switch.table.hostap_handle_sta_tx_exc:
	.quad	10                              ## 0xa
	.quad	20                              ## 0x14
	.quad	55                              ## 0x37
	.quad	110                             ## 0x6e

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.hostap_handle_sta_tx_exc.2
L_switch.table.hostap_handle_sta_tx_exc.2:
	.long	10                              ## 0xa
	.long	20                              ## 0x14
	.long	55                              ## 0x37
	.long	110                             ## 0x6e

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_handle_sta_tx_exc       ; -- Begin function hostap_handle_sta_tx_exc
	.p2align	2
_hostap_handle_sta_tx_exc:              ; @hostap_handle_sta_tx_exc
	.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, x0
	ldp	x21, x22, [x1]
	ldr	x0, [x0]
	bl	_spin_lock
	ldr	x0, [x19]
	ldr	w1, [x22]
	bl	_ap_get_sta
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	str	xzr, [x0, #32]
	ldr	x8, [x0]
	add	x8, x8, #1
	str	x8, [x0]
Lloh0:
	adrp	x9, _WLAN_RATE_DECREASE_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_RATE_DECREASE_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_15
; %bb.2:
	ldr	w22, [x20, #8]
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.4:
	mov	x21, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ap_tx_rate_ok
	cbz	x0, LBB0_5
; %bb.7:
	str	w21, [x20, #8]
	cmp	w22, w21
	b.ne	LBB0_10
	b	LBB0_14
LBB0_8:
	ldr	x0, [x19]
	bl	_spin_unlock
Lloh3:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	ldr	w3, [x22]
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	ldr	w4, [x8]
	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	_PDEBUG
LBB0_9:
	ldr	w21, [x20, #8]
	cmp	w22, w21
	b.eq	LBB0_14
LBB0_10:
	cmp	w21, #3
	b.hi	LBB0_12
; %bb.11:
Lloh11:
	adrp	x8, l_switch.table.hostap_handle_sta_tx_exc@PAGE
Lloh12:
	add	x8, x8, l_switch.table.hostap_handle_sta_tx_exc@PAGEOFF
	ldr	x8, [x8, w21, sxtw #3]
Lloh13:
	adrp	x9, l_switch.table.hostap_handle_sta_tx_exc.2@PAGE
Lloh14:
	add	x9, x9, l_switch.table.hostap_handle_sta_tx_exc.2@PAGEOFF
	ldr	w4, [x9, w21, sxtw #2]
	b	LBB0_13
LBB0_12:
	mov	x8, #0
	mov	w4, #0
LBB0_13:
	str	x8, [x20, #16]
Lloh15:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	ldr	w3, [x20, #24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
LBB0_14:
	str	xzr, [x20]
LBB0_15:
	ldr	x0, [x19]
	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	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Could not find STA %pM for this TX error (@%lu)\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_WLAN_RATE_DECREASE_THRESHOLD,8,3 ; @WLAN_RATE_DECREASE_THRESHOLD
l_.str.1:                               ; @.str.1
	.asciz	"%s: STA %pM TX rate lowered to %d\n"

	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.hostap_handle_sta_tx_exc
l_switch.table.hostap_handle_sta_tx_exc:
	.quad	10                              ; 0xa
	.quad	20                              ; 0x14
	.quad	55                              ; 0x37
	.quad	110                             ; 0x6e

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.hostap_handle_sta_tx_exc.2
l_switch.table.hostap_handle_sta_tx_exc.2:
	.long	10                              ; 0xa
	.long	20                              ; 0x14
	.long	55                              ; 0x37
	.long	110                             ; 0x6e

.subsections_via_symbols
