	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_monitor
_falcon_monitor:                        ## @falcon_monitor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_falcon_board
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%rbx), %edx
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	movq	_PHY_MODE_LOW_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	___ef4_reconfigure_port
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_2:
	movq	%rbx, %rdi
	callq	_LOOPBACK_INTERNAL
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_falcon_loopback_link_poll
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_falcon_stop_nic_stats
	movq	%rbx, %rdi
	callq	_falcon_deconfigure_mac_wrapper
	movq	%rbx, %rdi
	callq	_falcon_reset_macs
	movq	%rbx, %rdi
	callq	_falcon_reconfigure_xmac
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_falcon_start_nic_stats
	movq	%rbx, %rdi
	callq	_ef4_link_status_changed
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_falcon_poll_xmac               ## TAILCALL
LBB0_4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Board sensor %s; shutting down PHY\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.asciz	"reported fault"

L_.str.2:                               ## @.str.2
	.asciz	"failed"

	.comm	_PHY_MODE_LOW_POWER,4,2         ## @PHY_MODE_LOW_POWER
	.no_dead_strip	_falcon_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_monitor
_falcon_monitor:                        ; @falcon_monitor
	.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
	add	x0, x0, #16
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_falcon_board
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	cmn	w0, w8
	csel	x4, x10, x9, eq
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh12:
	adrp	x8, _PHY_MODE_LOW_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PHY_MODE_LOW_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	___ef4_reconfigure_port
	bl	_WARN_ON
LBB0_2:
	mov	x0, x19
	bl	_LOOPBACK_INTERNAL
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_falcon_loopback_link_poll
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_falcon_stop_nic_stats
	mov	x0, x19
	bl	_falcon_deconfigure_mac_wrapper
	mov	x0, x19
	bl	_falcon_reset_macs
	mov	x0, x19
	bl	_falcon_reconfigure_xmac
	bl	_BUG_ON
	mov	x0, x19
	bl	_falcon_start_nic_stats
	mov	x0, x19
	bl	_ef4_link_status_changed
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_falcon_poll_xmac
LBB0_6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Board sensor %s; shutting down PHY\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.asciz	"reported fault"

l_.str.2:                               ; @.str.2
	.asciz	"failed"

	.comm	_PHY_MODE_LOW_POWER,4,2         ; @PHY_MODE_LOW_POWER
	.no_dead_strip	_falcon_monitor
.subsections_via_symbols
