	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socfpga_a10_fpga_get_cd_ratio
_socfpga_a10_fpga_get_cd_ratio:         ## @socfpga_a10_fpga_get_cd_ratio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	orl	%edx, %esi
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_3
## %bb.4:
	movq	_CDRATIO_x2@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_CDRATIO_x1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_CDRATIO_x4@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_CFGWDTH_32@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	%edi, (%rdx)
	sete	%al
	addl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDRATIO_x1,4,2                 ## @CDRATIO_x1
	.comm	_CDRATIO_x4,4,2                 ## @CDRATIO_x4
	.comm	_CDRATIO_x2,4,2                 ## @CDRATIO_x2
	.comm	_CFGWDTH_32,4,2                 ## @CFGWDTH_32
	.no_dead_strip	_socfpga_a10_fpga_get_cd_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socfpga_a10_fpga_get_cd_ratio
_socfpga_a10_fpga_get_cd_ratio:         ; @socfpga_a10_fpga_get_cd_ratio
	.cfi_startproc
; %bb.0:
	orr	w8, w2, w1
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CDRATIO_x2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDRATIO_x2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CDRATIO_x4@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CDRATIO_x4@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _CFGWDTH_32@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CFGWDTH_32@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w0
	cinc	w0, w8, eq
	ret
LBB0_2:
Lloh7:
	adrp	x8, _CDRATIO_x1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CDRATIO_x1@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CDRATIO_x1,4,2                 ; @CDRATIO_x1
	.comm	_CDRATIO_x4,4,2                 ; @CDRATIO_x4
	.comm	_CDRATIO_x2,4,2                 ; @CDRATIO_x2
	.comm	_CFGWDTH_32,4,2                 ; @CFGWDTH_32
	.no_dead_strip	_socfpga_a10_fpga_get_cd_ratio
.subsections_via_symbols
