	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gem_ptp_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gem_ptp_init
	.p2align	4, 0x90
_gem_ptp_init:                          ## @gem_ptp_init
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	40(%rax), %rbx
	movq	_gem_ptp_caps_template@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	48(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movl	%eax, 56(%r15)
	movq	48(%r15), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	%eax, 40(%r15)
	movq	%r15, %rdi
	callq	_gem_ptp_init_timer
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ptp_clock_register
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	32(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	$0, 32(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.3:
	movq	16(%r15), %rbx
	xorl	%r14d, %r14d
	movq	_gem_tx_timestamp_flush@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	incl	%r14d
	addq	$24, %rbx
	cmpl	(%r15), %r14d
	jb	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_gem_ptp_init_tsu
	movq	8(%r15), %rdi
	movq	_GEM_PTP_TIMER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gem_ptp_caps_template,4,2      ## @gem_ptp_caps_template
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptp clock register failed: %ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"ptp clock register failed\n"

	.comm	_gem_tx_timestamp_flush,4,2     ## @gem_tx_timestamp_flush
L_.str.2:                               ## @.str.2
	.asciz	"%s ptp clock registered.\n"

	.comm	_GEM_PTP_TIMER_NAME,4,2         ## @GEM_PTP_TIMER_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gem_ptp_init                   ; -- Begin function gem_ptp_init
	.p2align	2
_gem_ptp_init:                          ; @gem_ptp_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _gem_ptp_caps_template@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gem_ptp_caps_template@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x0
	str	w8, [x21, #40]!
	ldr	x8, [x0, #48]
	ldr	x8, [x8, #8]
	blr	x8
	str	w0, [x19, #56]
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	blr	x8
	str	w0, [x21]
	mov	x0, x19
	bl	_gem_ptp_init_timer
	mov	x0, x21
	mov	x1, x20
	bl	_ptp_clock_register
	str	x0, [x19, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	xzr, [x19, #32]
	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
	add	sp, sp, #64
	ret
LBB0_2:
	cbz	x0, LBB0_7
; %bb.3:
	add	x0, x19, #24
	bl	_spin_lock_init
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	w21, #0
	ldr	x20, [x19, #16]
Lloh5:
	adrp	x22, _gem_tx_timestamp_flush@GOTPAGE
Lloh6:
	ldr	x22, [x22, _gem_tx_timestamp_flush@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_INIT_WORK
	add	w21, w21, #1
	add	x20, x20, #24
	ldr	w8, [x19]
	cmp	w21, w8
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_gem_ptp_init_tsu
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x8, _GEM_PTP_TIMER_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GEM_PTP_TIMER_NAME@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	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
	add	sp, sp, #64
	b	_dev_info
LBB0_7:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	add	sp, sp, #64
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_gem_ptp_caps_template,4,2      ; @gem_ptp_caps_template
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptp clock register failed: %ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"ptp clock register failed\n"

	.comm	_gem_tx_timestamp_flush,4,2     ; @gem_tx_timestamp_flush
l_.str.2:                               ; @.str.2
	.asciz	"%s ptp clock registered.\n"

	.comm	_GEM_PTP_TIMER_NAME,4,2         ; @GEM_PTP_TIMER_NAME
.subsections_via_symbols
