	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_scaler_setup ## -- Begin function amdgpu_atombios_crtc_scaler_setup
	.p2align	4, 0x90
_amdgpu_atombios_crtc_scaler_setup:     ## @amdgpu_atombios_crtc_scaler_setup
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_amdgpu_crtc
	movq	%rax, %rbx
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EnableScaler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
LBB0_3:
	movq	_ATOM_SCALER_EXPANSION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ATOM_SCALER_CENTER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ATOM_SCALER_DISABLE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%r15), %edi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %esi
	callq	_amdgpu_atom_execute_table
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_EnableScaler,4,2               ## @EnableScaler
	.comm	_ATOM_SCALER_EXPANSION,8,3      ## @ATOM_SCALER_EXPANSION
	.comm	_ATOM_SCALER_CENTER,8,3         ## @ATOM_SCALER_CENTER
	.comm	_ATOM_SCALER_DISABLE,8,3        ## @ATOM_SCALER_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_scaler_setup ; -- Begin function amdgpu_atombios_crtc_scaler_setup
	.p2align	2
_amdgpu_atombios_crtc_scaler_setup:     ; @amdgpu_atombios_crtc_scaler_setup
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_amdgpu_crtc
	mov	x20, x0
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EnableScaler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EnableScaler@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x20, #4]
	str	w8, [sp, #8]
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ATOM_SCALER_EXPANSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_SCALER_EXPANSION@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ATOM_SCALER_CENTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_SCALER_CENTER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ATOM_SCALER_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATOM_SCALER_DISABLE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [sp]
	ldr	w0, [x21]
	mov	x2, sp
	mov	x1, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_EnableScaler,4,2               ; @EnableScaler
	.comm	_ATOM_SCALER_EXPANSION,8,3      ; @ATOM_SCALER_EXPANSION
	.comm	_ATOM_SCALER_CENTER,8,3         ; @ATOM_SCALER_CENTER
	.comm	_ATOM_SCALER_DISABLE,8,3        ; @ATOM_SCALER_DISABLE
.subsections_via_symbols
