	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpts_register                  ## -- Begin function cpts_register
	.p2align	4, 0x90
_cpts_register:                         ## @cpts_register
	.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	%rdi, %r14
	addq	$52, %rdi
	callq	_skb_queue_head_init
	leaq	48(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r14), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	_CPTS_MAX_EVENTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	callq	_list_add
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	callq	_clk_enable
	movq	_CPTS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_control@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_cpts_write32
	movq	_TS_PEND_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_int_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_cpts_write32
	leaq	32(%r14), %rbx
	leaq	28(%r14), %r15
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_timecounter_init
	leaq	24(%r14), %rdi
	movl	20(%r14), %esi
	callq	_ptp_clock_register
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, 8(%r14)
	movl	(%r14), %edi
	callq	_clk_disable
	movl	%ebx, %eax
	jmp	LBB0_5
LBB0_6:
	callq	_ptp_clock_index
	movl	%eax, 16(%r14)
	movq	8(%r14), %rdi
	movl	4(%r14), %esi
	callq	_ptp_schedule_worker
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPTS_MAX_EVENTS,4,2            ## @CPTS_MAX_EVENTS
	.comm	_CPTS_EN,4,2                    ## @CPTS_EN
	.comm	_control,4,2                    ## @control
	.comm	_TS_PEND_EN,4,2                 ## @TS_PEND_EN
	.comm	_int_enable,4,2                 ## @int_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpts_register                  ; -- Begin function cpts_register
	.p2align	2
_cpts_register:                         ; @cpts_register
	.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, x0
	add	x0, x0, #52
	bl	_skb_queue_head_init
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x20, x19, #36
	mov	x0, x20
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x21, _CPTS_MAX_EVENTS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CPTS_MAX_EVENTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x22
	mov	x1, x20
	bl	_list_add
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x19]
	bl	_clk_enable
Lloh2:
	adrp	x8, _CPTS_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPTS_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _control@GOTPAGE
Lloh6:
	ldr	x8, [x8, _control@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cpts_write32
Lloh8:
	adrp	x8, _TS_PEND_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TS_PEND_EN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _int_enable@GOTPAGE
Lloh12:
	ldr	x8, [x8, _int_enable@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cpts_write32
	add	x20, x19, #32
	add	x21, x19, #28
	bl	_ktime_get_real
	bl	_ktime_to_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_timecounter_init
	add	x0, x19, #24
	ldr	w1, [x19, #20]
	bl	_ptp_clock_register
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_PTR_ERR
	mov	x20, x0
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_clk_disable
	mov	x0, x20
	b	LBB0_6
LBB0_5:
	bl	_ptp_clock_index
	str	w0, [x19, #16]
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_ptp_schedule_worker
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CPTS_MAX_EVENTS,4,2            ; @CPTS_MAX_EVENTS
	.comm	_CPTS_EN,4,2                    ; @CPTS_EN
	.comm	_control,4,2                    ; @control
	.comm	_TS_PEND_EN,4,2                 ; @TS_PEND_EN
	.comm	_int_enable,4,2                 ; @int_enable
.subsections_via_symbols
