	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xadc_zynq_get_dclk_rate
_xadc_zynq_get_dclk_rate:               ## @xadc_zynq_get_dclk_rate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_XADC_ZYNQ_REG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_xadc_read_reg
	movq	_XADC_ZYNQ_CFG_TCKRATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	addl	$-128, %eax
	movl	$2, %ebx
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.xadc_zynq_get_dclk_rate(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_2:
	movl	(%r14), %edi
	callq	_clk_get_rate
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XADC_ZYNQ_REG_CFG,4,2          ## @XADC_ZYNQ_REG_CFG
	.comm	_XADC_ZYNQ_CFG_TCKRATE_MASK,4,2 ## @XADC_ZYNQ_CFG_TCKRATE_MASK
	.no_dead_strip	_xadc_zynq_get_dclk_rate
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.xadc_zynq_get_dclk_rate
l_switch.table.xadc_zynq_get_dclk_rate:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	16                              ## 0x10

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xadc_zynq_get_dclk_rate
_xadc_zynq_get_dclk_rate:               ; @xadc_zynq_get_dclk_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _XADC_ZYNQ_REG_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XADC_ZYNQ_REG_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_xadc_read_reg
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _XADC_ZYNQ_CFG_TCKRATE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XADC_ZYNQ_CFG_TCKRATE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.xadc_zynq_get_dclk_rate@PAGE
Lloh7:
	add	x9, x9, l_switch.table.xadc_zynq_get_dclk_rate@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w20, #2
LBB0_3:
	ldr	w0, [x19]
	bl	_clk_get_rate
	udiv	w0, w0, w20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XADC_ZYNQ_REG_CFG,4,2          ; @XADC_ZYNQ_REG_CFG
	.comm	_XADC_ZYNQ_CFG_TCKRATE_MASK,4,2 ; @XADC_ZYNQ_CFG_TCKRATE_MASK
	.no_dead_strip	_xadc_zynq_get_dclk_rate
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.xadc_zynq_get_dclk_rate
l_switch.table.xadc_zynq_get_dclk_rate:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	16                              ; 0x10

.subsections_via_symbols
