	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx51_get_clk_gating           ## -- Begin function imx51_get_clk_gating
	.p2align	4, 0x90
_imx51_get_clk_gating:                  ## @imx51_get_clk_gating
	.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
	movl	%edi, %ebx
	movq	_ccm_softc@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_CCMR_CCGR_MODULE
	movl	%eax, %edi
	callq	_CCMC_CCGR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ccm_read_4
	movl	%eax, %esi
	movq	_CCMR_CCGR_NSOURCE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	leal	(%rdx,%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	andl	$3, %esi
	movl	%esi, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccm_softc,4,2                  ## @ccm_softc
	.comm	_CCMR_CCGR_NSOURCE,4,2          ## @CCMR_CCGR_NSOURCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx51_get_clk_gating           ; -- Begin function imx51_get_clk_gating
	.p2align	2
_imx51_get_clk_gating:                  ; @imx51_get_clk_gating
	.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
Lloh0:
	adrp	x8, _ccm_softc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ccm_softc@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_CCMR_CCGR_MODULE
	bl	_CCMC_CCGR
	mov	x1, x0
	mov	x0, x20
	bl	_ccm_read_4
Lloh3:
	adrp	x8, _CCMR_CCGR_NSOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCMR_CCGR_NSOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	lsl	w8, w8, #1
	asr	w8, w0, w8
	and	w0, w8, #0x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ccm_softc,4,2                  ; @ccm_softc
	.comm	_CCMR_CCGR_NSOURCE,4,2          ; @CCMR_CCGR_NSOURCE
.subsections_via_symbols
