	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcom_check_link
_bcom_check_link:                       ## @bcom_check_link
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_PHY_BCOM_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_xm_phy_read
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_xm_phy_read
	movq	_PHY_ST_LSYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.1:
	movq	(%r15), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.2:
	movq	_PHY_ST_AN_OVER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.3:
	movq	_PHY_XMAC_AUNE_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_xm_phy_read
	movq	_PHY_B_AN_RF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_notice                  ## TAILCALL
LBB0_16:
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xm_link_down                   ## TAILCALL
LBB0_6:
	movq	_PHY_BCOM_AUX_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_xm_phy_read
	movq	_PHY_B_AS_AN_RES_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.8:
	cmpl	$128, %ecx
	jne	LBB0_17
## %bb.9:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	notl	%eax
	testb	$-124, %al
	jne	LBB0_11
## %bb.12:
	movq	_FLOW_STAT_SYMMETRIC@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_11:
	movq	_FLOW_STAT_NONE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_18
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genesis_link_up                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_BCOM_STAT,4,2              ## @PHY_BCOM_STAT
	.comm	_PHY_ST_LSYNC,4,2               ## @PHY_ST_LSYNC
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_PHY_ST_AN_OVER,4,2             ## @PHY_ST_AN_OVER
	.comm	_PHY_XMAC_AUNE_LP,4,2           ## @PHY_XMAC_AUNE_LP
	.comm	_PHY_B_AN_RF,4,2                ## @PHY_B_AN_RF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote fault\n"

	.comm	_PHY_BCOM_AUX_STAT,4,2          ## @PHY_BCOM_AUX_STAT
	.comm	_PHY_B_AS_AN_RES_MSK,4,2        ## @PHY_B_AS_AN_RES_MSK
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
L_.str.1:                               ## @.str.1
	.asciz	"duplex mismatch\n"

	.comm	_FLOW_STAT_SYMMETRIC,4,2        ## @FLOW_STAT_SYMMETRIC
	.comm	_FLOW_STAT_REM_SEND,4,2         ## @FLOW_STAT_REM_SEND
	.comm	_FLOW_STAT_LOC_SEND,4,2         ## @FLOW_STAT_LOC_SEND
	.comm	_FLOW_STAT_NONE,4,2             ## @FLOW_STAT_NONE
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.no_dead_strip	_bcom_check_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcom_check_link
_bcom_check_link:                       ; @bcom_check_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _PHY_BCOM_STAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PHY_BCOM_STAT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	bl	_xm_phy_read
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	bl	_xm_phy_read
Lloh2:
	adrp	x8, _PHY_ST_LSYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHY_ST_LSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
Lloh8:
	adrp	x8, _PHY_ST_AN_OVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHY_ST_AN_OVER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.3:
Lloh11:
	adrp	x8, _PHY_XMAC_AUNE_LP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_XMAC_AUNE_LP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_xm_phy_read
Lloh14:
	adrp	x8, _PHY_B_AN_RF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_B_AN_RF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.4:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netdev_notice
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xm_link_down
LBB0_7:
Lloh19:
	adrp	x8, _PHY_BCOM_AUX_STAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHY_BCOM_AUX_STAT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_xm_phy_read
Lloh22:
	adrp	x8, _PHY_B_AS_AN_RES_MSK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PHY_B_AS_AN_RES_MSK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.9:
Lloh25:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _FLOW_STAT_SYMMETRIC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FLOW_STAT_SYMMETRIC@GOTPAGEOFF]
	str	w8, [x20, #16]
Lloh31:
	adrp	x8, _FLOW_STAT_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FLOW_STAT_NONE@GOTPAGEOFF]
	mov	w10, #132
	bics	wzr, w10, w0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
LBB0_12:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	w0, LBB0_14
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_genesis_link_up
LBB0_15:
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_BCOM_STAT,4,2              ; @PHY_BCOM_STAT
	.comm	_PHY_ST_LSYNC,4,2               ; @PHY_ST_LSYNC
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_PHY_ST_AN_OVER,4,2             ; @PHY_ST_AN_OVER
	.comm	_PHY_XMAC_AUNE_LP,4,2           ; @PHY_XMAC_AUNE_LP
	.comm	_PHY_B_AN_RF,4,2                ; @PHY_B_AN_RF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote fault\n"

	.comm	_PHY_BCOM_AUX_STAT,4,2          ; @PHY_BCOM_AUX_STAT
	.comm	_PHY_B_AS_AN_RES_MSK,4,2        ; @PHY_B_AS_AN_RES_MSK
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
l_.str.1:                               ; @.str.1
	.asciz	"duplex mismatch\n"

	.comm	_FLOW_STAT_SYMMETRIC,4,2        ; @FLOW_STAT_SYMMETRIC
	.comm	_FLOW_STAT_REM_SEND,4,2         ; @FLOW_STAT_REM_SEND
	.comm	_FLOW_STAT_LOC_SEND,4,2         ; @FLOW_STAT_LOC_SEND
	.comm	_FLOW_STAT_NONE,4,2             ; @FLOW_STAT_NONE
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.no_dead_strip	_bcom_check_link
.subsections_via_symbols
