	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_handle_global_event
_falcon_handle_global_event:            ## @falcon_handle_global_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, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	8(%r15), %r13
	movl	(%rsi), %edi
	movq	_FSF_AB_GLB_EV_G_PHY0_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movl	(%rbx), %edi
	movq	_FSF_AB_GLB_EV_XG_PHY0_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movl	(%rbx), %edi
	movq	_FSF_AB_GLB_EV_XFP_PHY0_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	movq	%r15, %rdi
	callq	_ef4_nic_rev
	movq	_EF4_REV_FALCON_B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	movq	_FSF_BB_GLB_EV_XG_MGT_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, (%r13)
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %rdi
	callq	_ef4_nic_rev
	movq	_EF4_REV_FALCON_A1@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpq	(%rcx), %rax
	jle	LBB0_10
## %bb.7:
	movq	_FSF_BB_GLB_EV_RX_RECOVERY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_FSF_AA_GLB_EV_RX_RECOVERY@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	callq	_EF4_WORKAROUND_6555
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_RESET_TYPE_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_13:
	movq	_RESET_TYPE_RX_RECOVERY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ef4_schedule_reset
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSF_AB_GLB_EV_G_PHY0_INTR,4,2  ## @FSF_AB_GLB_EV_G_PHY0_INTR
	.comm	_FSF_AB_GLB_EV_XG_PHY0_INTR,4,2 ## @FSF_AB_GLB_EV_XG_PHY0_INTR
	.comm	_FSF_AB_GLB_EV_XFP_PHY0_INTR,4,2 ## @FSF_AB_GLB_EV_XFP_PHY0_INTR
	.comm	_EF4_REV_FALCON_B0,8,3          ## @EF4_REV_FALCON_B0
	.comm	_FSF_BB_GLB_EV_XG_MGT_INTR,4,2  ## @FSF_BB_GLB_EV_XG_MGT_INTR
	.comm	_EF4_REV_FALCON_A1,8,3          ## @EF4_REV_FALCON_A1
	.comm	_FSF_AA_GLB_EV_RX_RECOVERY,4,2  ## @FSF_AA_GLB_EV_RX_RECOVERY
	.comm	_FSF_BB_GLB_EV_RX_RECOVERY,4,2  ## @FSF_BB_GLB_EV_RX_RECOVERY
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d seen global RX_RESET event. Resetting.\n"

	.comm	_RESET_TYPE_RX_RECOVERY,4,2     ## @RESET_TYPE_RX_RECOVERY
	.comm	_RESET_TYPE_DISABLE,4,2         ## @RESET_TYPE_DISABLE
	.no_dead_strip	_falcon_handle_global_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_handle_global_event
_falcon_handle_global_event:            ; @falcon_handle_global_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x22, [x19, #8]
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _FSF_AB_GLB_EV_G_PHY0_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSF_AB_GLB_EV_G_PHY0_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _FSF_AB_GLB_EV_XG_PHY0_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSF_AB_GLB_EV_XG_PHY0_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _FSF_AB_GLB_EV_XFP_PHY0_INTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSF_AB_GLB_EV_XFP_PHY0_INTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	cbnz	x0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_ef4_nic_rev
Lloh9:
	adrp	x8, _EF4_REV_FALCON_B0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EF4_REV_FALCON_B0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _FSF_BB_GLB_EV_XG_MGT_INTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FSF_BB_GLB_EV_XG_MGT_INTR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	str	w0, [x22]
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_ef4_nic_rev
	mov	x8, x0
Lloh15:
	adrp	x9, _EF4_REV_FALCON_A1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EF4_REV_FALCON_A1@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w0, [x21]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _FSF_BB_GLB_EV_RX_RECOVERY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FSF_BB_GLB_EV_RX_RECOVERY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _FSF_AA_GLB_EV_RX_RECOVERY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FSF_AA_GLB_EV_RX_RECOVERY@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	cbz	x0, LBB0_12
; %bb.10:
Lloh22:
	adrp	x8, _rx_err@GOTPAGE
Lloh23:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	ldr	w4, [x20]
Lloh25:
	adrp	x3, l_.str@PAGE
Lloh26:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x19
	bl	_EF4_WORKAROUND_6555
Lloh27:
	adrp	x8, _RESET_TYPE_RX_RECOVERY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RESET_TYPE_RX_RECOVERY@GOTPAGEOFF]
Lloh29:
	adrp	x9, _RESET_TYPE_DISABLE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RESET_TYPE_DISABLE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ef4_schedule_reset
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FSF_AB_GLB_EV_G_PHY0_INTR,4,2  ; @FSF_AB_GLB_EV_G_PHY0_INTR
	.comm	_FSF_AB_GLB_EV_XG_PHY0_INTR,4,2 ; @FSF_AB_GLB_EV_XG_PHY0_INTR
	.comm	_FSF_AB_GLB_EV_XFP_PHY0_INTR,4,2 ; @FSF_AB_GLB_EV_XFP_PHY0_INTR
	.comm	_EF4_REV_FALCON_B0,8,3          ; @EF4_REV_FALCON_B0
	.comm	_FSF_BB_GLB_EV_XG_MGT_INTR,4,2  ; @FSF_BB_GLB_EV_XG_MGT_INTR
	.comm	_EF4_REV_FALCON_A1,8,3          ; @EF4_REV_FALCON_A1
	.comm	_FSF_AA_GLB_EV_RX_RECOVERY,4,2  ; @FSF_AA_GLB_EV_RX_RECOVERY
	.comm	_FSF_BB_GLB_EV_RX_RECOVERY,4,2  ; @FSF_BB_GLB_EV_RX_RECOVERY
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d seen global RX_RESET event. Resetting.\n"

	.comm	_RESET_TYPE_RX_RECOVERY,4,2     ; @RESET_TYPE_RX_RECOVERY
	.comm	_RESET_TYPE_DISABLE,4,2         ; @RESET_TYPE_DISABLE
	.no_dead_strip	_falcon_handle_global_event
.subsections_via_symbols
