	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_get_data_len
_xgene_enet_get_data_len:               ## @xgene_enet_get_data_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %esi
	movq	_BUFDATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_VAL
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$30720, %eax                    ## imm = 0x7800
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.1:
	movl	$14, %edi
	callq	_BIT
	movl	$13, %edi
	testl	%ebx, %eax
	je	LBB0_2
## %bb.4:
	movl	$12, %esi
	callq	_GENMASK
	movl	%eax, %r14d
	movl	$11, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	testl	%ebx, %r14d
	je	LBB0_5
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_SIZE_2K@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	jne	LBB0_10
## %bb.3:
	movq	_SIZE_16K@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_SIZE_4K@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFDATALEN,4,2                 ## @BUFDATALEN
	.comm	_SIZE_16K,4,2                   ## @SIZE_16K
	.comm	_SIZE_4K,4,2                    ## @SIZE_4K
	.comm	_SIZE_2K,4,2                    ## @SIZE_2K
	.no_dead_strip	_xgene_enet_get_data_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_get_data_len
_xgene_enet_get_data_len:               ; @xgene_enet_get_data_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	x1, x0
Lloh0:
	adrp	x8, _BUFDATALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFDATALEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GET_VAL
	mov	x19, x0
	mov	w8, #30720
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	w0, #14
	bl	_BIT
	tst	w0, w19
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #13
	mov	w1, #12
	bl	_GENMASK
	and	w20, w0, w19
	mov	w0, #11
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w19
	cbz	w20, LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _SIZE_2K@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIZE_2K@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #13
	mov	w1, #0
	bl	_GENMASK
Lloh5:
	adrp	x8, _SIZE_16K@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIZE_16K@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ands	w9, w0, w19
	csel	w0, w8, w9, eq
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x9, _SIZE_4K@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIZE_4K@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, w8, eq
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFDATALEN,4,2                 ; @BUFDATALEN
	.comm	_SIZE_16K,4,2                   ; @SIZE_16K
	.comm	_SIZE_4K,4,2                    ; @SIZE_4K
	.comm	_SIZE_2K,4,2                    ; @SIZE_2K
	.no_dead_strip	_xgene_enet_get_data_len
.subsections_via_symbols
