	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_rxdone               ## -- Begin function rt2x00lib_rxdone
	.p2align	4, 0x90
_rt2x00lib_rxdone:                      ## @rt2x00lib_rxdone
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	8(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	_DEVICE_STATE_ENABLED_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	_ENTRY_DATA_IO_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_21
## %bb.3:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rt2x00queue_alloc_rxskb
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_rt2x00queue_unmap_skb
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	movl	-120(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	16(%r13), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	seta	%dil
	jmp	LBB0_7
LBB0_5:
	movl	$1, %edi
LBB0_7:
	callq	_unlikely
	testq	%rax, %rax
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rbx
	je	LBB0_9
## %bb.8:
	movl	-120(%rbp), %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rt2x00_err
	movq	8(%r13), %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_20
LBB0_9:
	movq	8(%r13), %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movl	-116(%rbp), %ecx
	movq	_RXDONE_CRYPTO_IV@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.10:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, -112(%rbp)
	je	LBB0_12
## %bb.11:
	movq	8(%r13), %rdi
	leaq	-120(%rbp), %rdx
	movl	%eax, %esi
	callq	_rt2x00crypto_rx_insert_iv
	jmp	LBB0_16
LBB0_12:
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	cmpl	%eax, -120(%rbp)
	jbe	LBB0_16
## %bb.14:
	movq	_RXDONE_L2PAD@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_16
## %bb.15:
	movq	8(%r13), %rdi
	movl	%eax, %esi
	callq	_rt2x00queue_remove_l2pad
LBB0_16:
	movq	8(%r13), %rdi
	movl	-120(%rbp), %esi
	callq	_skb_trim
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rt2x00lib_rxdone_read_signal
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rax
	movq	_RATE_MODE_HT_MIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	_RATE_MODE_HT_GREENFIELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_18:
	movq	_RX_ENC_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
LBB0_19:
	movq	8(%r13), %rsi
	leaq	-120(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_rt2x00lib_rxdone_check_ps
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_rt2x00lib_rxdone_check_ba
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_rt2x00link_update_stats
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rt2x00debug_update_crypto
	movq	_DUMP_FRAME_RXDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_rt2x00debug_dump_frame
	movq	8(%r13), %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	-56(%rbp), %eax
	movl	%eax, 68(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 60(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 56(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movl	-72(%rbp), %eax
	movl	%eax, 52(%rbx)
	movl	-112(%rbp), %eax
	movl	%eax, 28(%rbx)
	movl	-76(%rbp), %eax
	movl	%eax, 44(%rbx)
	movl	-80(%rbp), %eax
	movl	%eax, 40(%rbx)
	movl	-84(%rbp), %eax
	movl	%eax, 36(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	16(%r14), %edi
	movq	8(%r13), %rsi
	callq	_ieee80211_rx_ni
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rbx
LBB0_20:
	movq	%r12, 8(%r13)
LBB0_21:
	movq	$0, (%r13)
	movq	_Q_INDEX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rt2x00queue_index_inc
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_DEVICE_STATE_ENABLED_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	callq	*(%rax)
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_DEVICE_STATE_ENABLED_RADIO,4,2 ## @DEVICE_STATE_ENABLED_RADIO
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ## @ENTRY_DATA_IO_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong frame size %d max %d\n"

	.comm	_RXDONE_CRYPTO_IV,4,2           ## @RXDONE_CRYPTO_IV
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_RXDONE_L2PAD,4,2               ## @RXDONE_L2PAD
	.comm	_RATE_MODE_HT_MIX,8,3           ## @RATE_MODE_HT_MIX
	.comm	_RATE_MODE_HT_GREENFIELD,8,3    ## @RATE_MODE_HT_GREENFIELD
	.comm	_RX_ENC_HT,4,2                  ## @RX_ENC_HT
	.comm	_DUMP_FRAME_RXDONE,4,2          ## @DUMP_FRAME_RXDONE
	.comm	_Q_INDEX_DONE,4,2               ## @Q_INDEX_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_rxdone               ; -- Begin function rt2x00lib_rxdone
	.p2align	2
_rt2x00lib_rxdone:                      ; @rt2x00lib_rxdone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #8]
Lloh0:
	adrp	x25, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_bit
Lloh2:
	adrp	x26, _DEVICE_STATE_ENABLED_RADIO@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DEVICE_STATE_ENABLED_RADIO@GOTPAGEOFF]
	cbz	x0, LBB0_20
; %bb.1:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.2:
Lloh4:
	adrp	x8, _ENTRY_DATA_IO_FAILED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENTRY_DATA_IO_FAILED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_20
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_rt2x00queue_alloc_rxskb
	cbz	x0, LBB0_20
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_rt2x00queue_unmap_skb
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_6:
	ldr	w2, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rt2x00_err
	ldr	x0, [x19, #8]
	bl	_dev_kfree_skb
	b	LBB0_19
LBB0_7:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_6
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x1, x0
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _RXDONE_CRYPTO_IV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RXDONE_CRYPTO_IV@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w9, [sp, #16]
Lloh12:
	adrp	x10, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
	add	x2, sp, #8
	bl	_rt2x00crypto_rx_insert_iv
	b	LBB0_15
LBB0_11:
	cbz	w1, LBB0_15
; %bb.12:
	ldr	w9, [sp, #8]
	cmp	w9, w1
	b.ls	LBB0_15
; %bb.13:
Lloh15:
	adrp	x9, _RXDONE_L2PAD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RXDONE_L2PAD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	x0, [x19, #8]
	bl	_rt2x00queue_remove_l2pad
LBB0_15:
	ldr	x0, [x19, #8]
	ldr	w1, [sp, #8]
	bl	_skb_trim
	add	x1, sp, #8
	mov	x0, x20
	bl	_rt2x00lib_rxdone_read_signal
	mov	x23, x0
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, _RATE_MODE_HT_MIX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RATE_MODE_HT_MIX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
Lloh21:
	adrp	x9, _RATE_MODE_HT_GREENFIELD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RATE_MODE_HT_GREENFIELD@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_17:
Lloh24:
	adrp	x8, _RX_ENC_HT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RX_ENC_HT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #48]
LBB0_18:
	ldr	x1, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rt2x00lib_rxdone_check_ps
	ldr	x1, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rt2x00lib_rxdone_check_ba
	ldr	x1, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rt2x00link_update_stats
	add	x1, sp, #8
	mov	x0, x20
	bl	_rt2x00debug_update_crypto
Lloh27:
	adrp	x8, _DUMP_FRAME_RXDONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DUMP_FRAME_RXDONE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_rt2x00debug_dump_frame
	ldr	x0, [x19, #8]
	bl	_IEEE80211_SKB_RXCB
	mov	x24, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w8, [sp, #72]
	str	w8, [x24, #68]
	ldr	d0, [x20, #24]
	str	d0, [x24, #56]
	str	w23, [x24, #24]
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #16]
	str	w8, [x24, #52]
	str	w9, [x24, #28]
	ldr	w8, [sp, #52]
	str	w8, [x24, #44]
	ldur	d0, [sp, #44]
	stur	d0, [x24, #36]
	ldr	w8, [x20, #20]
	str	w8, [x24, #32]
	ldr	w0, [x20, #16]
	ldr	x1, [x19, #8]
	bl	_ieee80211_rx_ni
LBB0_19:
	str	x22, [x19, #8]
LBB0_20:
	str	xzr, [x19]
Lloh30:
	adrp	x8, _Q_INDEX_DONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Q_INDEX_DONE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00queue_index_inc
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_23
; %bb.21:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_DEVICE_STATE_ENABLED_RADIO,4,2 ; @DEVICE_STATE_ENABLED_RADIO
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ; @ENTRY_DATA_IO_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong frame size %d max %d\n"

	.comm	_RXDONE_CRYPTO_IV,4,2           ; @RXDONE_CRYPTO_IV
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_RXDONE_L2PAD,4,2               ; @RXDONE_L2PAD
	.comm	_RATE_MODE_HT_MIX,8,3           ; @RATE_MODE_HT_MIX
	.comm	_RATE_MODE_HT_GREENFIELD,8,3    ; @RATE_MODE_HT_GREENFIELD
	.comm	_RX_ENC_HT,4,2                  ; @RX_ENC_HT
	.comm	_DUMP_FRAME_RXDONE,4,2          ; @DUMP_FRAME_RXDONE
	.comm	_Q_INDEX_DONE,4,2               ; @Q_INDEX_DONE
.subsections_via_symbols
