	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ptp_event                  ## -- Begin function efx_ptp_event
	.p2align	4, 0x90
_efx_ptp_event:                         ## @efx_ptp_event
	.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, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%rsi), %edi
	movq	_MCDI_EVENT_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EFX_QWORD_FIELD
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	cmpl	$0, 24(%r12)
	je	LBB0_19
## %bb.4:
	movl	%eax, %r15d
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:
	cmpl	%r15d, 8(%r12)
	je	LBB0_8
## %bb.7:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_8
LBB0_1:
	cmpl	$0, (%r14)
	jne	LBB0_19
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_warn
	movl	$1, (%r14)
	jmp	LBB0_19
LBB0_5:
	movl	%r15d, 8(%r12)
	xorl	%ebx, %ebx
LBB0_8:
	movl	(%r13), %eax
	movq	16(%r12), %rcx
	leaq	1(%rbx), %rdx
	movq	%rdx, (%r12)
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r13), %edi
	movq	_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MCDI_EVENT_FIELD
	testl	%eax, %eax
	je	LBB0_9
## %bb.16:
	movq	_MAX_EVENT_FRAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.17:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_18
LBB0_9:
	cmpl	$130, %r15d
	je	LBB0_13
## %bb.10:
	cmpl	$129, %r15d
	je	LBB0_14
## %bb.11:
	cmpl	$128, %r15d
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ptp_event_rx
	jmp	LBB0_18
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ptp_event_fault
	jmp	LBB0_18
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ptp_event_pps
	jmp	LBB0_18
LBB0_15:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_netif_err
LBB0_18:
	movq	$0, (%r12)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDI_EVENT_CODE,4,2            ## @MCDI_EVENT_CODE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received PTP event but PTP not set up\n"

	.comm	_hw,4,2                         ## @hw
L_.str.1:                               ## @.str.1
	.asciz	"PTP out of sequence event %d\n"

	.comm	_CONT,4,2                       ## @CONT
L_.str.2:                               ## @.str.2
	.asciz	"PTP unknown event %d\n"

	.comm	_MAX_EVENT_FRAGS,8,3            ## @MAX_EVENT_FRAGS
L_.str.3:                               ## @.str.3
	.asciz	"PTP too many event fragments\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ptp_event                  ; -- Begin function efx_ptp_event
	.p2align	2
_efx_ptp_event:                         ; @efx_ptp_event
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _MCDI_EVENT_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCDI_EVENT_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_EFX_QWORD_FIELD
	cbz	x19, LBB0_5
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_20
; %bb.2:
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w9, [x19, #8]
	cmp	w9, w21
	b.eq	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _hw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	str	x21, [sp]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	mov	x8, #0
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20]
	cbnz	w8, LBB0_20
; %bb.6:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_warn
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_20
LBB0_7:
	str	w21, [x19, #8]
LBB0_8:
	ldr	w9, [x22]
	ldr	x10, [x19, #16]
	add	x11, x8, #1
	str	x11, [x19]
	str	w9, [x10, x8, lsl #2]
	ldr	w0, [x22]
Lloh13:
	adrp	x8, _CONT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CONT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_MCDI_EVENT_FIELD
	cbz	w0, LBB0_11
; %bb.9:
Lloh16:
	adrp	x8, _MAX_EVENT_FRAGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_EVENT_FRAGS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.10:
Lloh19:
	adrp	x8, _hw@GOTPAGE
Lloh20:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
Lloh22:
	adrp	x3, l_.str.3@PAGE
Lloh23:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_11:
	cmp	w21, #130
	b.eq	LBB0_15
; %bb.12:
	cmp	w21, #129
	b.eq	LBB0_16
; %bb.13:
	cmp	w21, #128
	b.ne	LBB0_17
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_ptp_event_rx
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_ptp_event_fault
	b	LBB0_19
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_ptp_event_pps
	b	LBB0_19
LBB0_17:
Lloh24:
	adrp	x8, _hw@GOTPAGE
Lloh25:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh27:
	adrp	x3, l_.str.2@PAGE
Lloh28:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_netif_err
LBB0_19:
	str	xzr, [x19]
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_EVENT_CODE,4,2            ; @MCDI_EVENT_CODE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received PTP event but PTP not set up\n"

	.comm	_hw,4,2                         ; @hw
l_.str.1:                               ; @.str.1
	.asciz	"PTP out of sequence event %d\n"

	.comm	_CONT,4,2                       ; @CONT
l_.str.2:                               ; @.str.2
	.asciz	"PTP unknown event %d\n"

	.comm	_MAX_EVENT_FRAGS,8,3            ; @MAX_EVENT_FRAGS
l_.str.3:                               ; @.str.3
	.asciz	"PTP too many event fragments\n"

.subsections_via_symbols
