	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcvr_10g_set_lb_bcm870x
_xcvr_10g_set_lb_bcm870x:               ## @xcvr_10g_set_lb_bcm870x
	.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
	movl	(%rdi), %esi
	movq	_BCM8704_PCS_DEV_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_mdio_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_BMCR_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	8(%rbx), %rdx
	movq	_LOOPBACK_MAC@GOTPCREL(%rip), %rsi
	orl	%eax, %r8d
	cmpq	(%rsi), %rdx
	cmovnel	%ecx, %r8d
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_write                     ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM8704_PCS_DEV_ADDR,4,2       ## @BCM8704_PCS_DEV_ADDR
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_LOOPBACK,4,2              ## @BMCR_LOOPBACK
	.comm	_LOOPBACK_MAC,8,3               ## @LOOPBACK_MAC
	.no_dead_strip	_xcvr_10g_set_lb_bcm870x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcvr_10g_set_lb_bcm870x
_xcvr_10g_set_lb_bcm870x:               ; @xcvr_10g_set_lb_bcm870x
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w1, [x0]
Lloh0:
	adrp	x20, _BCM8704_PCS_DEV_ADDR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BCM8704_PCS_DEV_ADDR@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_mdio_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _BMCR_LOOPBACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BMCR_LOOPBACK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w9, w0, w8
	ldr	x10, [x19, #8]
Lloh7:
	adrp	x11, _LOOPBACK_MAC@GOTPAGE
Lloh8:
	ldr	x11, [x11, _LOOPBACK_MAC@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	orr	w8, w8, w0
	cmp	x10, x11
	csel	w4, w8, w9, eq
	ldr	w1, [x19]
	ldr	w2, [x20]
	ldr	w3, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mdio_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM8704_PCS_DEV_ADDR,4,2       ; @BCM8704_PCS_DEV_ADDR
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_LOOPBACK,4,2              ; @BMCR_LOOPBACK
	.comm	_LOOPBACK_MAC,8,3               ; @LOOPBACK_MAC
	.no_dead_strip	_xcvr_10g_set_lb_bcm870x
.subsections_via_symbols
