	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_setup_clk
_ftgmac100_setup_clk:                   ## @ftgmac100_setup_clk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rbx), %edi
	callq	_clk_prepare_enable
	movl	8(%rbx), %edi
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_FTGMAC_100MHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_FTGMAC_25MHZ@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_clk_set_rate                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC_25MHZ,4,2               ## @FTGMAC_25MHZ
	.comm	_FTGMAC_100MHZ,4,2              ## @FTGMAC_100MHZ
	.no_dead_strip	_ftgmac100_setup_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_setup_clk
_ftgmac100_setup_clk:                   ; @ftgmac100_setup_clk
	.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, x0
	ldr	w0, [x0, #12]
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _FTGMAC_25MHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTGMAC_25MHZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FTGMAC_100MHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FTGMAC_100MHZ@GOTPAGEOFF]
	ldr	x10, [x19]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_set_rate
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC_25MHZ,4,2               ; @FTGMAC_25MHZ
	.comm	_FTGMAC_100MHZ,4,2              ; @FTGMAC_100MHZ
	.no_dead_strip	_ftgmac100_setup_clk
.subsections_via_symbols
