	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn2_update_clocks_fpga        ## -- Begin function dcn2_update_clocks_fpga
	.p2align	4, 0x90
_dcn2_update_clocks_fpga:               ## @dcn2_update_clocks_fpga
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movl	4(%rsi), %esi
	cmpl	$1200001, %eax                  ## imm = 0x124F81
	movl	$1200000, %r12d                 ## imm = 0x124F80
	cmovgel	%eax, %r12d
	movl	(%rdi), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movl	8(%r14), %esi
	movl	4(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_4:
	movl	12(%r14), %esi
	movl	8(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	12(%r14), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movl	16(%r14), %esi
	movl	12(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	16(%r14), %eax
	movl	%eax, 12(%rbx)
LBB0_8:
	movl	20(%r14), %esi
	movl	16(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	20(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_10:
	movl	24(%r14), %esi
	movl	20(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	24(%r14), %eax
	movl	%eax, 20(%rbx)
LBB0_12:
	movl	24(%rbx), %edx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%r12d, 24(%rbx)
LBB0_14:
	movl	28(%r14), %esi
	movl	28(%rbx), %edx
	movl	%r15d, %edi
	callq	_should_set_clock
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	28(%r14), %eax
	movl	%eax, 28(%rbx)
LBB0_16:
	movl	20(%rbx), %eax
	movl	24(%rbx), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_18
## %bb.17:
	movl	%ecx, 20(%rbx)
	jmp	LBB0_20
LBB0_18:
	jge	LBB0_20
## %bb.19:
	movl	%eax, 24(%rbx)
LBB0_20:
	movl	32(%rbx), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_set_dcn_clocks              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn2_update_clocks_fpga        ; -- Begin function dcn2_update_clocks_fpga
	.p2align	2
_dcn2_update_clocks_fpga:               ; @dcn2_update_clocks_fpga
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #20352
	movk	w8, #18, lsl #16
	ldp	w9, w1, [x1]
	cmp	w9, w8
	csel	w22, w9, w8, gt
	ldr	w2, [x0]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_2:
	ldr	w1, [x20, #8]
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	str	w8, [x19, #4]
LBB0_4:
	ldr	w1, [x20, #12]
	ldr	w2, [x19, #8]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x20, #12]
	str	w8, [x19, #8]
LBB0_6:
	ldr	w1, [x20, #16]
	ldr	w2, [x19, #12]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #16]
	str	w8, [x19, #12]
LBB0_8:
	ldr	w1, [x20, #20]
	ldr	w2, [x19, #16]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x20, #20]
	str	w8, [x19, #16]
LBB0_10:
	ldr	w1, [x20, #24]
	ldr	w2, [x19, #20]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x20, #24]
	str	w8, [x19, #20]
LBB0_12:
	ldr	w2, [x19, #24]
	mov	x0, x21
	mov	x1, x22
	bl	_should_set_clock
	cbz	x0, LBB0_14
; %bb.13:
	str	w22, [x19, #24]
LBB0_14:
	ldr	w1, [x20, #28]
	ldr	w2, [x19, #28]
	mov	x0, x21
	bl	_should_set_clock
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x20, #28]
	str	w8, [x19, #28]
LBB0_16:
	ldp	w8, w9, [x19, #20]
	cmp	w9, w8
	b.le	LBB0_18
; %bb.17:
	str	w9, [x19, #20]
	b	LBB0_20
LBB0_18:
	cmp	w8, w9
	b.le	LBB0_20
; %bb.19:
	str	w8, [x19, #24]
LBB0_20:
	ldr	w0, [x19, #32]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dm_set_dcn_clocks
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
