	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_hwtstamp_set
_mlx4_en_hwtstamp_set:                  ## @mlx4_en_hwtstamp_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
	callq	_netdev_priv
	movq	(%rax), %rbx
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	movl	$16, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, -40(%rbp)
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_15:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%rbx), %rax
	movq	_MLX4_DEV_CAP_FLAG2_TS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.6:
	movl	-48(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.8:
	movl	-44(%rbp), %eax
	leal	-130(%rax), %ecx
	cmpl	$14, %ecx
	jae	LBB0_9
LBB0_11:
	movl	$145, -44(%rbp)
LBB0_12:
	movl	(%r12), %ecx
	movq	-48(%rbp), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mlx4_en_reset_config
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movabsq	$618475290753, %rax             ## imm = 0x9000000081
	movq	%rax, -48(%rbp)
LBB0_14:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	jmp	LBB0_15
LBB0_9:
	cmpl	$144, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$145, %eax
	je	LBB0_11
LBB0_7:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ## @MLX4_DEV_CAP_FLAG2_TS
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_mlx4_en_hwtstamp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx4_en_hwtstamp_set
lCPI0_0:
	.long	129                             ; 0x81
	.long	144                             ; 0x90
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mlx4_en_hwtstamp_set:                  ; @mlx4_en_hwtstamp_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
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	w1, [x19]
	mov	x0, sp
	mov	w2, #16
	bl	_copy_from_user
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_6:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.7:
	ldr	w8, [sp]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.8:
	ldr	w8, [sp, #4]
	sub	w9, w8, #130
	cmp	w9, #14
	b.hs	LBB0_13
LBB0_9:
	mov	w8, #145
	str	w8, [sp, #4]
LBB0_10:
	ldr	w3, [x20]
	ldr	x1, [sp]
	mov	x0, x20
	mov	x2, #0
	bl	_mlx4_en_reset_config
	cbz	x0, LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
LBB0_12:
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #16
	bl	_copy_to_user
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_5
LBB0_13:
	cmp	w8, #144
	b.eq	LBB0_10
; %bb.14:
	cmp	w8, #145
	b.eq	LBB0_9
LBB0_15:
Lloh12:
	adrp	x8, _ERANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ; @MLX4_DEV_CAP_FLAG2_TS
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_mlx4_en_hwtstamp_set
.subsections_via_symbols
