	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_check_pcs_mode
_stmmac_check_pcs_mode:                 ## @stmmac_check_pcs_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 16(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %eax
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rcx
	movq	_STMMAC_PCS_RGMII@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %rsi
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.2:
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.3:
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.4:
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.5:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:
	movq	_STMMAC_PCS_SGMII@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	8(%rbx), %edi
	callq	_netdev_dbg
	movl	(%r14), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII,4,2   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,4,2 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,4,2 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,4,2 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCS RGMII support enabled\n"

	.comm	_STMMAC_PCS_RGMII,4,2           ## @STMMAC_PCS_RGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ## @PHY_INTERFACE_MODE_SGMII
L_.str.1:                               ## @.str.1
	.asciz	"PCS SGMII support enabled\n"

	.comm	_STMMAC_PCS_SGMII,4,2           ## @STMMAC_PCS_SGMII
	.no_dead_strip	_stmmac_check_pcs_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_check_pcs_mode
_stmmac_check_pcs_mode:                 ; @stmmac_check_pcs_mode
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh8:
	adrp	x12, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	ldr	w12, [x12]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x20, _STMMAC_PCS_RGMII@GOTPAGE
Lloh13:
	ldr	x20, [x20, _STMMAC_PCS_RGMII@GOTPAGEOFF]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh19:
	adrp	x20, _STMMAC_PCS_SGMII@GOTPAGE
Lloh20:
	ldr	x20, [x20, _STMMAC_PCS_SGMII@GOTPAGEOFF]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_netdev_dbg
	ldr	w8, [x20]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII,4,2   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,4,2 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,4,2 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,4,2 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCS RGMII support enabled\n"

	.comm	_STMMAC_PCS_RGMII,4,2           ; @STMMAC_PCS_RGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ; @PHY_INTERFACE_MODE_SGMII
l_.str.1:                               ; @.str.1
	.asciz	"PCS SGMII support enabled\n"

	.comm	_STMMAC_PCS_SGMII,4,2           ; @STMMAC_PCS_SGMII
	.no_dead_strip	_stmmac_check_pcs_mode
.subsections_via_symbols
