	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_rng_enable
_qcom_rng_enable:                       ## @qcom_rng_enable
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_PRNG_CONFIG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	_PRNG_CONFIG_HW_ENABLE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	_PRNG_LFSR_CFG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	movq	_PRNG_LFSR_CFG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_PRNG_LFSR_CFG_CLOCKS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	orl	(%r12), %eax
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_3:
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRNG_CONFIG,8,3                ## @PRNG_CONFIG
	.comm	_PRNG_CONFIG_HW_ENABLE,4,2      ## @PRNG_CONFIG_HW_ENABLE
	.comm	_PRNG_LFSR_CFG,8,3              ## @PRNG_LFSR_CFG
	.comm	_PRNG_LFSR_CFG_MASK,4,2         ## @PRNG_LFSR_CFG_MASK
	.comm	_PRNG_LFSR_CFG_CLOCKS,4,2       ## @PRNG_LFSR_CFG_CLOCKS
	.no_dead_strip	_qcom_rng_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_rng_enable
_qcom_rng_enable:                       ; @qcom_rng_enable
	.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	x20, x0
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x21, _PRNG_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PRNG_CONFIG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x22, _PRNG_CONFIG_HW_ENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PRNG_CONFIG_HW_ENABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x23, _PRNG_LFSR_CFG@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PRNG_LFSR_CFG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh6:
	adrp	x8, _PRNG_LFSR_CFG_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRNG_LFSR_CFG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PRNG_LFSR_CFG_CLOCKS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PRNG_LFSR_CFG_CLOCKS@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
LBB0_3:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
LBB0_4:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PRNG_CONFIG,8,3                ; @PRNG_CONFIG
	.comm	_PRNG_CONFIG_HW_ENABLE,4,2      ; @PRNG_CONFIG_HW_ENABLE
	.comm	_PRNG_LFSR_CFG,8,3              ; @PRNG_LFSR_CFG
	.comm	_PRNG_LFSR_CFG_MASK,4,2         ; @PRNG_LFSR_CFG_MASK
	.comm	_PRNG_LFSR_CFG_CLOCKS,4,2       ; @PRNG_LFSR_CFG_CLOCKS
	.no_dead_strip	_qcom_rng_enable
.subsections_via_symbols
