	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_fill_tx_status
_rt2x00lib_fill_tx_status:              ## @rt2x00lib_fill_tx_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %r14d
	movq	_TXDONE_FALLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rcx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %r15d
	incl	%r15d
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r15d
LBB0_3:
	leaq	8(%r13), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	$0, 24(%r13)
	movq	_IEEE80211_TX_MAX_RATES@GOTPCREL(%rip), %r9
	movl	(%r9), %esi
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.4:
	testl	%esi, %esi
	jle	LBB0_10
## %bb.5:
	movq	16(%r13), %r8
	movl	%r15d, %edx
	leaq	8(%r8), %rdi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	%r10, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -8(%rdi)
	movl	%r14d, -4(%rdi)
	subq	$1, %rcx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%rdi)
	incq	%rbx
	movl	(%r9), %esi
	cmpq	%rdx, %rbx
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$12, %rdi
	movslq	%esi, %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_10
LBB0_7:
	subl	%r10d, %r15d
	leaq	(%r10,%r10,2), %rcx
	movl	%r15d, 8(%r8,%rcx,4)
	leal	1(%r10), %ebx
	movl	(%r9), %esi
LBB0_10:
	decl	%esi
	cmpl	%esi, %ebx
	jge	LBB0_12
## %bb.11:
	movq	16(%r13), %rax
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	$-1, (%rax,%rcx,4)
LBB0_12:
	movq	_TXDONE_NO_ACK_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	movl	(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	jmp	LBB0_15
LBB0_13:
	movl	(%r13), %eax
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_19
## %bb.16:
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
LBB0_19:
	movq	_TXDONE_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %eax
	jmp	LBB0_22
LBB0_21:
	movl	(%r13), %eax
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_23
LBB0_22:
	movq	_IEEE80211_TX_STAT_AMPDU@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r13)
	movl	$1, 8(%r13)
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, 12(%r13)
LBB0_23:
	movq	_IEEE80211_TX_RC_USE_RTS_CTS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx,%rax,4)
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXDONE_FALLBACK,4,2            ## @TXDONE_FALLBACK
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ## @IEEE80211_TX_MAX_RATES
	.comm	_TXDONE_NO_ACK_REQ,4,2          ## @TXDONE_NO_ACK_REQ
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_TXDONE_AMPDU,4,2               ## @TXDONE_AMPDU
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ## @IEEE80211_TX_STAT_AMPDU
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ## @IEEE80211_TX_RC_USE_RTS_CTS
	.no_dead_strip	_rt2x00lib_fill_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_fill_tx_status
_rt2x00lib_fill_tx_status:              ; @rt2x00lib_fill_tx_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x23, x3
	mov	x21, x1
	mov	x19, x0
	ldp	w25, w24, [x2]
Lloh0:
	adrp	x8, _TXDONE_FALLBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXDONE_FALLBACK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x3, #4
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	add	w23, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w23, #1
LBB0_3:
	add	x0, x21, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w8, #0
	str	xzr, [x21, #24]
Lloh3:
	adrp	x9, _IEEE80211_TX_MAX_RATES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_MAX_RATES@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.4:
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x8, #0
	ldr	x10, [x21, #16]
	mov	w12, w23
	add	x13, x10, #8
	mov	w14, #1
	mov	x15, x25
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stp	w15, w24, [x13, #-8]
	cbz	x15, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w14, [x13], #12
	add	x8, x8, #1
	ldr	w11, [x9]
	cmp	x8, x12
	b.hs	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x16, w11
	sub	x15, x15, #1
	cmp	x8, x16
	b.lt	LBB0_6
	b	LBB0_10
LBB0_9:
	sub	w8, w23, w25
	mov	w11, #12
	madd	x10, x25, x11, x10
	str	w8, [x10, #8]
	add	w8, w25, #1
	ldr	w11, [x9]
LBB0_10:
	sub	w9, w11, #1
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.11:
	ldr	x9, [x21, #16]
	mov	w10, #12
	smull	x8, w8, w10
	mov	w10, #-1
	str	w10, [x9, x8]
LBB0_12:
Lloh5:
	adrp	x8, _TXDONE_NO_ACK_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXDONE_NO_ACK_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
Lloh8:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w8, [x9]
	ldr	w10, [x21]
	orr	w8, w10, w8
	str	w8, [x21]
	b	LBB0_15
LBB0_14:
	ldr	w8, [x21]
LBB0_15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.16:
	cbz	w20, LBB0_18
; %bb.17:
Lloh10:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_19
LBB0_18:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_19:
Lloh13:
	adrp	x8, _TXDONE_AMPDU@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TXDONE_AMPDU@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.20:
Lloh16:
	adrp	x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x8]
	ldr	w8, [x21]
	b	LBB0_22
LBB0_21:
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_22:
Lloh22:
	adrp	x10, _IEEE80211_TX_STAT_AMPDU@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IEEE80211_TX_STAT_AMPDU@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x21]
	mov	w8, #1
	cmp	w20, #0
	cset	w9, ne
	stp	w8, w9, [x21, #8]
LBB0_23:
Lloh25:
	adrp	x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IEEE80211_TX_RC_USE_RTS_CTS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_25
; %bb.24:
	cmp	w20, #0
	cset	w8, ne
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	add	w9, w9, #1
	str	w9, [x19, x8]
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TXDONE_FALLBACK,4,2            ; @TXDONE_FALLBACK
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ; @IEEE80211_TX_MAX_RATES
	.comm	_TXDONE_NO_ACK_REQ,4,2          ; @TXDONE_NO_ACK_REQ
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_TXDONE_AMPDU,4,2               ; @TXDONE_AMPDU
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ; @IEEE80211_TX_STAT_AMPDU
	.comm	_IEEE80211_TX_RC_USE_RTS_CTS,4,2 ; @IEEE80211_TX_RC_USE_RTS_CTS
	.no_dead_strip	_rt2x00lib_fill_tx_status
.subsections_via_symbols
