	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function activate_ch
_activate_ch:                           ## @activate_ch
	.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
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_pm_runtime_get_sync
	movl	8(%r14), %edi
	callq	_clk_enable
	movl	8(%r14), %edi
	callq	_clk_get_rate
	movq	%rax, %rcx
	leal	(%rax,%rax,4), %esi
	movq	_NORMAL_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,8), %edi
	imull	$50, %ecx, %eax
	cltd
	idivl	%edi
	cltq
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rbx
	shrq	$63, %rbx
	sarq	$34, %rdx
	addl	%ebx, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %eax
	xorl	%ebx, %ebx
	cmpl	$5, %eax
	setge	%bl
	movl	%esi, %eax
	cltd
	idivl	%edi
	addl	%eax, %ebx
	movl	%ebx, (%r14)
	leal	(,%rcx,4), %esi
	shll	$3, %ecx
	leal	(%rcx,%rcx,4), %eax
	cltd
	idivl	%edi
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	xorl	%ecx, %ecx
	cmpl	$5, %eax
	setge	%cl
	movl	%esi, %eax
	cltd
	idivl	%edi
	addl	%eax, %ecx
	movl	%ecx, 4(%r14)
	movq	%r14, %rdi
	callq	_ICCR
	movl	%eax, %edi
	callq	_ioread8
	movl	%eax, %ebx
	movq	_ICCR_ICE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ICCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movq	%r14, %rdi
	callq	_ICIC
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_ICCL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_ICCH
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iowrite8                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NORMAL_SPEED,4,2               ## @NORMAL_SPEED
	.comm	_ICCR_ICE,4,2                   ## @ICCR_ICE
	.no_dead_strip	_activate_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function activate_ch
_activate_ch:                           ; @activate_ch
	.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
	ldr	w0, [x0, #12]
	bl	_pm_runtime_get_sync
	ldr	w0, [x19, #8]
	bl	_clk_enable
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	lsl	w8, w0, #2
	add	w9, w8, w0
Lloh0:
	adrp	x10, _NORMAL_SPEED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NORMAL_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w10, w10, w10, lsl #3
	mov	w11, #50
	mul	w11, w0, w11
	sdiv	w11, w11, w10
	mov	w12, #26215
	movk	w12, #26214, lsl #16
	smull	x13, w11, w12
	lsr	x14, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w14
	mov	w14, #10
	msub	w11, w13, w14, w11
	cmp	w11, #4
	sdiv	w11, w9, w10
	cinc	w11, w11, gt
	lsl	w9, w9, #3
	sdiv	w9, w9, w10
	smull	x12, w9, w12
	lsr	x13, x12, #63
	asr	x12, x12, #34
	add	w12, w12, w13
	msub	w9, w12, w14, w9
	cmp	w9, #4
	sdiv	w8, w8, w10
	cinc	w8, w8, gt
	stp	w11, w8, [x19]
	mov	x0, x19
	bl	_ICCR
	bl	_ioread8
Lloh3:
	adrp	x8, _ICCR_ICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICCR_ICE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	x0, x19
	bl	_ICCR
	mov	x1, x0
	mov	x0, x20
	bl	_iowrite8
	mov	x0, x19
	bl	_ICIC
	mov	x1, x0
	mov	w0, #0
	bl	_iowrite8
	ldr	w20, [x19]
	mov	x0, x19
	bl	_ICCL
	mov	x1, x0
	mov	x0, x20
	bl	_iowrite8
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_ICCH
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iowrite8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NORMAL_SPEED,4,2               ; @NORMAL_SPEED
	.comm	_ICCR_ICE,4,2                   ; @ICCR_ICE
	.no_dead_strip	_activate_ch
.subsections_via_symbols
