	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_config_rgmii_mode
_adin_config_rgmii_mode:                ## @adin_config_rgmii_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	%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, %r14
	callq	_phy_interface_is_rgmii
	movq	_MDIO_MMD_VEND1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ADIN1300_GE_RGMII_CFG_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_phy_read_mmd
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	_ADIN1300_GE_RGMII_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	movq	(%r14), %rcx
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_ADIN1300_GE_RGMII_RXID_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	cmpq	%rdx, %rcx
	je	LBB0_4
## %bb.3:
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_4
## %bb.5:
	notl	%r13d
	andl	%r13d, %eax
	jmp	LBB0_6
LBB0_12:
	movq	_ADIN1300_GE_RGMII_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_clear_bits_mmd             ## TAILCALL
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	orl	%eax, %r13d
	movq	_adin_rgmii_delays@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADIN1300_RGMII_2_00_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_adin_get_reg_value
	movq	_ADIN1300_GE_RGMII_RX_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	notl	%r12d
	andl	%r13d, %r12d
	movl	%eax, %edi
	callq	_ADIN1300_GE_RGMII_RX_SEL
	orl	%r12d, %eax
	movq	(%r14), %rcx
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_6:
	movq	_ADIN1300_GE_RGMII_TXID_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	cmpq	%rdx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.9:
	notl	%r12d
	andl	%r12d, %eax
	jmp	LBB0_10
LBB0_8:
	orl	%eax, %r12d
	movq	_adin_rgmii_delays@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADIN1300_RGMII_2_00_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_adin_get_reg_value
	movq	_ADIN1300_GE_RGMII_GTX_MSK@GOTPCREL(%rip), %rcx
	movq	%rbx, %r13
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	%eax, %edi
	callq	_ADIN1300_GE_RGMII_GTX_SEL
	orl	%ebx, %eax
	movq	%r13, %rbx
LBB0_10:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write_mmd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_VEND1,4,2             ## @MDIO_MMD_VEND1
	.comm	_ADIN1300_GE_RGMII_CFG_REG,4,2  ## @ADIN1300_GE_RGMII_CFG_REG
	.comm	_ADIN1300_GE_RGMII_EN,4,2       ## @ADIN1300_GE_RGMII_EN
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_ADIN1300_GE_RGMII_RXID_EN,4,2  ## @ADIN1300_GE_RGMII_RXID_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,rx-internal-delay-ps"

	.comm	_adin_rgmii_delays,4,2          ## @adin_rgmii_delays
	.comm	_ADIN1300_RGMII_2_00_NS,4,2     ## @ADIN1300_RGMII_2_00_NS
	.comm	_ADIN1300_GE_RGMII_RX_MSK,4,2   ## @ADIN1300_GE_RGMII_RX_MSK
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_ADIN1300_GE_RGMII_TXID_EN,4,2  ## @ADIN1300_GE_RGMII_TXID_EN
L_.str.1:                               ## @.str.1
	.asciz	"adi,tx-internal-delay-ps"

	.comm	_ADIN1300_GE_RGMII_GTX_MSK,4,2  ## @ADIN1300_GE_RGMII_GTX_MSK
	.no_dead_strip	_adin_config_rgmii_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_config_rgmii_mode
_adin_config_rgmii_mode:                ; @adin_config_rgmii_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_phy_interface_is_rgmii
Lloh0:
	adrp	x20, _MDIO_MMD_VEND1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDIO_MMD_VEND1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _ADIN1300_GE_RGMII_CFG_REG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ADIN1300_GE_RGMII_CFG_REG@GOTPAGEOFF]
	ldr	w2, [x21]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _ADIN1300_GE_RGMII_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADIN1300_GE_RGMII_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w10, w8, w0
	ldr	x8, [x19]
Lloh7:
	adrp	x24, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh8:
	ldr	x24, [x24, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh9:
	adrp	x11, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x11]
Lloh12:
	adrp	x11, _ADIN1300_GE_RGMII_RXID_EN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ADIN1300_GE_RGMII_RXID_EN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	x8, x9
	ccmp	x8, x12, #4, ne
Lloh15:
	adrp	x22, _adin_rgmii_delays@GOTPAGE
Lloh16:
	ldr	x22, [x22, _adin_rgmii_delays@GOTPAGEOFF]
Lloh17:
	adrp	x23, _ADIN1300_RGMII_2_00_NS@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ADIN1300_RGMII_2_00_NS@GOTPAGEOFF]
	b.ne	LBB0_6
; %bb.3:
	orr	w25, w11, w10
	ldr	w2, [x22]
	ldr	w3, [x23]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_adin_get_reg_value
Lloh21:
	adrp	x8, _ADIN1300_GE_RGMII_RX_MSK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADIN1300_GE_RGMII_RX_MSK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w25, w25, w8
	bl	_ADIN1300_GE_RGMII_RX_SEL
	orr	w10, w25, w0
	ldr	x8, [x19]
	ldr	x9, [x24]
	b	LBB0_7
LBB0_4:
Lloh24:
	adrp	x8, _ADIN1300_GE_RGMII_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADIN1300_GE_RGMII_EN@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_phy_clear_bits_mmd
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	bic	w10, w10, w11
LBB0_7:
Lloh27:
	adrp	x11, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh28:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x11]
Lloh30:
	adrp	x11, _ADIN1300_GE_RGMII_TXID_EN@GOTPAGE
Lloh31:
	ldr	x11, [x11, _ADIN1300_GE_RGMII_TXID_EN@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	cmp	x8, x9
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_9
; %bb.8:
	orr	w24, w11, w10
	ldr	w2, [x22]
	ldr	w3, [x23]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_adin_get_reg_value
Lloh35:
	adrp	x8, _ADIN1300_GE_RGMII_GTX_MSK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ADIN1300_GE_RGMII_GTX_MSK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bic	w22, w24, w8
	bl	_ADIN1300_GE_RGMII_GTX_SEL
	orr	w3, w22, w0
	b	LBB0_10
LBB0_9:
	bic	w3, w10, w11
LBB0_10:
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_phy_write_mmd
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_VEND1,4,2             ; @MDIO_MMD_VEND1
	.comm	_ADIN1300_GE_RGMII_CFG_REG,4,2  ; @ADIN1300_GE_RGMII_CFG_REG
	.comm	_ADIN1300_GE_RGMII_EN,4,2       ; @ADIN1300_GE_RGMII_EN
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_ADIN1300_GE_RGMII_RXID_EN,4,2  ; @ADIN1300_GE_RGMII_RXID_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,rx-internal-delay-ps"

	.comm	_adin_rgmii_delays,4,2          ; @adin_rgmii_delays
	.comm	_ADIN1300_RGMII_2_00_NS,4,2     ; @ADIN1300_RGMII_2_00_NS
	.comm	_ADIN1300_GE_RGMII_RX_MSK,4,2   ; @ADIN1300_GE_RGMII_RX_MSK
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,8,3 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_ADIN1300_GE_RGMII_TXID_EN,4,2  ; @ADIN1300_GE_RGMII_TXID_EN
l_.str.1:                               ; @.str.1
	.asciz	"adi,tx-internal-delay-ps"

	.comm	_ADIN1300_GE_RGMII_GTX_MSK,4,2  ; @ADIN1300_GE_RGMII_GTX_MSK
	.no_dead_strip	_adin_config_rgmii_mode
.subsections_via_symbols
