	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_get_rx_entry_len
_mt76u_get_rx_entry_len:                ## @mt76u_get_rx_entry_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_get_unaligned_le16
	movq	_MT_DMA_HDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_MT_RX_RXWI_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rdx, %rsi
	movq	_MT_FCE_INFO_LEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	subl	(%rcx), %edi
	addq	%rax, %rdx
	testb	$3, %al
	movl	%eax, %ecx
	cmovnel	%edi, %ecx
	cmpq	%rbx, %rdx
	cmovgl	%edi, %ecx
	testq	%rax, %rax
	cmovel	%edi, %ecx
	cmpq	%rbx, %rsi
	cmovgl	%edi, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ## @MT_DMA_HDR_LEN
	.comm	_MT_RX_RXWI_LEN,8,3             ## @MT_RX_RXWI_LEN
	.comm	_MT_FCE_INFO_LEN,8,3            ## @MT_FCE_INFO_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mt76u_get_rx_entry_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_get_rx_entry_len
_mt76u_get_rx_entry_len:                ; @mt76u_get_rx_entry_len
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_get_unaligned_le16
Lloh0:
	adrp	x8, _MT_DMA_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_DMA_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MT_RX_RXWI_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_RX_RXWI_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _MT_FCE_INFO_LEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MT_FCE_INFO_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x9, x9, x8
	add	x9, x9, x10
	add	x8, x8, x0
	tst	x0, #0x3
	ccmp	x8, x19, #0, eq
	ccmp	x0, #0, #4, le
	ccmp	x9, x19, #0, ne
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csneg	w0, w0, w8, le
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DMA_HDR_LEN,8,3             ; @MT_DMA_HDR_LEN
	.comm	_MT_RX_RXWI_LEN,8,3             ; @MT_RX_RXWI_LEN
	.comm	_MT_FCE_INFO_LEN,8,3            ; @MT_FCE_INFO_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mt76u_get_rx_entry_len
.subsections_via_symbols
