	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function airo_handle_tx
_airo_handle_tx:                        ## @airo_handle_tx
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_EV_TXEXC@GOTPCREL(%rip), %r13
	testl	%r14d, (%r13)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_get_tx_error
LBB0_3:
	leaq	28(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%r12), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_FLAG_PENDING_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rdi
	callq	_netif_wake_queue
	jmp	LBB0_6
LBB0_7:
	movq	_TXCOMPLFID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IN4500
	movq	_MAX_FIDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.8:
	movq	(%r12), %r9
	leaq	-1(%r8), %rsi
	movl	%r8d, %r10d
	andl	$3, %r10d
	cmpq	$3, %rsi
	jae	LBB0_10
## %bb.9:
	movl	$-1, %ebx
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rdi
	callq	_mpi_send_packet
LBB0_6:
	movq	_EVACK@GOTPCREL(%rip), %rax
	movq	_EV_TX@GOTPCREL(%rip), %rcx
	movq	_EV_TXCPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	orl	(%r13), %edx
	andl	%r14d, %edx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OUT4500                        ## TAILCALL
LBB0_10:
	andl	$-4, %r8d
	movl	$-1, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%r9,%rsi,4), %edi
	cmpl	%eax, %edi
	cmovel	%esi, %ebx
	movzwl	4(%r9,%rsi,4), %edi
	leal	1(%rsi), %ecx
	cmpl	%eax, %edi
	cmovnel	%ebx, %ecx
	movzwl	8(%r9,%rsi,4), %edi
	leal	2(%rsi), %edx
	cmpl	%eax, %edi
	cmovnel	%ecx, %edx
	movzwl	12(%r9,%rsi,4), %ecx
	leal	3(%rsi), %ebx
	cmpl	%eax, %ecx
	cmovnel	%edx, %ebx
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jne	LBB0_11
LBB0_12:
	testq	%r10, %r10
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%r9,%rsi,4), %ecx
	cmpl	%eax, %ecx
	cmovel	%esi, %ebx
	incq	%rsi
	decq	%r10
	jne	LBB0_13
LBB0_14:
	cmpl	$-1, %ebx
	je	LBB0_23
## %bb.15:
	movq	_EV_TXEXC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	testl	%r14d, %edx
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_tx_error
	movl	(%r13), %edx
LBB0_17:
	movq	_EVACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EV_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	andl	%r14d, %edx
	movq	%r12, %rdi
	callq	_OUT4500
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	movzwl	(%rax,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	_MAX_FIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jge	LBB0_21
## %bb.18:
	movq	_FLAG_PENDING_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_24
## %bb.19:
	movq	8(%r12), %rdi
	jmp	LBB0_20
LBB0_23:
	movq	_EVACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EV_TX@GOTPCREL(%rip), %rax
	movq	_EV_TXCPY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_EV_TXEXC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	andl	%r14d, %edx
	movq	%r12, %rdi
	callq	_OUT4500
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_airo_print_err                 ## TAILCALL
LBB0_21:
	movq	_FLAG_PENDING_XMIT11@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_22
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	16(%r12), %rdi
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_MPI,4,2                   ## @FLAG_MPI
	.comm	_EV_TXEXC,4,2                   ## @EV_TXEXC
	.comm	_FLAG_PENDING_XMIT,4,2          ## @FLAG_PENDING_XMIT
	.comm	_EVACK,4,2                      ## @EVACK
	.comm	_EV_TX,4,2                      ## @EV_TX
	.comm	_EV_TXCPY,4,2                   ## @EV_TXCPY
	.comm	_TXCOMPLFID,4,2                 ## @TXCOMPLFID
	.comm	_MAX_FIDS,4,2                   ## @MAX_FIDS
	.comm	_FLAG_PENDING_XMIT11,4,2        ## @FLAG_PENDING_XMIT11
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unallocated FID was used to xmit"

	.no_dead_strip	_airo_handle_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function airo_handle_tx
_airo_handle_tx:                        ; @airo_handle_tx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FLAG_MPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_MPI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #24
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x23, _EV_TXEXC@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EV_TXEXC@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #-1
	bl	_get_tx_error
LBB0_3:
	add	x22, x19, #28
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x19, #32
	bl	_skb_queue_empty
	cbz	w0, LBB0_14
; %bb.4:
Lloh5:
	adrp	x8, _FLAG_PENDING_XMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_PENDING_XMIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	bl	_netif_wake_queue
	b	LBB0_15
LBB0_5:
Lloh8:
	adrp	x8, _TXCOMPLFID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TXCOMPLFID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IN4500
Lloh11:
	adrp	x23, _MAX_FIDS@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MAX_FIDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x9, #0
	ldr	x10, [x19]
	mov	w22, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldrh	w11, [x10, x11]
	cmp	w11, w0
	csel	w22, w9, w22, eq
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.8:
	cmn	w22, #1
	b.eq	LBB0_16
; %bb.9:
Lloh13:
	adrp	x24, _EV_TXEXC@GOTPAGE
Lloh14:
	ldr	x24, [x24, _EV_TXEXC@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	bl	_get_tx_error
	ldr	w8, [x24]
LBB0_11:
Lloh15:
	adrp	x9, _EVACK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EVACK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x9, _EV_TX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EV_TX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w2, w8, w20
	mov	x0, x19
	bl	_OUT4500
	ldr	x8, [x19]
	sbfiz	x9, x22, #2, #32
	ldrh	w10, [x8, x9]
	str	w10, [x8, x9]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w22, w8, asr #1
	b.ge	LBB0_17
; %bb.12:
Lloh21:
	adrp	x8, _FLAG_PENDING_XMIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FLAG_PENDING_XMIT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_18
; %bb.13:
	ldr	x0, [x19, #8]
	b	LBB0_20
LBB0_14:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	bl	_mpi_send_packet
LBB0_15:
Lloh24:
	adrp	x8, _EVACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EVACK@GOTPAGEOFF]
Lloh26:
	adrp	x9, _EV_TX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EV_TX@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	ldr	w8, [x9]
Lloh30:
	adrp	x9, _EV_TXCPY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EV_TXCPY@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	and	w2, w8, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_OUT4500
LBB0_16:
Lloh33:
	adrp	x8, _EVACK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EVACK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _EV_TX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EV_TX@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _EV_TXCPY@GOTPAGE
Lloh40:
	ldr	x9, [x9, _EV_TXCPY@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _EV_TXEXC@GOTPAGE
Lloh43:
	ldr	x9, [x9, _EV_TXEXC@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w2, w8, w20
	mov	x0, x19
	bl	_OUT4500
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_airo_print_err
LBB0_17:
Lloh47:
	adrp	x8, _FLAG_PENDING_XMIT11@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FLAG_PENDING_XMIT11@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_19
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	x0, [x19, #16]
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_MPI,4,2                   ; @FLAG_MPI
	.comm	_EV_TXEXC,4,2                   ; @EV_TXEXC
	.comm	_FLAG_PENDING_XMIT,4,2          ; @FLAG_PENDING_XMIT
	.comm	_EVACK,4,2                      ; @EVACK
	.comm	_EV_TX,4,2                      ; @EV_TX
	.comm	_EV_TXCPY,4,2                   ; @EV_TXCPY
	.comm	_TXCOMPLFID,4,2                 ; @TXCOMPLFID
	.comm	_MAX_FIDS,4,2                   ; @MAX_FIDS
	.comm	_FLAG_PENDING_XMIT11,4,2        ; @FLAG_PENDING_XMIT11
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unallocated FID was used to xmit"

	.no_dead_strip	_airo_handle_tx
.subsections_via_symbols
