	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_enable_ecn
_mlx5e_enable_ecn:                      ## @mlx5e_enable_ecn
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_is_last_ethertype_ip
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movslq	-36(%rbp), %r15
	addq	(%rbx), %r15
	movq	-48(%rbp), %r12
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_IP_ECN_set_ce
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_IP6_ECN_set_ce
LBB0_4:
	movq	(%r14), %rcx
	cmpl	$1, %eax
	sbbl	$-1, (%rcx)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_mlx5e_enable_ecn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_enable_ecn
_mlx5e_enable_ecn:                      ; @mlx5e_enable_ecn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x1, sp, #12
	mov	x2, sp
	mov	x0, x20
	bl	_is_last_ethertype_ip
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldrsw	x9, [sp, #12]
	add	x21, x8, x9
	ldr	x22, [sp]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_IP_ECN_set_ce
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_IP6_ECN_set_ce
LBB0_4:
	cmp	w0, #0
	ldr	x8, [x19]
	ldr	w9, [x8]
	cinc	w9, w9, ne
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_mlx5e_enable_ecn
.subsections_via_symbols
