	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_gmac_clk_init
_rk_gmac_clk_init:                      ## @rk_gmac_clk_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	104(%rbx), %r15
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 96(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 88(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 80(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 72(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	8(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_16
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 64(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	cmpq	$0, 40(%rbx)
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 56(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	cmpq	$0, 40(%rbx)
	je	LBB0_20
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	jmp	LBB0_22
LBB0_20:
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_22
## %bb.21:
	movq	32(%rbx), %rdi
	movl	$50000000, %esi                 ## imm = 0x2FAF080
	callq	_clk_set_rate
LBB0_22:
	movq	(%r14), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.23:
	cmpq	$0, 24(%rbx)
	je	LBB0_27
## %bb.24:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_of_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	callq	_PTR_ERR
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_27
LBB0_26:
	movl	$50000000, %esi                 ## imm = 0x2FAF080
	callq	_clk_set_rate
LBB0_27:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_clk_rx"

L_.str.1:                               ## @.str.1
	.asciz	"cannot get clock %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"mac_clk_tx"

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

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

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

	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ## @PHY_INTERFACE_MODE_RMII
L_.str.6:                               ## @.str.6
	.asciz	"clk_mac_ref"

L_.str.7:                               ## @.str.7
	.asciz	"clk_mac_refout"

L_.str.8:                               ## @.str.8
	.asciz	"clk_mac_speed"

L_.str.9:                               ## @.str.9
	.asciz	"clock input from PHY\n"

L_.str.10:                              ## @.str.10
	.asciz	"Cannot get PHY clock: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rk_gmac_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_gmac_clk_init
_rk_gmac_clk_init:                      ; @rk_gmac_clk_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x19, [x22, #104]
	str	wzr, [x22]
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_2:
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
Lloh8:
	adrp	x21, l_.str.3@PAGE
Lloh9:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
Lloh12:
	adrp	x21, l_.str.4@PAGE
Lloh13:
	add	x21, x21, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh16:
	adrp	x21, l_.str.5@PAGE
Lloh17:
	add	x21, x21, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	ldr	x8, [x22, #8]
Lloh20:
	adrp	x23, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh21:
	ldr	x23, [x23, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
Lloh22:
	adrp	x21, l_.str.6@PAGE
Lloh23:
	add	x21, x21, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_16
; %bb.14:
Lloh26:
	adrp	x21, l_.str.7@PAGE
Lloh27:
	add	x21, x21, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_16:
Lloh30:
	adrp	x21, l_.str.8@PAGE
Lloh31:
	add	x21, x21, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_get
	str	x0, [x22, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_18:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_20
; %bb.19:
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_22
LBB0_20:
	ldr	x8, [x22, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	x0, [x22, #32]
	mov	w1, #61568
	movk	w1, #762, lsl #16
	bl	_clk_set_rate
LBB0_22:
	ldr	x0, [x20]
	cbz	x0, LBB0_28
; %bb.23:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_27
; %bb.24:
	mov	w1, #0
	bl	_of_clk_get
	str	x0, [x22, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #16]
	cbz	x8, LBB0_26
; %bb.25:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_28
LBB0_26:
	mov	w1, #61568
	movk	w1, #762, lsl #16
	bl	_clk_set_rate
LBB0_27:
	mov	w0, #0
LBB0_28:
	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
	add	sp, sp, #80
	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
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_clk_rx"

l_.str.1:                               ; @.str.1
	.asciz	"cannot get clock %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"mac_clk_tx"

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

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

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

	.comm	_PHY_INTERFACE_MODE_RMII,8,3    ; @PHY_INTERFACE_MODE_RMII
l_.str.6:                               ; @.str.6
	.asciz	"clk_mac_ref"

l_.str.7:                               ; @.str.7
	.asciz	"clk_mac_refout"

l_.str.8:                               ; @.str.8
	.asciz	"clk_mac_speed"

l_.str.9:                               ; @.str.9
	.asciz	"clock input from PHY\n"

l_.str.10:                              ; @.str.10
	.asciz	"Cannot get PHY clock: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rk_gmac_clk_init
.subsections_via_symbols
