	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ptp_clock_get
_lan743x_ptp_clock_get:                 ## @lan743x_ptp_clock_get
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_PTP_CMD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PTP_CMD_CTL_PTP_CLOCK_READ_@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_lan743x_csr_write
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_lan743x_ptp_wait_till_cmd_done
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	_PTP_CLOCK_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lan743x_csr_read
	movl	%eax, (%r12)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_PTP_CLOCK_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lan743x_csr_read
	movl	%eax, (%r15)
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	_PTP_CLOCK_SUBNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lan743x_csr_read
	movl	%eax, (%r14)
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PTP_CMD_CTL,4,2                ## @PTP_CMD_CTL
	.comm	_PTP_CMD_CTL_PTP_CLOCK_READ_,4,2 ## @PTP_CMD_CTL_PTP_CLOCK_READ_
	.comm	_PTP_CLOCK_SEC,4,2              ## @PTP_CLOCK_SEC
	.comm	_PTP_CLOCK_NS,4,2               ## @PTP_CLOCK_NS
	.comm	_PTP_CLOCK_SUBNS,4,2            ## @PTP_CLOCK_SUBNS
	.no_dead_strip	_lan743x_ptp_clock_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_ptp_clock_get
_lan743x_ptp_clock_get:                 ; @lan743x_ptp_clock_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _PTP_CMD_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTP_CMD_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x23, _PTP_CMD_CTL_PTP_CLOCK_READ_@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PTP_CMD_CTL_PTP_CLOCK_READ_@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_lan743x_csr_write
	ldr	w1, [x23]
	mov	x0, x20
	bl	_lan743x_ptp_wait_till_cmd_done
	cbz	x22, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PTP_CLOCK_SEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTP_CLOCK_SEC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
	str	w0, [x22]
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _PTP_CLOCK_NS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTP_CLOCK_NS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
	str	w0, [x21]
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _PTP_CLOCK_SUBNS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTP_CLOCK_SUBNS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
	str	w0, [x19]
LBB0_6:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PTP_CMD_CTL,4,2                ; @PTP_CMD_CTL
	.comm	_PTP_CMD_CTL_PTP_CLOCK_READ_,4,2 ; @PTP_CMD_CTL_PTP_CLOCK_READ_
	.comm	_PTP_CLOCK_SEC,4,2              ; @PTP_CLOCK_SEC
	.comm	_PTP_CLOCK_NS,4,2               ; @PTP_CLOCK_NS
	.comm	_PTP_CLOCK_SUBNS,4,2            ; @PTP_CLOCK_SUBNS
	.no_dead_strip	_lan743x_ptp_clock_get
.subsections_via_symbols
