	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ptp_set_ts_config         ## -- Begin function i40e_ptp_set_ts_config
	.p2align	4, 0x90
_i40e_ptp_set_ts_config:                ## @i40e_ptp_set_ts_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_I40E_FLAG_PTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %esi
	leaq	-24(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40e_ptp_set_timestamp_mode
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	-24(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %edi
	leaq	-24(%rbp), %rsi
	movl	$4, %edx
	callq	_copy_to_user
	movq	%rax, %rcx
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovel	%edx, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_PTP,4,2              ## @I40E_FLAG_PTP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ptp_set_ts_config         ; -- Begin function i40e_ptp_set_ts_config
	.p2align	2
_i40e_ptp_set_ts_config:                ; @i40e_ptp_set_ts_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _I40E_FLAG_PTP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_FLAG_PTP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_i40e_ptp_set_timestamp_mode
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w8, [sp, #8]
	str	w8, [x20, #4]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	bl	_copy_to_user
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_PTP,4,2              ; @I40E_FLAG_PTP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
