	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_features_check
_mlx4_en_features_check:                ## @mlx4_en_features_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	_vlan_features_check
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_vxlan_features_check
	movl	%eax, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	callq	_netdev_priv
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ip_hdr
	cmpl	$4, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_udp_hdr
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	je	LBB0_6
LBB0_5:
	movq	_NETIF_F_CSUM_MASK@GOTPCREL(%rip), %rax
	movq	_NETIF_F_GSO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ## @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_GSO_MASK,4,2           ## @NETIF_F_GSO_MASK
	.no_dead_strip	_mlx4_en_features_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_features_check
_mlx4_en_features_check:                ; @mlx4_en_features_check
	.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	x21, x1
	mov	x20, x0
	mov	x1, x2
	bl	_vlan_features_check
	mov	x1, x0
	mov	x0, x20
	bl	_vxlan_features_check
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_netdev_priv
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_ip_hdr
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_udp_hdr
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _NETIF_F_CSUM_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_CSUM_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NETIF_F_GSO_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_GSO_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w19, w19, w8
LBB0_6:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ; @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_GSO_MASK,4,2           ; @NETIF_F_GSO_MASK
	.no_dead_strip	_mlx4_en_features_check
.subsections_via_symbols
