	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_check_statblock
_myri10ge_check_statblock:              ## @myri10ge_check_statblock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	movl	16(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	12(%r14), %edi
	callq	_ntohl
	cmpl	%eax, (%rbx)
	je	LBB0_6
## %bb.2:
	movl	%eax, (%rbx)
	movq	_MXGEFW_LINK_UP@GOTPCREL(%rip), %rcx
	movq	_link@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	24(%rbx), %edx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movl	24(%rbx), %edi
	callq	_netif_carrier_on
	jmp	LBB0_5
LBB0_4:
	movq	_MXGEFW_LINK_MYRINET@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movl	24(%rbx), %edi
	callq	_netif_carrier_off
LBB0_5:
	incl	28(%rbx)
LBB0_6:
	movq	8(%rbx), %r15
	movl	8(%r14), %edi
	callq	_ntohl
	cmpq	%rax, %r15
	je	LBB0_8
## %bb.7:
	movl	8(%r14), %edi
	callq	_ntohl
	movq	%rax, 8(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	callq	_netdev_warn
LBB0_8:
	movq	(%r14), %rax
	addl	%eax, 20(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	addq	$16, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXGEFW_LINK_UP,4,2             ## @MXGEFW_LINK_UP
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link up\n"

L_.str.1:                               ## @.str.1
	.asciz	"link %s\n"

	.comm	_MXGEFW_LINK_MYRINET,4,2        ## @MXGEFW_LINK_MYRINET
L_.str.2:                               ## @.str.2
	.asciz	"mismatch (Myrinet detected)"

L_.str.3:                               ## @.str.3
	.asciz	"down"

L_.str.4:                               ## @.str.4
	.asciz	"RDMA timed out! %d tags left\n"

	.no_dead_strip	_myri10ge_check_statblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_check_statblock
_myri10ge_check_statblock:              ; @myri10ge_check_statblock
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
	ldr	w0, [x20, #16]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_ntohl
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_6
; %bb.2:
	str	w0, [x19]
Lloh0:
	adrp	x8, _MXGEFW_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MXGEFW_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _link@GOTPAGE
Lloh4:
	ldr	x9, [x9, _link@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x19, #24]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldr	w0, [x19, #24]
	bl	_netif_carrier_on
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _MXGEFW_LINK_MYRINET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MXGEFW_LINK_MYRINET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh13:
	adrp	x10, l_.str.2@PAGE
Lloh14:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, w0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	ldr	w0, [x19, #24]
	bl	_netif_carrier_off
LBB0_5:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_6:
	ldr	x21, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_ntohl
	cmp	x21, x0
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	bl	_ntohl
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	w0, [x19, #24]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_warn
LBB0_8:
	ldr	x8, [x20]
	ldr	w9, [x19, #20]
	add	w9, w9, w8
	str	w9, [x19, #20]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x19, #16
	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	_wake_up
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MXGEFW_LINK_UP,4,2             ; @MXGEFW_LINK_UP
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link up\n"

l_.str.1:                               ; @.str.1
	.asciz	"link %s\n"

	.comm	_MXGEFW_LINK_MYRINET,4,2        ; @MXGEFW_LINK_MYRINET
l_.str.2:                               ; @.str.2
	.asciz	"mismatch (Myrinet detected)"

l_.str.3:                               ; @.str.3
	.asciz	"down"

l_.str.4:                               ; @.str.4
	.asciz	"RDMA timed out! %d tags left\n"

	.no_dead_strip	_myri10ge_check_statblock
.subsections_via_symbols
