	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_ts_info
_mlx4_en_get_ts_info:                   ## @mlx4_en_get_ts_info
	.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, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ethtool_op_get_ts_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	_MLX4_DEV_CAP_FLAG2_TS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_SOF_TIMESTAMPING_TX_HARDWARE@GOTPCREL(%rip), %rax
	movq	_SOF_TIMESTAMPING_RX_HARDWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SOF_TIMESTAMPING_RAW_HARDWARE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movq	_HWTSTAMP_TX_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_HWTSTAMP_TX_ON@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	movl	$1, %esi
	shll	%cl, %esi
	btsl	%eax, %esi
	movl	%esi, 4(%r14)
	movq	_HWTSTAMP_FILTER_NONE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_HWTSTAMP_FILTER_ALL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	btsl	%eax, %edx
	movl	%edx, 8(%r14)
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_ptp_clock_index
	movl	%eax, 12(%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ## @MLX4_DEV_CAP_FLAG2_TS
	.comm	_SOF_TIMESTAMPING_TX_HARDWARE,4,2 ## @SOF_TIMESTAMPING_TX_HARDWARE
	.comm	_SOF_TIMESTAMPING_RX_HARDWARE,4,2 ## @SOF_TIMESTAMPING_RX_HARDWARE
	.comm	_SOF_TIMESTAMPING_RAW_HARDWARE,4,2 ## @SOF_TIMESTAMPING_RAW_HARDWARE
	.comm	_HWTSTAMP_TX_OFF,4,2            ## @HWTSTAMP_TX_OFF
	.comm	_HWTSTAMP_TX_ON,4,2             ## @HWTSTAMP_TX_ON
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ## @HWTSTAMP_FILTER_NONE
	.comm	_HWTSTAMP_FILTER_ALL,4,2        ## @HWTSTAMP_FILTER_ALL
	.no_dead_strip	_mlx4_en_get_ts_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_get_ts_info
_mlx4_en_get_ts_info:                   ; @mlx4_en_get_ts_info
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_ethtool_op_get_ts_info
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _SOF_TIMESTAMPING_TX_HARDWARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOF_TIMESTAMPING_TX_HARDWARE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SOF_TIMESTAMPING_RX_HARDWARE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOF_TIMESTAMPING_RX_HARDWARE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SOF_TIMESTAMPING_RAW_HARDWARE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOF_TIMESTAMPING_RAW_HARDWARE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x8, _HWTSTAMP_TX_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWTSTAMP_TX_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh15:
	adrp	x10, _HWTSTAMP_TX_ON@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HWTSTAMP_TX_ON@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh18:
	adrp	x10, _HWTSTAMP_FILTER_NONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _HWTSTAMP_FILTER_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w10, w9, w10
Lloh21:
	adrp	x11, _HWTSTAMP_FILTER_ALL@GOTPAGE
Lloh22:
	ldr	x11, [x11, _HWTSTAMP_FILTER_ALL@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w9, w9, w10
	stp	w8, w9, [x19, #4]
	ldr	x0, [x21]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ptp_clock_index
	str	w0, [x19, #12]
LBB0_4:
	mov	x0, x20
	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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ; @MLX4_DEV_CAP_FLAG2_TS
	.comm	_SOF_TIMESTAMPING_TX_HARDWARE,4,2 ; @SOF_TIMESTAMPING_TX_HARDWARE
	.comm	_SOF_TIMESTAMPING_RX_HARDWARE,4,2 ; @SOF_TIMESTAMPING_RX_HARDWARE
	.comm	_SOF_TIMESTAMPING_RAW_HARDWARE,4,2 ; @SOF_TIMESTAMPING_RAW_HARDWARE
	.comm	_HWTSTAMP_TX_OFF,4,2            ; @HWTSTAMP_TX_OFF
	.comm	_HWTSTAMP_TX_ON,4,2             ; @HWTSTAMP_TX_ON
	.comm	_HWTSTAMP_FILTER_NONE,4,2       ; @HWTSTAMP_FILTER_NONE
	.comm	_HWTSTAMP_FILTER_ALL,4,2        ; @HWTSTAMP_FILTER_ALL
	.no_dead_strip	_mlx4_en_get_ts_info
.subsections_via_symbols
