	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_phy_rgmii_set
_ar8327_phy_rgmii_set:                  ## @ar8327_phy_rgmii_set
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -36(%rbp)
	movq	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movl	(%rsi), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_AR8327_PHY_MODE_SEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_read
	movq	_AR8327_PHY_MODE_SEL_RGMII@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_write
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_AR8327_PHY_SYS_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_read
	movq	_AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_write
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_AR8327_PHY_TEST_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_read
	movq	_AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ar8xxx_phy_dbg_write
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.5(%rip), %rdi
LBB0_8:
	callq	_pr_err
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qca,phy-rgmii-en"

L_.str.1:                               ## @.str.1
	.asciz	"ar8327: qca,phy-rgmii-en is not specified\n"

	.comm	_AR8327_PHY_MODE_SEL,4,2        ## @AR8327_PHY_MODE_SEL
	.comm	_AR8327_PHY_MODE_SEL_RGMII,4,2  ## @AR8327_PHY_MODE_SEL_RGMII
L_.str.2:                               ## @.str.2
	.asciz	"qca,txclk-delay-en"

L_.str.3:                               ## @.str.3
	.asciz	"ar8327: qca,txclk-delay-en is not specified\n"

	.comm	_AR8327_PHY_SYS_CTRL,4,2        ## @AR8327_PHY_SYS_CTRL
	.comm	_AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY,4,2 ## @AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY
L_.str.4:                               ## @.str.4
	.asciz	"qca,rxclk-delay-en"

L_.str.5:                               ## @.str.5
	.asciz	"ar8327: qca,rxclk-delay-en is not specified\n"

	.comm	_AR8327_PHY_TEST_CTRL,4,2       ## @AR8327_PHY_TEST_CTRL
	.comm	_AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY,4,2 ## @AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY
	.no_dead_strip	_ar8327_phy_rgmii_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_phy_rgmii_set
_ar8327_phy_rgmii_set:                  ; @ar8327_phy_rgmii_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	ldr	x21, [x1, #8]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w20, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x22, _AR8327_PHY_MODE_SEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AR8327_PHY_MODE_SEL@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_read
Lloh4:
	adrp	x8, _AR8327_PHY_MODE_SEL_RGMII@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR8327_PHY_MODE_SEL_RGMII@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_write
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	w0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x22, _AR8327_PHY_SYS_CTRL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _AR8327_PHY_SYS_CTRL@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_read
Lloh11:
	adrp	x8, _AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_write
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	w0, LBB0_7
; %bb.4:
Lloh16:
	adrp	x21, _AR8327_PHY_TEST_CTRL@GOTPAGE
Lloh17:
	ldr	x21, [x21, _AR8327_PHY_TEST_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_read
Lloh18:
	adrp	x8, _AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_ar8xxx_phy_dbg_write
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pr_err
LBB0_6:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_8:
	bl	_pr_err
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qca,phy-rgmii-en"

l_.str.1:                               ; @.str.1
	.asciz	"ar8327: qca,phy-rgmii-en is not specified\n"

	.comm	_AR8327_PHY_MODE_SEL,4,2        ; @AR8327_PHY_MODE_SEL
	.comm	_AR8327_PHY_MODE_SEL_RGMII,4,2  ; @AR8327_PHY_MODE_SEL_RGMII
l_.str.2:                               ; @.str.2
	.asciz	"qca,txclk-delay-en"

l_.str.3:                               ; @.str.3
	.asciz	"ar8327: qca,txclk-delay-en is not specified\n"

	.comm	_AR8327_PHY_SYS_CTRL,4,2        ; @AR8327_PHY_SYS_CTRL
	.comm	_AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY,4,2 ; @AR8327_PHY_SYS_CTRL_RGMII_TX_DELAY
l_.str.4:                               ; @.str.4
	.asciz	"qca,rxclk-delay-en"

l_.str.5:                               ; @.str.5
	.asciz	"ar8327: qca,rxclk-delay-en is not specified\n"

	.comm	_AR8327_PHY_TEST_CTRL,4,2       ; @AR8327_PHY_TEST_CTRL
	.comm	_AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY,4,2 ; @AR8327_PHY_TEST_CTRL_RGMII_RX_DELAY
	.no_dead_strip	_ar8327_phy_rgmii_set
.subsections_via_symbols
