	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atombios_encoder_setup_dac
_amdgpu_atombios_encoder_setup_dac:     ## @amdgpu_atombios_encoder_setup_dac
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_to_amdgpu_encoder
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.amdgpu_atombios_encoder_setup_dac(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r15d
LBB0_2:
	movl	%r14d, -48(%rbp)
	movq	_ATOM_DAC1_PS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movslq	4(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movl	%eax, -44(%rbp)
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %esi
	callq	_amdgpu_atom_execute_table
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_DAC1EncoderControl,4,2         ## @DAC1EncoderControl
	.comm	_DAC2EncoderControl,4,2         ## @DAC2EncoderControl
	.comm	_ATOM_DAC1_PS2,4,2              ## @ATOM_DAC1_PS2
	.no_dead_strip	_amdgpu_atombios_encoder_setup_dac
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.amdgpu_atombios_encoder_setup_dac
l_switch.table.amdgpu_atombios_encoder_setup_dac:
	.quad	_DAC2EncoderControl
	.quad	_DAC1EncoderControl
	.quad	_DAC2EncoderControl
	.quad	_DAC1EncoderControl

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_atombios_encoder_setup_dac
_amdgpu_atombios_encoder_setup_dac:     ; @amdgpu_atombios_encoder_setup_dac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x22, [x8]
	bl	_to_amdgpu_encoder
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	w21, #0
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.amdgpu_atombios_encoder_setup_dac@PAGE
Lloh1:
	add	x9, x9, l_switch.table.amdgpu_atombios_encoder_setup_dac@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh2:
	adrp	x9, _COMMAND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COMMAND@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x21, x0
LBB0_2:
Lloh5:
	adrp	x8, _ATOM_DAC1_PS2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATOM_DAC1_PS2@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w19, [sp]
	str	w8, [sp, #8]
	ldrsw	x8, [x20, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [sp, #4]
	ldr	w0, [x22]
	mov	x2, sp
	mov	x1, x21
	bl	_amdgpu_atom_execute_table
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_DAC1EncoderControl,4,2         ; @DAC1EncoderControl
	.comm	_DAC2EncoderControl,4,2         ; @DAC2EncoderControl
	.comm	_ATOM_DAC1_PS2,4,2              ; @ATOM_DAC1_PS2
	.no_dead_strip	_amdgpu_atombios_encoder_setup_dac
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.amdgpu_atombios_encoder_setup_dac
l_switch.table.amdgpu_atombios_encoder_setup_dac:
	.quad	_DAC2EncoderControl
	.quad	_DAC1EncoderControl
	.quad	_DAC2EncoderControl
	.quad	_DAC1EncoderControl

.subsections_via_symbols
