	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_ptp_time_write
_ravb_ptp_time_write:                   ## @ravb_ptp_time_write
	.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	%rsi, %r14
	movq	(%rdi), %rbx
	movq	_GCCR_TCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ravb_ptp_tcr_request
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_GCCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ravb_read
	movq	_GCCR_LTO@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %r15d
	movl	(%r14), %esi
	movq	_GTO0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movl	4(%r14), %esi
	movq	_GTO1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movq	_GTO2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	orl	(%r13), %r15d
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ravb_write
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCCR_TCR_RESET,4,2             ## @GCCR_TCR_RESET
	.comm	_GCCR,4,2                       ## @GCCR
	.comm	_GCCR_LTO,4,2                   ## @GCCR_LTO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GTO0,4,2                       ## @GTO0
	.comm	_GTO1,4,2                       ## @GTO1
	.comm	_GTO2,4,2                       ## @GTO2
	.no_dead_strip	_ravb_ptp_time_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_ptp_time_write
_ravb_ptp_time_write:                   ; @ravb_ptp_time_write
	.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	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _GCCR_TCR_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCCR_TCR_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ravb_ptp_tcr_request
	cbnz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x22, _GCCR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GCCR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ravb_read
Lloh5:
	adrp	x23, _GCCR_LTO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GCCR_LTO@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x21, x0
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _GTO0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GTO0@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
	ldr	w1, [x20, #4]
Lloh13:
	adrp	x8, _GTO1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GTO1@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh16:
	adrp	x8, _GTO2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GTO2@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
	ldr	w8, [x23]
	orr	w1, w8, w21
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ravb_write
	mov	w0, #0
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GCCR_TCR_RESET,4,2             ; @GCCR_TCR_RESET
	.comm	_GCCR,4,2                       ; @GCCR
	.comm	_GCCR_LTO,4,2                   ; @GCCR_LTO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GTO0,4,2                       ; @GTO0
	.comm	_GTO1,4,2                       ; @GTO1
	.comm	_GTO2,4,2                       ; @GTO2
	.no_dead_strip	_ravb_ptp_time_write
.subsections_via_symbols
