	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_config_rmii_mode
_adin_config_rmii_mode:                 ## @adin_config_rmii_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
	movq	(%rdi), %rax
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %rcx
	movq	_MDIO_MMD_VEND1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ADIN1300_GE_RMII_CFG_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	_ADIN1300_GE_RMII_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	%eax, %r13d
	movq	_adin_rmii_fifo_depths@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADIN1300_RMII_8_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_adin_get_reg_value
	movq	_ADIN1300_GE_RMII_FIFO_DEPTH_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	movl	%eax, %edi
	callq	_ADIN1300_GE_RMII_FIFO_DEPTH_SEL
	orl	%eax, %ebx
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write_mmd                  ## TAILCALL
LBB0_3:
	movq	_ADIN1300_GE_RMII_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_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ## @PHY_INTERFACE_MODE_RMII
	.comm	_MDIO_MMD_VEND1,4,2             ## @MDIO_MMD_VEND1
	.comm	_ADIN1300_GE_RMII_CFG_REG,4,2   ## @ADIN1300_GE_RMII_CFG_REG
	.comm	_ADIN1300_GE_RMII_EN,4,2        ## @ADIN1300_GE_RMII_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,fifo-depth-bits"

	.comm	_adin_rmii_fifo_depths,4,2      ## @adin_rmii_fifo_depths
	.comm	_ADIN1300_RMII_8_BITS,4,2       ## @ADIN1300_RMII_8_BITS
	.comm	_ADIN1300_GE_RMII_FIFO_DEPTH_MSK,4,2 ## @ADIN1300_GE_RMII_FIFO_DEPTH_MSK
	.no_dead_strip	_adin_config_rmii_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_rmii_mode
_adin_config_rmii_mode:                 ; @adin_config_rmii_mode
	.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	x8, [x0]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
Lloh2:
	adrp	x20, _MDIO_MMD_VEND1@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MDIO_MMD_VEND1@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _ADIN1300_GE_RMII_CFG_REG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ADIN1300_GE_RMII_CFG_REG@GOTPAGEOFF]
	ldr	w2, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _ADIN1300_GE_RMII_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADIN1300_GE_RMII_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w22, w8, w0
Lloh10:
	adrp	x8, _adin_rmii_fifo_depths@GOTPAGE
Lloh11:
	ldr	x8, [x8, _adin_rmii_fifo_depths@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _ADIN1300_RMII_8_BITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADIN1300_RMII_8_BITS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_adin_get_reg_value
Lloh18:
	adrp	x8, _ADIN1300_GE_RMII_FIFO_DEPTH_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADIN1300_GE_RMII_FIFO_DEPTH_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w22, w22, w8
	bl	_ADIN1300_GE_RMII_FIFO_DEPTH_SEL
	orr	w3, w22, w0
	ldr	w1, [x20]
	ldr	w2, [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	_phy_write_mmd
LBB0_3:
Lloh21:
	adrp	x8, _ADIN1300_GE_RMII_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADIN1300_GE_RMII_EN@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	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	_phy_clear_bits_mmd
LBB0_4:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ; @PHY_INTERFACE_MODE_RMII
	.comm	_MDIO_MMD_VEND1,4,2             ; @MDIO_MMD_VEND1
	.comm	_ADIN1300_GE_RMII_CFG_REG,4,2   ; @ADIN1300_GE_RMII_CFG_REG
	.comm	_ADIN1300_GE_RMII_EN,4,2        ; @ADIN1300_GE_RMII_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,fifo-depth-bits"

	.comm	_adin_rmii_fifo_depths,4,2      ; @adin_rmii_fifo_depths
	.comm	_ADIN1300_RMII_8_BITS,4,2       ; @ADIN1300_RMII_8_BITS
	.comm	_ADIN1300_GE_RMII_FIFO_DEPTH_MSK,4,2 ; @ADIN1300_GE_RMII_FIFO_DEPTH_MSK
	.no_dead_strip	_adin_config_rmii_mode
.subsections_via_symbols
