	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_clks_phase2_init
_emac_clks_phase2_init:                 ## @emac_clks_phase2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_has_acpi_companion
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_EMAC_CLK_TX@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$125000000, %esi                ## imm = 0x7735940
	callq	_clk_set_rate
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	_EMAC_CLK_HIGH_SPEED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$125000000, %esi                ## imm = 0x7735940
	callq	_clk_set_rate
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movq	_EMAC_CLK_MDIO@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$25000000, %esi                 ## imm = 0x17D7840
	callq	_clk_set_rate
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	_EMAC_CLK_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	(%rbx), %rax
	movq	_EMAC_CLK_SYS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_prepare_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_CLK_TX,8,3                ## @EMAC_CLK_TX
	.comm	_EMAC_CLK_HIGH_SPEED,8,3        ## @EMAC_CLK_HIGH_SPEED
	.comm	_EMAC_CLK_MDIO,8,3              ## @EMAC_CLK_MDIO
	.comm	_EMAC_CLK_RX,8,3                ## @EMAC_CLK_RX
	.comm	_EMAC_CLK_SYS,8,3               ## @EMAC_CLK_SYS
	.no_dead_strip	_emac_clks_phase2_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_clks_phase2_init
_emac_clks_phase2_init:                 ; @emac_clks_phase2_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_has_acpi_companion
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _EMAC_CLK_TX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EMAC_CLK_TX@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #22848
	movk	w1, #1907, lsl #16
	bl	_clk_set_rate
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _EMAC_CLK_HIGH_SPEED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EMAC_CLK_HIGH_SPEED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #22848
	movk	w1, #1907, lsl #16
	bl	_clk_set_rate
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _EMAC_CLK_MDIO@GOTPAGE
Lloh6:
	ldr	x20, [x20, _EMAC_CLK_MDIO@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #30784
	movk	w1, #381, lsl #16
	bl	_clk_set_rate
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _EMAC_CLK_RX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EMAC_CLK_RX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _EMAC_CLK_SYS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EMAC_CLK_SYS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_prepare_enable
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_CLK_TX,8,3                ; @EMAC_CLK_TX
	.comm	_EMAC_CLK_HIGH_SPEED,8,3        ; @EMAC_CLK_HIGH_SPEED
	.comm	_EMAC_CLK_MDIO,8,3              ; @EMAC_CLK_MDIO
	.comm	_EMAC_CLK_RX,8,3                ; @EMAC_CLK_RX
	.comm	_EMAC_CLK_SYS,8,3               ; @EMAC_CLK_SYS
	.no_dead_strip	_emac_clks_phase2_init
.subsections_via_symbols
