	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_hwstamp_set              ## -- Begin function mlx5e_hwstamp_set
	.p2align	4, 0x90
_mlx5e_hwstamp_set:                     ## @mlx5e_hwstamp_set
	.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, %r14
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	movq	_device_frequency_khz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%r12), %edi
	callq	_mlx5_clock_get_ptp_index
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	movl	(%r14), %esi
	leaq	-40(%rbp), %rdi
	movl	$8, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-40(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.8:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %eax
	leal	-130(%rax), %ecx
	cmpl	$14, %ecx
	jae	LBB0_9
LBB0_12:
	leaq	12(%r12), %rdi
	movq	_MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5E_GET_PFLAG
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx5e_modify_rx_cqe_compression_locked
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_19
LBB0_7:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_17:
	movl	$145, -36(%rbp)
LBB0_18:
	leaq	8(%r12), %rdi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	callq	_netdev_update_features
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %ebx
	jmp	LBB0_19
LBB0_9:
	cmpl	$145, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$144, %eax
	jne	LBB0_16
## %bb.11:
	movl	12(%r12), %esi
	movq	%r12, %rdi
	callq	_mlx5e_modify_rx_cqe_compression_locked
	jmp	LBB0_18
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_device_frequency_khz,4,2       ## @device_frequency_khz
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_MLX5E_PFLAG_RX_CQE_COMPRESS,4,2 ## @MLX5E_PFLAG_RX_CQE_COMPRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling RX cqe compression\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed disabling cqe compression err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_hwstamp_set              ; -- Begin function mlx5e_hwstamp_set
	.p2align	2
_mlx5e_hwstamp_set:                     ; @mlx5e_hwstamp_set
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _device_frequency_khz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _device_frequency_khz@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_mlx5_clock_get_ptp_index
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #8
	bl	_copy_from_user
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	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
LBB0_7:
	ldr	w8, [sp, #8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.8:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [sp, #12]
	sub	w9, w8, #130
	cmp	w9, #14
	b.hs	LBB0_15
LBB0_9:
	add	x0, x20, #12
Lloh7:
	adrp	x8, _MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_MLX5E_GET_PFLAG
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_11:
	mov	x0, x20
	mov	w1, #0
	bl	_mlx5e_modify_rx_cqe_compression_locked
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_netdev_err
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_6
LBB0_13:
	mov	w8, #145
	str	w8, [sp, #12]
LBB0_14:
	add	x0, x20, #8
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x20]
	bl	_netdev_update_features
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copy_to_user
Lloh14:
	adrp	x8, _EFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w22, wzr, w8, eq
	b	LBB0_6
LBB0_15:
	cmp	w8, #145
	b.eq	LBB0_9
; %bb.16:
	cmp	w8, #144
	b.ne	LBB0_18
; %bb.17:
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_mlx5e_modify_rx_cqe_compression_locked
	b	LBB0_14
LBB0_18:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_19:
Lloh17:
	adrp	x8, _ERANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_device_frequency_khz,4,2       ; @device_frequency_khz
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_MLX5E_PFLAG_RX_CQE_COMPRESS,4,2 ; @MLX5E_PFLAG_RX_CQE_COMPRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling RX cqe compression\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed disabling cqe compression err=%d\n"

.subsections_via_symbols
