	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun8i_ui_scaler_enable         ## -- Begin function sun8i_ui_scaler_enable
	.p2align	4, 0x90
_sun8i_ui_scaler_enable:                ## @sun8i_ui_scaler_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sun8i_ui_scaler_base
	movq	_SUN8I_SCALER_GSU_CTRL_EN@GOTPCREL(%rip), %rcx
	movq	_SUN8I_SCALER_GSU_CTRL_COEFF_RDY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	testl	%r14d, %r14d
	cmovel	%r14d, %ebx
	movl	(%r15), %r14d
	movl	%eax, %edi
	callq	_SUN8I_SCALER_GSU_CTRL
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN8I_SCALER_GSU_CTRL_EN,4,2   ## @SUN8I_SCALER_GSU_CTRL_EN
	.comm	_SUN8I_SCALER_GSU_CTRL_COEFF_RDY,4,2 ## @SUN8I_SCALER_GSU_CTRL_COEFF_RDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun8i_ui_scaler_enable         ; -- Begin function sun8i_ui_scaler_enable
	.p2align	2
_sun8i_ui_scaler_enable:                ; @sun8i_ui_scaler_enable
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_sun8i_ui_scaler_base
Lloh0:
	adrp	x8, _SUN8I_SCALER_GSU_CTRL_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN8I_SCALER_GSU_CTRL_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SUN8I_SCALER_GSU_CTRL_COEFF_RDY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SUN8I_SCALER_GSU_CTRL_COEFF_RDY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w20, wzr, w8, eq
	ldr	w19, [x19]
	bl	_SUN8I_SCALER_GSU_CTRL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	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	_regmap_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN8I_SCALER_GSU_CTRL_EN,4,2   ; @SUN8I_SCALER_GSU_CTRL_EN
	.comm	_SUN8I_SCALER_GSU_CTRL_COEFF_RDY,4,2 ; @SUN8I_SCALER_GSU_CTRL_COEFF_RDY
.subsections_via_symbols
