	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_hw_mtu
_compute_hw_mtu:                        ## @compute_hw_mtu
	.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	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	cmpl	$64, %esi
	jl	LBB0_2
## %bb.1:
	movq	_BCMENET_MAX_MTU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movl	%esi, %edi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_BCMENET_DMA_MAXBURST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	callq	_ALIGN
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_BCMENET_MAX_MTU,4,2            ## @BCMENET_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_BCMENET_DMA_MAXBURST,4,2       ## @BCMENET_DMA_MAXBURST
	.no_dead_strip	_compute_hw_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_hw_mtu
_compute_hw_mtu:                        ; @compute_hw_mtu
	.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
Lloh0:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w1
Lloh3:
	adrp	x9, _BCMENET_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCMENET_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #64
	ccmp	w8, w9, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	str	w8, [x0]
Lloh9:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, w8, uxtw
Lloh12:
	adrp	x8, _BCMENET_DMA_MAXBURST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BCMENET_DMA_MAXBURST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	bl	_ALIGN
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_BCMENET_MAX_MTU,4,2            ; @BCMENET_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_BCMENET_DMA_MAXBURST,4,2       ; @BCMENET_DMA_MAXBURST
	.no_dead_strip	_compute_hw_mtu
.subsections_via_symbols
