	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd_mac_tx_status
_zd_mac_tx_status:                      ## @zd_mac_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
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ieee80211_tx_info_clear_status
	testq	%rbx, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	addl	(%rbx), %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r13)
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r15d
LBB0_3:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
LBB0_5:
	movq	8(%r13), %rax
	movslq	(%rax), %r14
	xorl	%ebx, %ebx
	movl	$0, %edi
	testq	%r14, %r14
	js	LBB0_7
## %bb.6:
	movq	_zd_retry_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setl	%dil
LBB0_7:
	callq	_ZD_ASSERT
	movq	_zd_retry_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.8:
	movq	%r14, %rax
	shlq	$4, %rax
	xorl	%ebx, %ebx
	cmpl	(%r12,%rax), %r15d
	setle	%bl
LBB0_9:
	movl	%ebx, %edi
	callq	_ZD_ASSERT
	shlq	$4, %r14
	movq	8(%r12,%r14), %r9
	movl	(%r9), %ecx
	movq	8(%r13), %rax
	movl	%ecx, (%rax)
	movl	$1, 4(%rax)
	movq	_IEEE80211_TX_MAX_RATES@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	movl	$1, %ecx
	cmpl	$3, %edi
	jl	LBB0_10
## %bb.13:
	cmpl	$2, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jl	LBB0_11
## %bb.14:
	movl	%r15d, %edx
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %edi
	movl	%edi, (%rax,%rcx,8)
	movl	$1, 4(%rax,%rcx,8)
	incq	%rcx
	movslq	(%r8), %rdi
	leaq	-1(%rdi), %rbx
	cmpq	%rbx, %rcx
	jge	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rdx, %rcx
	jb	LBB0_15
	jmp	LBB0_11
LBB0_10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_11:
	cmpl	%edi, %ecx
	setl	%bl
	jge	LBB0_12
## %bb.17:
	cmpl	%r15d, %ecx
	jge	LBB0_18
## %bb.19:
	leal	-1(%r15), %edx
	movslq	%edx, %r10
	movl	%ecx, %edx
	movslq	%r15d, %r11
	incq	%rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%r10,4), %ebx
	movl	%ebx, -8(%rax,%rdx,8)
	movl	$1, -4(%rax,%rdx,8)
	incl	%ecx
	cmpl	%ecx, (%r8)
	setg	%bl
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	1(%rdx), %rdi
	cmpq	%r11, %rdx
	movq	%rdi, %rdx
	jl	LBB0_20
	jmp	LBB0_22
LBB0_12:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	testb	%bl, %bl
	je	LBB0_24
LBB0_23:
	movl	%ecx, %ecx
	movl	$-1, (%rax,%rcx,8)
LBB0_24:
	movq	%r15, %rdi
	callq	_zd_check_signal
	movl	%eax, (%r13)
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_tx_status_irqsafe    ## TAILCALL
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testb	%bl, %bl
	jne	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_zd_retry_rates,8,3             ## @zd_retry_rates
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ## @IEEE80211_TX_MAX_RATES
	.no_dead_strip	_zd_mac_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd_mac_tx_status
_zd_mac_tx_status:                      ; @zd_mac_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	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	bl	_ieee80211_tx_info_clear_status
	cbz	x23, LBB0_3
; %bb.1:
	ldp	w9, w8, [x23]
	cmp	w8, #0
	cinc	w23, w9, eq
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	bic	w8, w9, w8
	b	LBB0_5
LBB0_3:
	mov	w23, #1
LBB0_4:
Lloh3:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [x22, #16]
	ldr	x8, [x22, #8]
	ldrsw	x25, [x8]
Lloh6:
	adrp	x24, _zd_retry_rates@GOTPAGE
Lloh7:
	ldr	x24, [x24, _zd_retry_rates@GOTPAGEOFF]
	tbnz	w25, #31, LBB0_7
; %bb.6:
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w25, w0
	cset	w0, lt
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_ZD_ASSERT
	ldr	x26, [x24]
	subs	w24, w23, #1
	b.lt	LBB0_10
; %bb.9:
	lsl	x8, x25, #4
	ldr	w8, [x26, x8]
	cmp	w23, w8
	cset	w0, le
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	bl	_ZD_ASSERT
	add	x8, x26, x25, lsl #4
	ldr	x9, [x8, #8]
	ldr	w10, [x9]
	ldr	x8, [x22, #8]
	mov	w11, #1
	stp	w10, w11, [x8]
Lloh8:
	adrp	x10, _IEEE80211_TX_MAX_RATES@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IEEE80211_TX_MAX_RATES@GOTPAGEOFF]
	ldr	w12, [x10]
	cmp	w12, #3
	ccmp	w23, #2, #8, ge
	b.lt	LBB0_15
; %bb.12:
	mov	w13, w23
	add	x15, x8, #12
	mov	w14, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x14, lsl #2]
	stp	w12, w11, [x15, #-4]
	add	x14, x14, #1
	ldrsw	x12, [x10]
	sub	x16, x12, #1
	add	x15, x15, #8
	cmp	x14, x16
	ccmp	x14, x13, #2, lt
	b.lo	LBB0_13
; %bb.14:
	mov	x11, x14
LBB0_15:
	cmp	w11, w12
	cset	w16, lt
	ccmp	w11, w23, #0, lt
	b.ge	LBB0_19
; %bb.16:
	mov	x12, #0
	sxtw	x14, w24
	mov	w13, w11
	sxtw	x15, w23
	add	x11, x8, w11, uxtw #3
	add	x11, x11, #4
	mov	w17, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x9, x14, lsl #2]
	stp	w16, w17, [x11, #-4]
	add	x16, x13, x12
	add	x0, x16, #1
	ldr	w16, [x10]
	cmp	w16, w0
	cset	w16, gt
	add	x11, x11, #8
	add	x12, x12, #1
	ccmp	x0, x15, #0, gt
	b.lt	LBB0_17
; %bb.18:
	add	w11, w13, w12
LBB0_19:
	cbz	w16, LBB0_21
; %bb.20:
	mov	w9, w11
	lsl	x9, x9, #3
	mov	w10, #-1
	str	w10, [x8, x9]
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	bl	_zd_check_signal
	str	w0, [x22]
	mov	x0, x20
	mov	x1, x19
	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
	b	_ieee80211_tx_status_irqsafe
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_zd_retry_rates,8,3             ; @zd_retry_rates
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ; @IEEE80211_TX_MAX_RATES
	.no_dead_strip	_zd_mac_tx_status
.subsections_via_symbols
