	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_set_clock
_dce_set_clock:                         ## @dce_set_clock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_TO_DCE_CLK_MGR
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -60(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	%r15d, %r13d
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	leal	63(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$6, %esi
	movl	%r15d, %edi
	callq	_max
	movl	%eax, %r13d
LBB0_2:
	leal	(%r13,%r13), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -64(%rbp)
	movq	_CLOCK_SOURCE_ID_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movl	$1, -56(%rbp)
LBB0_4:
	movq	(%r12), %rax
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%rax)
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movl	-60(%rbp), %r15d
	movl	%r15d, 4(%r14)
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.8:
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movq	_DM_PP_CLOCKS_STATE_NOMINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_9:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rax
	movslq	%r15d, %rcx
	imulq	$628292359, %rcx, %rsi          ## imm = 0x2572FB07
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$42, %rsi
	addl	%ecx, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	*(%rax)
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_SOURCE_ID_DFS,4,2        ## @CLOCK_SOURCE_ID_DFS
	.comm	_DM_PP_CLOCKS_STATE_NOMINAL,4,2 ## @DM_PP_CLOCKS_STATE_NOMINAL
	.no_dead_strip	_dce_set_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_set_clock
_dce_set_clock:                         ; @dce_set_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	_TO_DCE_CLK_MGR
	mov	x21, x0
	stur	xzr, [sp, #20]
	stur	xzr, [sp, #12]
	ldr	x8, [x20]
	ldr	x22, [x8]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x23, x19
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #6
	mov	x0, x19
	bl	_max
	mov	x23, x0
LBB0_2:
	add	w8, w23, w23, lsl #2
	lsl	w8, w8, #1
Lloh0:
	adrp	x9, _CLOCK_SOURCE_ID_DFS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLOCK_SOURCE_ID_DFS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w8, [sp, #8]
	str	w9, [sp, #20]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #16]
LBB0_4:
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x22
	blr	x8
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w19, [sp, #12]
	str	w19, [x21, #4]
LBB0_6:
	cbz	w23, LBB0_8
; %bb.7:
	cbnz	x20, LBB0_9
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _DM_PP_CLOCKS_STATE_NOMINAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_PP_CLOCKS_STATE_NOMINAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	cbz	x20, LBB0_11
LBB0_9:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w9, #64263
	movk	w9, #9586, lsl #16
	smull	x9, w19, w9
	lsr	x10, x9, #63
	asr	x9, x9, #42
	add	w1, w9, w10
	mov	x0, x20
	blr	x8
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_SOURCE_ID_DFS,4,2        ; @CLOCK_SOURCE_ID_DFS
	.comm	_DM_PP_CLOCKS_STATE_NOMINAL,4,2 ; @DM_PP_CLOCKS_STATE_NOMINAL
	.no_dead_strip	_dce_set_clock
.subsections_via_symbols
