	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ast_set_dclk_reg
_ast_set_dclk_reg:                      ## @ast_set_dclk_reg
	.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
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	_AST2500@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_dclk_table_ast2500@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_dclk_table@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r12
	movq	(%rdx), %rax
	movq	(%rax), %rax
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	(%rax,%rax,2), %rbx
	movl	(%r12,%rbx,4), %r8d
	movq	%r14, %rdi
	movl	$192, %edx
	xorl	%ecx, %ecx
	callq	_ast_set_index_reg_mask
	movl	(%r15), %esi
	movl	4(%r12,%rbx,4), %r8d
	movq	%r14, %rdi
	movl	$193, %edx
	xorl	%ecx, %ecx
	callq	_ast_set_index_reg_mask
	movl	(%r15), %esi
	movl	8(%r12,%rbx,4), %r8d
	movl	%r8d, %eax
	andl	$192, %eax
	shll	$4, %r8d
	andl	$48, %r8d
	orl	%eax, %r8d
	movq	%r14, %rdi
	movl	$187, %edx
	movl	$15, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_set_index_reg_mask         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST2500,8,3                    ## @AST2500
	.comm	_dclk_table_ast2500,8,3         ## @dclk_table_ast2500
	.comm	_dclk_table,8,3                 ## @dclk_table
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_set_dclk_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ast_set_dclk_reg
_ast_set_dclk_reg:                      ; @ast_set_dclk_reg
	.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
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AST2500@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AST2500@GOTPAGEOFF]
Lloh2:
	adrp	x10, _dclk_table_ast2500@GOTPAGE
Lloh3:
	ldr	x10, [x10, _dclk_table_ast2500@GOTPAGEOFF]
Lloh4:
	adrp	x11, _dclk_table@GOTPAGE
Lloh5:
	ldr	x11, [x11, _dclk_table@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	ldr	x9, [x2]
	ldr	x9, [x9]
Lloh7:
	adrp	x20, _AST_IO_CRTC_PORT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _AST_IO_CRTC_PORT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w10, #12
	madd	x21, x9, x10, x8
	ldr	w4, [x21]
	mov	x0, x19
	mov	w2, #192
	mov	w3, #0
	bl	_ast_set_index_reg_mask
	ldr	w1, [x20]
	ldr	w4, [x21, #4]
	mov	x0, x19
	mov	w2, #193
	mov	w3, #0
	bl	_ast_set_index_reg_mask
	ldr	w1, [x20]
	ldr	w8, [x21, #8]
	and	w4, w8, #0xc0
	bfi	w4, w8, #4, #2
	mov	x0, x19
	mov	w2, #187
	mov	w3, #15
	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	_ast_set_index_reg_mask
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AST2500,8,3                    ; @AST2500
	.comm	_dclk_table_ast2500,8,3         ; @dclk_table_ast2500
	.comm	_dclk_table,8,3                 ; @dclk_table
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.no_dead_strip	_ast_set_dclk_reg
.subsections_via_symbols
