	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdp_mtu_valid
_xdp_mtu_valid:                         ## @xdp_mtu_valid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_DPAA2_ETH_L2_MAX_FRM
	movl	%eax, %r14d
	movq	_DPAA2_ETH_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DPAA2_ETH_RX_HWA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_dpaa2_eth_rx_head_room
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rcx
	addl	%r12d, %eax
	addl	(%rcx), %eax
	subl	%eax, %ebx
	movl	$1, %eax
	cmpl	%ebx, %r14d
	jle	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movslq	%ebx, %rdx
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPAA2_ETH_RX_BUF_SIZE,4,2      ## @DPAA2_ETH_RX_BUF_SIZE
	.comm	_DPAA2_ETH_RX_HWA_SIZE,4,2      ## @DPAA2_ETH_RX_HWA_SIZE
	.comm	_XDP_PACKET_HEADROOM,4,2        ## @XDP_PACKET_HEADROOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Maximum MTU for XDP is %d\n"

	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.no_dead_strip	_xdp_mtu_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdp_mtu_valid
_xdp_mtu_valid:                         ; @xdp_mtu_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_DPAA2_ETH_L2_MAX_FRM
	mov	x20, x0
Lloh0:
	adrp	x8, _DPAA2_ETH_RX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPAA2_ETH_RX_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DPAA2_ETH_RX_HWA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPAA2_ETH_RX_HWA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dpaa2_eth_rx_head_room
Lloh6:
	adrp	x8, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w22, w0
	add	w8, w9, w8
	sub	w8, w21, w8
	cmp	w20, w8
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	sxtw	x8, w8
Lloh9:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DPAA2_ETH_RX_BUF_SIZE,4,2      ; @DPAA2_ETH_RX_BUF_SIZE
	.comm	_DPAA2_ETH_RX_HWA_SIZE,4,2      ; @DPAA2_ETH_RX_HWA_SIZE
	.comm	_XDP_PACKET_HEADROOM,4,2        ; @XDP_PACKET_HEADROOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Maximum MTU for XDP is %d\n"

	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.no_dead_strip	_xdp_mtu_valid
.subsections_via_symbols
