	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_ptp_setup_sdp_X540
_ixgbe_ptp_setup_sdp_X540:              ## @ixgbe_ptp_setup_sdp_X540
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r12
	movq	_IXGBE_TSAUXC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_IXGBE_WRITE_REG
	movq	%r12, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movq	_IXGBE_FLAG2_PTP_PPS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_IXGBE_ESDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_ESDP_SDP0_DIR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IXGBE_ESDP_SDP0_NATIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_IXGBE_TSAUXC_EN_CLK@GOTPCREL(%rip), %rax
	movq	_IXGBE_TSAUXC_SYNCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IXGBE_TSAUXC_SDP0_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_NS_PER_HALF_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movb	16(%rbx), %cl
	shll	%cl, %edi
	movl	20(%rbx), %esi
	callq	_div_u64
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rdi
	callq	_timecounter_read
	movl	%eax, %r15d
	movl	8(%rbx), %r13d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_NS_PER_SEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %edi
	callq	_div_u64_rem
	movl	(%r14), %edi
	subl	-44(%rbp), %edi
	movl	%edi, -44(%rbp)
	movb	16(%rbx), %cl
	shll	%cl, %edi
	movl	20(%rbx), %esi
	callq	_div_u64
	addl	%eax, %r13d
	movq	_IXGBE_CLKTIML@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_CLKTIMH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_TRGTTIML0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_TRGTTIMH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_ESDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_TSAUXC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_IXGBE_WRITE_REG
	movq	%r12, %rdi
	callq	_IXGBE_WRITE_FLUSH
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_TSAUXC,4,2               ## @IXGBE_TSAUXC
	.comm	_IXGBE_FLAG2_PTP_PPS_ENABLED,4,2 ## @IXGBE_FLAG2_PTP_PPS_ENABLED
	.comm	_IXGBE_ESDP,4,2                 ## @IXGBE_ESDP
	.comm	_IXGBE_ESDP_SDP0_DIR,4,2        ## @IXGBE_ESDP_SDP0_DIR
	.comm	_IXGBE_ESDP_SDP0_NATIVE,4,2     ## @IXGBE_ESDP_SDP0_NATIVE
	.comm	_IXGBE_TSAUXC_EN_CLK,4,2        ## @IXGBE_TSAUXC_EN_CLK
	.comm	_IXGBE_TSAUXC_SYNCLK,4,2        ## @IXGBE_TSAUXC_SYNCLK
	.comm	_IXGBE_TSAUXC_SDP0_INT,4,2      ## @IXGBE_TSAUXC_SDP0_INT
	.comm	_NS_PER_HALF_SEC,4,2            ## @NS_PER_HALF_SEC
	.comm	_NS_PER_SEC,4,2                 ## @NS_PER_SEC
	.comm	_IXGBE_CLKTIML,4,2              ## @IXGBE_CLKTIML
	.comm	_IXGBE_CLKTIMH,4,2              ## @IXGBE_CLKTIMH
	.comm	_IXGBE_TRGTTIML0,4,2            ## @IXGBE_TRGTTIML0
	.comm	_IXGBE_TRGTTIMH0,4,2            ## @IXGBE_TRGTTIMH0
	.no_dead_strip	_ixgbe_ptp_setup_sdp_X540
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_ptp_setup_sdp_X540
_ixgbe_ptp_setup_sdp_X540:              ; @ixgbe_ptp_setup_sdp_X540
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	add	x19, x0, #12
Lloh0:
	adrp	x26, _IXGBE_TSAUXC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IXGBE_TSAUXC@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _IXGBE_FLAG2_PTP_PPS_ENABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IXGBE_FLAG2_PTP_PPS_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x27, _IXGBE_ESDP@GOTPAGE
Lloh6:
	ldr	x27, [x27, _IXGBE_ESDP@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh7:
	adrp	x8, _IXGBE_ESDP_SDP0_DIR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_ESDP_SDP0_DIR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IXGBE_ESDP_SDP0_NATIVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IXGBE_ESDP_SDP0_NATIVE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w20, w8, w9
Lloh13:
	adrp	x8, _IXGBE_TSAUXC_EN_CLK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IXGBE_TSAUXC_EN_CLK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _IXGBE_TSAUXC_SYNCLK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IXGBE_TSAUXC_SYNCLK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _IXGBE_TSAUXC_SDP0_INT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IXGBE_TSAUXC_SDP0_INT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w21, w8, w9
Lloh22:
	adrp	x8, _NS_PER_HALF_SEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NS_PER_HALF_SEC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldp	w9, w1, [x22, #16]
	lsl	w0, w8, w9
	bl	_div_u64
	mov	x23, x0
	add	x24, x22, #4
	mov	x0, x24
	bl	_spin_lock_irqsave
	add	x0, x22, #8
	bl	_timecounter_read
	mov	x25, x0
	ldr	w28, [x22, #8]
	mov	x0, x24
	bl	_spin_unlock_irqrestore
Lloh25:
	adrp	x24, _NS_PER_SEC@GOTPAGE
Lloh26:
	ldr	x24, [x24, _NS_PER_SEC@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x25
	bl	_div_u64_rem
	ldr	w8, [x24]
	ldr	w9, [sp, #12]
	sub	w8, w8, w9
	str	w8, [sp, #12]
	ldp	w9, w1, [x22, #16]
	lsl	w0, w8, w9
	bl	_div_u64
	add	w22, w0, w28
Lloh27:
	adrp	x8, _IXGBE_CLKTIML@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IXGBE_CLKTIML@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_IXGBE_WRITE_REG
Lloh30:
	adrp	x8, _IXGBE_CLKTIMH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IXGBE_CLKTIMH@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
Lloh33:
	adrp	x8, _IXGBE_TRGTTIML0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IXGBE_TRGTTIML0@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_IXGBE_WRITE_REG
Lloh36:
	adrp	x8, _IXGBE_TRGTTIMH0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IXGBE_TRGTTIMH0@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_TSAUXC,4,2               ; @IXGBE_TSAUXC
	.comm	_IXGBE_FLAG2_PTP_PPS_ENABLED,4,2 ; @IXGBE_FLAG2_PTP_PPS_ENABLED
	.comm	_IXGBE_ESDP,4,2                 ; @IXGBE_ESDP
	.comm	_IXGBE_ESDP_SDP0_DIR,4,2        ; @IXGBE_ESDP_SDP0_DIR
	.comm	_IXGBE_ESDP_SDP0_NATIVE,4,2     ; @IXGBE_ESDP_SDP0_NATIVE
	.comm	_IXGBE_TSAUXC_EN_CLK,4,2        ; @IXGBE_TSAUXC_EN_CLK
	.comm	_IXGBE_TSAUXC_SYNCLK,4,2        ; @IXGBE_TSAUXC_SYNCLK
	.comm	_IXGBE_TSAUXC_SDP0_INT,4,2      ; @IXGBE_TSAUXC_SDP0_INT
	.comm	_NS_PER_HALF_SEC,4,2            ; @NS_PER_HALF_SEC
	.comm	_NS_PER_SEC,4,2                 ; @NS_PER_SEC
	.comm	_IXGBE_CLKTIML,4,2              ; @IXGBE_CLKTIML
	.comm	_IXGBE_CLKTIMH,4,2              ; @IXGBE_CLKTIMH
	.comm	_IXGBE_TRGTTIML0,4,2            ; @IXGBE_TRGTTIML0
	.comm	_IXGBE_TRGTTIMH0,4,2            ; @IXGBE_TRGTTIMH0
	.no_dead_strip	_ixgbe_ptp_setup_sdp_X540
.subsections_via_symbols
