	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g12a_ephy_glue_clk_register
_g12a_ephy_glue_clk_register:           ## @g12a_ephy_glue_clk_register
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, %r13
	callq	_dev_get_drvdata
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_PLL_MUX_NUM_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	leaq	-88(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_devm_clk_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	___clk_get_name
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	_PLL_MUX_NUM_PARENT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %r12
	movq	%rax, -88(%rbp)
	movq	_clk_mux_ro_ops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	movq	_PLL_MUX_NUM_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_ETH_PLL_CTL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	8(%rcx), %rax
	movq	%rax, 16(%r15)
	movq	_PLL_CTL0_SEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	___ffs
	movl	%eax, (%r15)
	movl	(%rbx), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, 4(%r15)
	movq	%r15, %rsi
	addq	$8, %rsi
	leaq	-88(%rbp), %rbx
	movq	%rbx, 8(%r15)
	movq	%r13, %rdi
	callq	_devm_clk_register
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_3:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-88(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	%r14, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_12:
	movq	%rbx, %r12
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:
	movq	%rax, %rbx
	movl	(%r14), %r14d
	movq	%r13, %rdi
	callq	_dev_name
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	%rax, %r14
	movq	%rax, -88(%rbp)
	movq	_g12a_ephy_pll_ops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%r15, %rdi
	callq	___clk_get_name
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rcx, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	%r12, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_devm_clk_register
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_17
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_MUX_NUM_PARENT,4,2         ## @PLL_MUX_NUM_PARENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clkin%d"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Missing clock %s\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"%s#mux"

	.comm	_clk_mux_ro_ops,4,2             ## @clk_mux_ro_ops
	.comm	_ETH_PLL_CTL0,8,3               ## @ETH_PLL_CTL0
	.comm	_PLL_CTL0_SEL,4,2               ## @PLL_CTL0_SEL
L_.str.3:                               ## @.str.3
	.asciz	"failed to register input mux\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s#pll"

	.comm	_g12a_ephy_pll_ops,4,2          ## @g12a_ephy_pll_ops
	.no_dead_strip	_g12a_ephy_glue_clk_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g12a_ephy_glue_clk_register
_g12a_ephy_glue_clk_register:           ; @g12a_ephy_glue_clk_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh3:
	adrp	x25, _PLL_MUX_NUM_PARENT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PLL_MUX_NUM_PARENT@GOTPAGEOFF]
	ldr	w12, [x25]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #112
	mov	w1, #8
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	sub	x1, x29, #112
	mov	x0, x19
	bl	_devm_clk_get
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	___clk_get_name
	str	x0, [x24, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.5:
	mov	x21, x0
	ldr	w22, [x23]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_kasprintf
	cbz	x0, LBB0_15
; %bb.6:
	mov	x22, x0
Lloh13:
	adrp	x8, _clk_mux_ro_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _clk_mux_ro_ops@GOTPAGEOFF]
	stp	xzr, x8, [x29, #-88]
	stp	x0, x24, [x29, #-112]
	ldr	w8, [x25]
	stur	w8, [x29, #-96]
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _ETH_PLL_CTL0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ETH_PLL_CTL0@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x21, #16]
Lloh18:
	adrp	x25, _PLL_CTL0_SEL@GOTPAGE
Lloh19:
	ldr	x25, [x25, _PLL_CTL0_SEL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	___ffs
	str	w0, [x21]
	ldr	w8, [x25]
	asr	w8, w8, w0
	str	w8, [x21, #4]
	sub	x8, x29, #112
	str	x8, [x21, #8]!
	mov	x0, x19
	mov	x1, x21
	bl	_devm_clk_register
	mov	x21, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_11
LBB0_7:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_16
LBB0_8:
	mov	x0, x23
	bl	_PTR_ERR
Lloh22:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.9:
	sub	x8, x29, #112
	str	x8, [sp, #-16]!
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	add	sp, sp, #16
LBB0_10:
	mov	x0, x23
	bl	_PTR_ERR
	b	LBB0_16
LBB0_11:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.12:
	mov	x22, x0
	ldr	w23, [x23]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_kasprintf
	cbz	x0, LBB0_15
; %bb.13:
	mov	x23, x0
Lloh29:
	adrp	x8, _g12a_ephy_pll_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _g12a_ephy_pll_ops@GOTPAGEOFF]
	stp	xzr, x8, [x29, #-88]
	stur	x0, [x29, #-112]
	mov	x0, x21
	bl	___clk_get_name
	str	x0, [x24]
	stur	x24, [x29, #-104]
	mov	w8, #1
	stur	w8, [x29, #-96]
	ldr	x8, [x20, #8]
	sub	x9, x29, #112
	stp	x9, x8, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_clk_register
	mov	x21, x0
	mov	x0, x23
	bl	_kfree
	mov	x0, x21
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.14:
	str	x21, [x20]
	b	LBB0_16
LBB0_15:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_MUX_NUM_PARENT,4,2         ; @PLL_MUX_NUM_PARENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clkin%d"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Missing clock %s\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"%s#mux"

	.comm	_clk_mux_ro_ops,4,2             ; @clk_mux_ro_ops
	.comm	_ETH_PLL_CTL0,8,3               ; @ETH_PLL_CTL0
	.comm	_PLL_CTL0_SEL,4,2               ; @PLL_CTL0_SEL
l_.str.3:                               ; @.str.3
	.asciz	"failed to register input mux\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s#pll"

	.comm	_g12a_ephy_pll_ops,4,2          ; @g12a_ephy_pll_ops
	.no_dead_strip	_g12a_ephy_glue_clk_register
.subsections_via_symbols
