	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_ptp_register            ## -- Begin function stmmac_ptp_register
	.p2align	4, 0x90
_stmmac_ptp_register:                   ## @stmmac_ptp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	44(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_STMMAC_PPS_MAX@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_5
## %bb.2:
	movq	56(%r14), %rdx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, -4(%rdx,%rsi,4)
	cmpq	%rax, %rsi
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rsi), %rdi
	movslq	(%rcx), %rbx
	cmpq	%rbx, %rsi
	movq	%rdi, %rsi
	jl	LBB0_3
LBB0_5:
	movq	48(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	_stmmac_ptp_clock_ops@GOTPCREL(%rip), %rdx
	movq	%rcx, 8(%rdx)
LBB0_7:
	movq	_stmmac_ptp_clock_ops@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	leaq	40(%r14), %rdi
	callq	_spin_lock_init
	leaq	24(%r14), %rdi
	movups	(%rbx), %xmm0
	movups	%xmm0, 24(%r14)
	movl	16(%r14), %esi
	callq	_ptp_clock_register
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	$0, 8(%r14)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMMAC_PPS_MAX,4,2             ## @STMMAC_PPS_MAX
	.comm	_stmmac_ptp_clock_ops,16,3      ## @stmmac_ptp_clock_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptp_clock_register failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"registered PTP clock\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_ptp_register            ; -- Begin function stmmac_ptp_register
	.p2align	2
_stmmac_ptp_register:                   ; @stmmac_ptp_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #44]
Lloh0:
	adrp	x9, _STMMAC_PPS_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STMMAC_PPS_MAX@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, #1
	ccmp	w10, #1, #8, ge
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x11, [x19, #56]
	mov	w12, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w12, [x11, x10, lsl #2]
	add	x10, x10, #1
	cmp	x10, x8
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x13, [x9]
	cmp	x10, x13
	b.lt	LBB0_2
LBB0_4:
	ldr	x9, [x19, #48]
	ldr	x9, [x9]
Lloh2:
	adrp	x20, _stmmac_ptp_clock_ops@GOTPAGE
Lloh3:
	ldr	x20, [x20, _stmmac_ptp_clock_ops@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.5:
	str	x9, [x20, #8]
LBB0_6:
	str	w8, [x20]
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #24
	ldr	q0, [x20]
	stur	q0, [x19, #24]
	ldr	w1, [x19, #16]
	bl	_ptp_clock_register
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	str	xzr, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.10:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netdev_info
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STMMAC_PPS_MAX,4,2             ; @STMMAC_PPS_MAX
	.comm	_stmmac_ptp_clock_ops,16,3      ; @stmmac_ptp_clock_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptp_clock_register failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"registered PTP clock\n"

.subsections_via_symbols
