	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a20_if_dwc_init
_a20_if_dwc_init:                       ## @a20_if_dwc_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_ofw_bus_get_node
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_OF_getprop_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	leaq	-36(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_11
LBB0_4:
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r15
	cmoveq	%rax, %r15
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_clk_get_by_name
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_11
LBB0_6:
	movl	-36(%rbp), %edi
	movl	-32(%rbp), %esi
	callq	_clk_set_parent_by_clk
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.8(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_regulator_get_by_ofw_property
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	-28(%rbp), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movl	%r15d, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy-mode"

L_.str.1:                               ## @.str.1
	.asciz	"allwinner_gmac_tx"

L_.str.2:                               ## @.str.2
	.asciz	"could not get tx clk\n"

L_.str.3:                               ## @.str.3
	.asciz	"rgmii"

L_.str.4:                               ## @.str.4
	.asciz	"gmac_int_tx"

L_.str.5:                               ## @.str.5
	.asciz	"mii_phy_tx"

L_.str.6:                               ## @.str.6
	.asciz	"could not get clock '%s'\n"

L_.str.7:                               ## @.str.7
	.asciz	"could not set tx clk parent\n"

L_.str.8:                               ## @.str.8
	.asciz	"phy-supply"

L_.str.9:                               ## @.str.9
	.asciz	"could not enable PHY regulator\n"

	.no_dead_strip	_a20_if_dwc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a20_if_dwc_init
_a20_if_dwc_init:                       ; @a20_if_dwc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_ofw_bus_get_node
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_OF_getprop_alloc
	cbz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #20
	mov	x0, x19
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_3:
	ldr	x0, [sp, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh10:
	adrp	x9, l_.str.4@PAGE
Lloh11:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x21, x9, x8, eq
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_clk_get_by_name
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_5:
	ldp	w1, w0, [sp, #16]
	bl	_clk_set_parent_by_clk
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x2, l_.str.8@PAGE
Lloh17:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_regulator_get_by_ofw_property
	mov	w20, #0
	cbnz	x0, LBB0_11
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_regulator_enable
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.9:
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_device_printf
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy-mode"

l_.str.1:                               ; @.str.1
	.asciz	"allwinner_gmac_tx"

l_.str.2:                               ; @.str.2
	.asciz	"could not get tx clk\n"

l_.str.3:                               ; @.str.3
	.asciz	"rgmii"

l_.str.4:                               ; @.str.4
	.asciz	"gmac_int_tx"

l_.str.5:                               ; @.str.5
	.asciz	"mii_phy_tx"

l_.str.6:                               ; @.str.6
	.asciz	"could not get clock '%s'\n"

l_.str.7:                               ; @.str.7
	.asciz	"could not set tx clk parent\n"

l_.str.8:                               ; @.str.8
	.asciz	"phy-supply"

l_.str.9:                               ; @.str.9
	.asciz	"could not enable PHY regulator\n"

	.no_dead_strip	_a20_if_dwc_init
.subsections_via_symbols
