	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_gmac_powerup
_rk_gmac_powerup:                       ## @rk_gmac_powerup
	.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, %r15
	movq	32(%rdi), %r14
	movl	$1, %esi
	callq	_gmac_clk_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rax
	movl	24(%r15), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rax
	movl	28(%r15), %esi
	movq	%r15, %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rax
	movq	%r15, %rdi
	xorl	%esi, %esi
LBB0_8:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rax
	movl	28(%r15), %esi
	movl	24(%r15), %edx
	movq	%r15, %rdi
LBB0_10:
	callq	*8(%rax)
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_phy_power_on
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gmac_clk_enable
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_rk_gmac_integrated_phy_powerup
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init for RGMII\n"

L_.str.1:                               ## @.str.1
	.asciz	"init for RGMII_ID\n"

L_.str.2:                               ## @.str.2
	.asciz	"init for RGMII_RXID\n"

L_.str.3:                               ## @.str.3
	.asciz	"init for RGMII_TXID\n"

L_.str.4:                               ## @.str.4
	.asciz	"init for RMII\n"

L_.str.5:                               ## @.str.5
	.asciz	"NO interface defined!\n"

	.no_dead_strip	_rk_gmac_powerup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_gmac_powerup
_rk_gmac_powerup:                       ; @rk_gmac_powerup
	.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	x20, [x0, #32]
	mov	w1, #1
	bl	_gmac_clk_enable
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x1, l_.str.4@PAGE
Lloh3:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	b	LBB0_11
LBB0_4:
Lloh4:
	adrp	x1, l_.str.5@PAGE
Lloh5:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w2, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #28]
	mov	x0, x19
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #0
LBB0_8:
	mov	w2, #0
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldp	w2, w1, [x19, #24]
	mov	x0, x19
LBB0_10:
	blr	x8
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_phy_power_on
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_gmac_clk_enable
	b	LBB0_16
LBB0_13:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get_sync
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_rk_gmac_integrated_phy_powerup
LBB0_15:
	mov	w21, #0
LBB0_16:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init for RGMII\n"

l_.str.1:                               ; @.str.1
	.asciz	"init for RGMII_ID\n"

l_.str.2:                               ; @.str.2
	.asciz	"init for RGMII_RXID\n"

l_.str.3:                               ; @.str.3
	.asciz	"init for RGMII_TXID\n"

l_.str.4:                               ; @.str.4
	.asciz	"init for RMII\n"

l_.str.5:                               ; @.str.5
	.asciz	"NO interface defined!\n"

	.no_dead_strip	_rk_gmac_powerup
.subsections_via_symbols
