	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcom_phy_intr
_bcom_phy_intr:                         ## @bcom_phy_intr
	.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	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %r14d
	movq	_PHY_BCOM_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_phy_read
	movl	%eax, %r12d
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	movl	%r12d, %r9d
	callq	_netif_printk
	movq	_PHY_B_IS_PSE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movslq	%r14d, %rax
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_2:
	movq	_PHY_B_IS_NO_HDCL@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PHY_BCOM_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_phy_read
	movl	%eax, %ebx
	movl	(%r13), %edx
	movq	_PHY_CT_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%ebx, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_phy_write
	movl	(%r13), %edx
	movq	_PHY_CT_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%ebx, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_phy_write
LBB0_4:
	movq	_PHY_B_IS_AN_PR@GOTPCREL(%rip), %rax
	movq	_PHY_B_IS_LST_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcom_check_link                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_BCOM_INT_STAT,4,2          ## @PHY_BCOM_INT_STAT
	.comm	_intr,4,2                       ## @intr
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy interrupt status 0x%x\n"

	.comm	_PHY_B_IS_PSE,4,2               ## @PHY_B_IS_PSE
L_.str.1:                               ## @.str.1
	.asciz	"%s: uncorrectable pair swap error\n"

	.comm	_PHY_B_IS_NO_HDCL,4,2           ## @PHY_B_IS_NO_HDCL
	.comm	_PHY_BCOM_CTRL,4,2              ## @PHY_BCOM_CTRL
	.comm	_PHY_CT_LOOP,4,2                ## @PHY_CT_LOOP
	.comm	_PHY_B_IS_AN_PR,4,2             ## @PHY_B_IS_AN_PR
	.comm	_PHY_B_IS_LST_CHANGE,4,2        ## @PHY_B_IS_LST_CHANGE
	.no_dead_strip	_bcom_phy_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcom_phy_intr
_bcom_phy_intr:                         ; @bcom_phy_intr
	.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	x22, x0
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
	sxtw	x20, w1
Lloh0:
	adrp	x8, _PHY_BCOM_INT_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_BCOM_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_xm_phy_read
	mov	x21, x0
Lloh3:
	adrp	x8, _intr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x22, #4]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x22
	mov	x5, x21
	bl	_netif_printk
Lloh11:
	adrp	x8, _PHY_B_IS_PSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_B_IS_PSE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_2:
Lloh16:
	adrp	x8, _PHY_B_IS_NO_HDCL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_B_IS_NO_HDCL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh19:
	adrp	x23, _PHY_BCOM_CTRL@GOTPAGE
Lloh20:
	ldr	x23, [x23, _PHY_BCOM_CTRL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_xm_phy_read
	mov	x22, x0
	ldr	w2, [x23]
Lloh21:
	adrp	x24, _PHY_CT_LOOP@GOTPAGE
Lloh22:
	ldr	x24, [x24, _PHY_CT_LOOP@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w3, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_xm_phy_write
	ldr	w2, [x23]
	ldr	w8, [x24]
	bic	w3, w22, w8
	mov	x0, x19
	mov	x1, x20
	bl	_xm_phy_write
LBB0_4:
Lloh23:
	adrp	x8, _PHY_B_IS_AN_PR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PHY_B_IS_AN_PR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PHY_B_IS_LST_CHANGE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PHY_B_IS_LST_CHANGE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, 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	_bcom_check_link
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_BCOM_INT_STAT,4,2          ; @PHY_BCOM_INT_STAT
	.comm	_intr,4,2                       ; @intr
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy interrupt status 0x%x\n"

	.comm	_PHY_B_IS_PSE,4,2               ; @PHY_B_IS_PSE
l_.str.1:                               ; @.str.1
	.asciz	"%s: uncorrectable pair swap error\n"

	.comm	_PHY_B_IS_NO_HDCL,4,2           ; @PHY_B_IS_NO_HDCL
	.comm	_PHY_BCOM_CTRL,4,2              ; @PHY_BCOM_CTRL
	.comm	_PHY_CT_LOOP,4,2                ; @PHY_CT_LOOP
	.comm	_PHY_B_IS_AN_PR,4,2             ; @PHY_B_IS_AN_PR
	.comm	_PHY_B_IS_LST_CHANGE,4,2        ; @PHY_B_IS_LST_CHANGE
	.no_dead_strip	_bcom_phy_intr
.subsections_via_symbols
