	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lan743x_ptp_update_latency     ## -- Begin function lan743x_ptp_update_latency
	.p2align	4, 0x90
_lan743x_ptp_update_latency:            ## @lan743x_ptp_update_latency
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$10, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$1000, %esi                     ## imm = 0x3E8
	je	LBB0_5
## %bb.3:
	cmpl	$100, %esi
	jne	LBB0_7
## %bb.4:
	movl	$594, %r15d                     ## imm = 0x252
	movl	$181, %edi
	jmp	LBB0_6
LBB0_1:
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_5:
	movl	$525, %r15d                     ## imm = 0x20D
	movl	$30, %edi
LBB0_6:
	movq	_PTP_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_PTP_LATENCY_TX_SET_
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_PTP_LATENCY_RX_SET_
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lan743x_csr_write              ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTP_LATENCY,4,2                ## @PTP_LATENCY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lan743x_ptp_update_latency     ; -- Begin function lan743x_ptp_update_latency
	.p2align	2
_lan743x_ptp_update_latency:            ; @lan743x_ptp_update_latency
	.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, x0
	cmp	w1, #10
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #1000
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #100
	b.ne	LBB0_7
; %bb.3:
	mov	w20, #594
	mov	w0, #181
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	w20, #525
	mov	w0, #30
LBB0_6:
Lloh0:
	adrp	x8, _PTP_LATENCY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTP_LATENCY@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_PTP_LATENCY_TX_SET_
	mov	x22, x0
	mov	x0, x20
	bl	_PTP_LATENCY_RX_SET_
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	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
	b	_lan743x_csr_write
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PTP_LATENCY,4,2                ; @PTP_LATENCY
.subsections_via_symbols
