	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ptp_clock_set
_lan743x_ptp_clock_set:                 ## @lan743x_ptp_clock_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_PTP_CLOCK_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_lan743x_csr_write
	movq	_PTP_CLOCK_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_lan743x_csr_write
	movq	_PTP_CLOCK_SUBNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_lan743x_csr_write
	movq	_PTP_CMD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PTP_CMD_CTL_PTP_CLOCK_LOAD_@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_lan743x_csr_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lan743x_ptp_wait_till_cmd_done
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_PTP_CMD_CTL,4,2                ## @PTP_CMD_CTL
	.comm	_PTP_CMD_CTL_PTP_CLOCK_LOAD_,4,2 ## @PTP_CMD_CTL_PTP_CLOCK_LOAD_
	.no_dead_strip	_lan743x_ptp_clock_set
.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_set
_lan743x_ptp_clock_set:                 ; @lan743x_ptp_clock_set
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _PTP_CLOCK_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTP_CLOCK_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_lan743x_csr_write
Lloh3:
	adrp	x8, _PTP_CLOCK_NS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTP_CLOCK_NS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_lan743x_csr_write
Lloh6:
	adrp	x8, _PTP_CLOCK_SUBNS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTP_CLOCK_SUBNS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_lan743x_csr_write
Lloh9:
	adrp	x8, _PTP_CMD_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTP_CMD_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x19, _PTP_CMD_CTL_PTP_CLOCK_LOAD_@GOTPAGE
Lloh13:
	ldr	x19, [x19, _PTP_CMD_CTL_PTP_CLOCK_LOAD_@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_lan743x_csr_write
	ldr	w1, [x19]
	mov	x0, x22
	bl	_lan743x_ptp_wait_till_cmd_done
	mov	x0, x22
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_PTP_CMD_CTL,4,2                ; @PTP_CMD_CTL
	.comm	_PTP_CMD_CTL_PTP_CLOCK_LOAD_,4,2 ; @PTP_CMD_CTL_PTP_CLOCK_LOAD_
	.no_dead_strip	_lan743x_ptp_clock_set
.subsections_via_symbols
