	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_check_phy
_b44_check_phy:                         ## @b44_check_phy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_B44_FLAG_EXTERNAL_PHY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_B44_FLAG_100_BASE_T@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	jne	LBB0_24
## %bb.2:
	movq	_B44_TX_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_br32
	movq	_B44_FLAG_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	movq	_TX_CTRL_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%esi, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bw32
	movl	4(%rbx), %edi
	callq	_netif_carrier_on
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b44_link_report                ## TAILCALL
LBB0_3:
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_b44_readphy
	testl	%eax, %eax
	je	LBB0_4
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_B44_MII_AUXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_b44_readphy
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	cmpl	$65535, -28(%rbp)               ## imm = 0xFFFF
	je	LBB0_24
## %bb.6:
	movl	-40(%rbp), %eax
	movq	_MII_AUXCTRL_SPEED@GOTPCREL(%rip), %rdx
	movq	_B44_FLAG_100_BASE_T@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.7:
	orl	(%rbx), %ecx
	jmp	LBB0_9
LBB0_8:
	notl	%ecx
	andl	(%rbx), %ecx
LBB0_9:
	movl	%ecx, (%rbx)
	movq	_MII_AUXCTRL_DUPLEX@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_B44_FLAG_FULL_DUPLEX@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%ecx, %esi
	orl	%ecx, %edx
	testl	%eax, %eax
	cmovel	%esi, %edx
	movl	%edx, (%rbx)
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_10
LBB0_16:
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	jne	LBB0_20
## %bb.18:
	movl	4(%rbx), %edi
	callq	_netif_carrier_off
	jmp	LBB0_19
LBB0_10:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_16
## %bb.11:
	movq	_B44_TX_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_br32
	movl	(%r14), %ecx
	andl	(%rbx), %ecx
	movq	_TX_CTRL_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%esi, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bw32
	movq	_B44_FLAG_FORCE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.12:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_b44_readphy
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_b44_readphy
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edx
	movq	%rbx, %rdi
	callq	_b44_set_flow_ctrl
LBB0_15:
	movl	4(%rbx), %edi
	callq	_netif_carrier_on
LBB0_19:
	movq	%rbx, %rdi
	callq	_b44_link_report
LBB0_20:
	movl	-28(%rbp), %eax
	movq	_BMSR_RFAULT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.21:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movl	-28(%rbp), %eax
LBB0_22:
	movq	_BMSR_JCD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ## @B44_FLAG_EXTERNAL_PHY
	.comm	_B44_FLAG_100_BASE_T,4,2        ## @B44_FLAG_100_BASE_T
	.comm	_B44_TX_CTRL,4,2                ## @B44_TX_CTRL
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ## @B44_FLAG_FULL_DUPLEX
	.comm	_TX_CTRL_DUPLEX,4,2             ## @TX_CTRL_DUPLEX
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_B44_MII_AUXCTRL,4,2            ## @B44_MII_AUXCTRL
	.comm	_MII_AUXCTRL_SPEED,4,2          ## @MII_AUXCTRL_SPEED
	.comm	_MII_AUXCTRL_DUPLEX,4,2         ## @MII_AUXCTRL_DUPLEX
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_B44_FLAG_FORCE_LINK,4,2        ## @B44_FLAG_FORCE_LINK
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_BMSR_RFAULT,4,2                ## @BMSR_RFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remote fault detected in PHY\n"

	.comm	_BMSR_JCD,4,2                   ## @BMSR_JCD
L_.str.1:                               ## @.str.1
	.asciz	"Jabber detected in PHY\n"

	.no_dead_strip	_b44_check_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_check_phy
_b44_check_phy:                         ; @b44_check_phy
	.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	w8, [x0]
Lloh0:
	adrp	x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _B44_FLAG_100_BASE_T@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B44_FLAG_100_BASE_T@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbnz	x0, LBB0_23
; %bb.2:
Lloh6:
	adrp	x20, _B44_TX_CTRL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _B44_TX_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_br32
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _B44_FLAG_FULL_DUPLEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _B44_FLAG_FULL_DUPLEX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _TX_CTRL_DUPLEX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TX_CTRL_DUPLEX@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w2, w10, w11, eq
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bw32
	ldr	w0, [x19, #4]
	bl	_netif_carrier_on
	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
	add	sp, sp, #64
	b	_b44_link_report
LBB0_3:
Lloh14:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_b44_readphy
	cbnz	w0, LBB0_23
; %bb.4:
Lloh17:
	adrp	x8, _B44_MII_AUXCTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B44_MII_AUXCTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_b44_readphy
	ldr	w8, [sp, #12]
	cmp	w0, #0
	mov	w9, #65535
	ccmp	w8, w9, #4, eq
	b.eq	LBB0_23
; %bb.5:
Lloh20:
	adrp	x9, _MII_AUXCTRL_SPEED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MII_AUXCTRL_SPEED@GOTPAGEOFF]
	ldr	w8, [sp, #8]
Lloh22:
	ldr	w10, [x9]
Lloh23:
	adrp	x9, _B44_FLAG_100_BASE_T@GOTPAGE
Lloh24:
	ldr	x9, [x9, _B44_FLAG_100_BASE_T@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w10, [x19]
	orr	w9, w10, w9
	b	LBB0_8
LBB0_7:
	ldr	w10, [x19]
	bic	w9, w10, w9
LBB0_8:
	str	w9, [x19]
Lloh26:
	adrp	x10, _MII_AUXCTRL_DUPLEX@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MII_AUXCTRL_DUPLEX@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x20, _B44_FLAG_FULL_DUPLEX@GOTPAGE
Lloh30:
	ldr	x20, [x20, _B44_FLAG_FULL_DUPLEX@GOTPAGEOFF]
	ldr	w11, [x20]
	bic	w12, w9, w11
	orr	w9, w11, w9
	tst	w10, w8
	csel	w8, w12, w9, eq
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_12
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_19
; %bb.10:
	ldr	w8, [sp, #12]
Lloh31:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.11:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_off
	b	LBB0_18
LBB0_12:
	ldr	w8, [sp, #12]
Lloh34:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.13:
Lloh37:
	adrp	x21, _B44_TX_CTRL@GOTPAGE
Lloh38:
	ldr	x21, [x21, _B44_TX_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_br32
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh39:
	adrp	x10, _TX_CTRL_DUPLEX@GOTPAGE
Lloh40:
	ldr	x10, [x10, _TX_CTRL_DUPLEX@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w2, w10, w11, eq
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bw32
	ldr	w8, [x19]
Lloh42:
	adrp	x9, _B44_FLAG_FORCE_LINK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _B44_FLAG_FORCE_LINK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.14:
Lloh45:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_b44_readphy
	cbnz	w0, LBB0_17
; %bb.15:
Lloh48:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_b44_readphy
	cbnz	w0, LBB0_17
; %bb.16:
	ldp	w2, w1, [sp]
	mov	x0, x19
	bl	_b44_set_flow_ctrl
LBB0_17:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_on
LBB0_18:
	mov	x0, x19
	bl	_b44_link_report
LBB0_19:
	ldr	w8, [sp, #12]
Lloh51:
	adrp	x9, _BMSR_RFAULT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _BMSR_RFAULT@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	w0, [x19, #4]
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	ldr	w8, [sp, #12]
LBB0_21:
Lloh56:
	adrp	x9, _BMSR_JCD@GOTPAGE
Lloh57:
	ldr	x9, [x9, _BMSR_JCD@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w0, [x19, #4]
Lloh59:
	adrp	x1, l_.str.1@PAGE
Lloh60:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
LBB0_23:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ; @B44_FLAG_EXTERNAL_PHY
	.comm	_B44_FLAG_100_BASE_T,4,2        ; @B44_FLAG_100_BASE_T
	.comm	_B44_TX_CTRL,4,2                ; @B44_TX_CTRL
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ; @B44_FLAG_FULL_DUPLEX
	.comm	_TX_CTRL_DUPLEX,4,2             ; @TX_CTRL_DUPLEX
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_B44_MII_AUXCTRL,4,2            ; @B44_MII_AUXCTRL
	.comm	_MII_AUXCTRL_SPEED,4,2          ; @MII_AUXCTRL_SPEED
	.comm	_MII_AUXCTRL_DUPLEX,4,2         ; @MII_AUXCTRL_DUPLEX
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_B44_FLAG_FORCE_LINK,4,2        ; @B44_FLAG_FORCE_LINK
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_BMSR_RFAULT,4,2                ; @BMSR_RFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remote fault detected in PHY\n"

	.comm	_BMSR_JCD,4,2                   ; @BMSR_JCD
l_.str.1:                               ; @.str.1
	.asciz	"Jabber detected in PHY\n"

	.no_dead_strip	_b44_check_phy
.subsections_via_symbols
