	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm87xx_read_status
_bcm87xx_read_status:                   ## @bcm87xx_read_status
	.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
	movq	_BCM87XX_PMD_RX_SIGNAL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	testb	$1, %al
	je	LBB0_7
## %bb.2:
	movq	_BCM87XX_10GBASER_PCS_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	testb	$1, %al
	je	LBB0_7
## %bb.4:
	movq	_BCM87XX_XGXS_LANE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_6
LBB0_7:
	movl	$0, 4(%rbx)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movabsq	$4294977296, %rax               ## imm = 0x100002710
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM87XX_PMD_RX_SIGNAL_DETECT,4,2 ## @BCM87XX_PMD_RX_SIGNAL_DETECT
	.comm	_BCM87XX_10GBASER_PCS_STATUS,4,2 ## @BCM87XX_10GBASER_PCS_STATUS
	.comm	_BCM87XX_XGXS_LANE_STATUS,4,2   ## @BCM87XX_XGXS_LANE_STATUS
	.no_dead_strip	_bcm87xx_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bcm87xx_read_status
lCPI0_0:
	.long	10000                           ; 0x2710
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bcm87xx_read_status:                   ; @bcm87xx_read_status
	.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
Lloh0:
	adrp	x8, _BCM87XX_PMD_RX_SIGNAL_DETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM87XX_PMD_RX_SIGNAL_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phy_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	tbz	w0, #0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _BCM87XX_10GBASER_PCS_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM87XX_10GBASER_PCS_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_7
; %bb.3:
	tbz	w0, #0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _BCM87XX_XGXS_LANE_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCM87XX_XGXS_LANE_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_7
; %bb.5:
	tbnz	w0, #12, LBB0_8
LBB0_6:
	mov	w0, #0
	str	wzr, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM87XX_PMD_RX_SIGNAL_DETECT,4,2 ; @BCM87XX_PMD_RX_SIGNAL_DETECT
	.comm	_BCM87XX_10GBASER_PCS_STATUS,4,2 ; @BCM87XX_10GBASER_PCS_STATUS
	.comm	_BCM87XX_XGXS_LANE_STATUS,4,2   ; @BCM87XX_XGXS_LANE_STATUS
	.no_dead_strip	_bcm87xx_read_status
.subsections_via_symbols
