	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx51_clk_gating               ## -- Begin function imx51_clk_gating
	.p2align	4, 0x90
_imx51_clk_gating:                      ## @imx51_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_CCMR_CCGR_MODULE
	movl	%eax, %r14d
	movq	_CCMR_CCGR_NSOURCE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %ebx
	movq	_ccm_softc@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r14d, %edi
	callq	_CCMC_CCGR
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ccm_read_4
	addl	%ebx, %ebx
	movl	$3, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shll	%cl, %r15d
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %r15d
	movl	(%r13), %ebx
	movl	%r14d, %edi
	callq	_CCMC_CCGR
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ccm_write_4                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCMR_CCGR_NSOURCE,4,2          ## @CCMR_CCGR_NSOURCE
	.comm	_ccm_softc,4,2                  ## @ccm_softc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx51_clk_gating               ; -- Begin function imx51_clk_gating
	.p2align	2
_imx51_clk_gating:                      ; @imx51_clk_gating
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_CCMR_CCGR_MODULE
	mov	x21, x0
Lloh0:
	adrp	x8, _CCMR_CCGR_NSOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCMR_CCGR_NSOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w20, w8
	msub	w22, w9, w8, w20
Lloh3:
	adrp	x23, _ccm_softc@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ccm_softc@GOTPAGEOFF]
	ldr	w20, [x23]
	bl	_CCMC_CCGR
	mov	x1, x0
	mov	x0, x20
	bl	_ccm_read_4
	lsl	w8, w22, #1
	mov	w9, #3
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w19, w8
	orr	w19, w9, w8
	ldr	w20, [x23]
	mov	x0, x21
	bl	_CCMC_CCGR
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ccm_write_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CCMR_CCGR_NSOURCE,4,2          ; @CCMR_CCGR_NSOURCE
	.comm	_ccm_softc,4,2                  ; @ccm_softc
.subsections_via_symbols
