	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_clks_phase1_init
_emac_clks_phase1_init:                 ## @emac_clks_phase1_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, %r14
	movq	%rdi, %rbx
	callq	_has_acpi_companion
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_emac_clks_get
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movq	_EMAC_CLK_AXI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movq	_EMAC_CLK_CFG_AHB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movq	_EMAC_CLK_HIGH_SPEED@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$19200000, %esi                 ## imm = 0x124F800
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_prepare_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_CLK_AXI,8,3               ## @EMAC_CLK_AXI
	.comm	_EMAC_CLK_CFG_AHB,8,3           ## @EMAC_CLK_CFG_AHB
	.comm	_EMAC_CLK_HIGH_SPEED,8,3        ## @EMAC_CLK_HIGH_SPEED
	.no_dead_strip	_emac_clks_phase1_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_phase1_init
_emac_clks_phase1_init:                 ; @emac_clks_phase1_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
	mov	x20, x0
	bl	_has_acpi_companion
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_emac_clks_get
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EMAC_CLK_AXI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EMAC_CLK_AXI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EMAC_CLK_CFG_AHB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EMAC_CLK_CFG_AHB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _EMAC_CLK_HIGH_SPEED@GOTPAGE
Lloh7:
	ldr	x20, [x20, _EMAC_CLK_HIGH_SPEED@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #63488
	movk	w1, #292, lsl #16
	bl	_clk_set_rate
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [x20]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_CLK_AXI,8,3               ; @EMAC_CLK_AXI
	.comm	_EMAC_CLK_CFG_AHB,8,3           ; @EMAC_CLK_CFG_AHB
	.comm	_EMAC_CLK_HIGH_SPEED,8,3        ; @EMAC_CLK_HIGH_SPEED
	.no_dead_strip	_emac_clks_phase1_init
.subsections_via_symbols
