	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_viu_set_osd_lut
_meson_viu_set_osd_lut:                 ## @meson_viu_set_osd_lut
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	_VIU_LUT_OSD_EOTF@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jne	LBB0_1
## %bb.3:
	movq	_VIU_OSD1_EOTF_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VIU_OSD1_EOTF_LUT_DATA_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VIU_OSD1_EOTF_LUT_ADDR_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VIU_LUT_OSD_OETF@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.18:
	movq	(%r13), %rbx
	callq	__REG
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_OSD_EOTF_LUT_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	$2, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jl	LBB0_21
## %bb.19:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%r12,8), %ebx
	shll	$16, %ebx
	orl	(%r14,%r12,8), %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__REG
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_writel
	incq	%r12
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r12
	jl	LBB0_20
LBB0_21:
	cltq
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %ebx
	shll	$16, %ebx
	orl	-4(%r14,%rax,4), %ebx
	movq	(%r13), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	(%r15), %eax
	cmpl	$2, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_27
## %bb.22:
	movq	%r12, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15,%r12,8), %ebx
	shll	$16, %ebx
	orl	4(%r15,%r12,8), %ebx
	movq	(%r13), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	incq	%r12
	movq	_OSD_EOTF_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r12
	jl	LBB0_23
## %bb.24:
	cmpl	$2, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jl	LBB0_27
## %bb.25:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%r15,8), %ebx
	shll	$16, %ebx
	orl	(%rcx,%r15,8), %ebx
	movq	(%r13), %r14
	movl	%edi, %r12d
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movl	%r12d, %edi
	movq	_OSD_EOTF_LUT_SIZE@GOTPCREL(%rip), %rax
	incq	%r15
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_26
LBB0_27:
	cltq
	movl	-4(%rcx,%rax,4), %r14d
	movq	(%r13), %rbx
	callq	__REG
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r13), %rbx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	__REG
	addq	%rax, %rbx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	movl	$939524096, %eax                ## imm = 0x38000000
	cmovnel	%eax, %esi
	movl	$939524096, %edi                ## imm = 0x38000000
	movq	%rbx, %rdx
	callq	_writel_bits_relaxed
	movl	$31, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	$31, %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	(%r13), %rbx
	movl	%r12d, %edi
	callq	__REG
	addq	%rax, %rbx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	jmp	LBB0_16
LBB0_1:
	movq	_VIU_LUT_OSD_OETF@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_28
## %bb.2:
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	_VIU_OSD1_OETF_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_VIU_OSD1_OETF_LUT_DATA_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VIU_OSD1_OETF_LUT_ADDR_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_4:
	movq	(%r13), %rbx
	callq	__REG
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_OSD_OETF_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	movl	%r12d, %edx
	jl	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%r12,8), %ebx
	shll	$16, %ebx
	orl	(%r14,%r12,8), %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movq	%r14, %r15
	movl	%edx, %r14d
	movl	%edx, %edi
	callq	__REG
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_writel
	movl	%r14d, %edx
	movq	%r15, %r14
	incq	%r12
	movq	_OSD_OETF_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r12
	jl	LBB0_6
LBB0_7:
	cltq
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %ebx
	shll	$16, %ebx
	orl	-4(%r14,%rax,4), %ebx
	movq	(%r13), %r14
	movl	%edx, %edi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movq	_OSD_OETF_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rcx
	jl	LBB0_13
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15,%r12,8), %ebx
	shll	$16, %ebx
	orl	4(%r15,%r12,8), %ebx
	movq	(%rcx), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rcx, %r13
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movq	_OSD_OETF_LUT_SIZE@GOTPCREL(%rip), %rax
	incq	%r12
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r12
	movq	%r13, %rcx
	jl	LBB0_9
## %bb.10:
	cmpl	$2, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_13
## %bb.11:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12,%r15,8), %ebx
	shll	$16, %ebx
	orl	(%r12,%r15,8), %ebx
	movq	(%rcx), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__REG
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	incq	%r15
	movq	_OSD_OETF_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r15
	movq	%r13, %rcx
	jl	LBB0_12
LBB0_13:
	cltq
	movl	-4(%r12,%rax,4), %r14d
	movq	(%rcx), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rcx, %r15
	callq	__REG
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r15), %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	__REG
	addq	%rbx, %rax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movl	$-536870912, %edi               ## imm = 0xE0000000
	movl	$-536870912, %esi               ## imm = 0xE0000000
	jmp	LBB0_15
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$-536870912, %edi               ## imm = 0xE0000000
	xorl	%esi, %esi
LBB0_15:
	movq	%rax, %rdx
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_bits_relaxed            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIU_LUT_OSD_EOTF,4,2           ## @VIU_LUT_OSD_EOTF
	.comm	_VIU_OSD1_EOTF_LUT_ADDR_PORT,4,2 ## @VIU_OSD1_EOTF_LUT_ADDR_PORT
	.comm	_VIU_OSD1_EOTF_LUT_DATA_PORT,4,2 ## @VIU_OSD1_EOTF_LUT_DATA_PORT
	.comm	_VIU_OSD1_EOTF_CTL,4,2          ## @VIU_OSD1_EOTF_CTL
	.comm	_VIU_LUT_OSD_OETF,4,2           ## @VIU_LUT_OSD_OETF
	.comm	_VIU_OSD1_OETF_LUT_ADDR_PORT,4,2 ## @VIU_OSD1_OETF_LUT_ADDR_PORT
	.comm	_VIU_OSD1_OETF_LUT_DATA_PORT,4,2 ## @VIU_OSD1_OETF_LUT_DATA_PORT
	.comm	_VIU_OSD1_OETF_CTL,4,2          ## @VIU_OSD1_OETF_CTL
	.comm	_OSD_OETF_LUT_SIZE,4,2          ## @OSD_OETF_LUT_SIZE
	.comm	_OSD_EOTF_LUT_SIZE,4,2          ## @OSD_EOTF_LUT_SIZE
	.no_dead_strip	_meson_viu_set_osd_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_viu_set_osd_lut
_meson_viu_set_osd_lut:                 ; @meson_viu_set_osd_lut
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _VIU_LUT_OSD_EOTF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIU_LUT_OSD_EOTF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _VIU_OSD1_EOTF_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIU_OSD1_EOTF_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
Lloh6:
	adrp	x8, _VIU_OSD1_EOTF_LUT_DATA_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIU_OSD1_EOTF_LUT_DATA_PORT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _VIU_OSD1_EOTF_LUT_ADDR_PORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VIU_OSD1_EOTF_LUT_ADDR_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	ldr	w0, [x9]
Lloh12:
	adrp	x8, _VIU_LUT_OSD_OETF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIU_LUT_OSD_OETF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_15
; %bb.2:
	ldr	x20, [x19]
	bl	__REG
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
Lloh15:
	adrp	x27, _OSD_EOTF_LUT_SIZE@GOTPAGE
Lloh16:
	ldr	x27, [x27, _OSD_EOTF_LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:
	str	x22, [sp]                       ; 8-byte Folded Spill
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	mov	x22, x21
	mov	x28, #0
	add	x20, x25, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x20, #-4]
	orr	w26, w8, w9, lsl #16
	ldr	x21, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x21
	mov	x0, x26
	bl	_writel
	add	x28, x28, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x20, x20, #8
	cmp	x28, w9, sxtw
	b.lt	LBB0_4
; %bb.5:
	mov	x21, x22
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x22, [sp]                       ; 8-byte Folded Reload
LBB0_6:
	sub	w8, w8, #1
	ldr	w8, [x25, w8, sxtw #2]
	ldr	w9, [x24]
	orr	w25, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x25
	bl	_writel
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.7:
	mov	x25, #0
	add	x26, x24, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x26, #-4]
	orr	w24, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x24
	bl	_writel
	add	x25, x25, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x26, x26, #8
	cmp	x25, w9, sxtw
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.10:
	mov	x25, #0
	add	x26, x22, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x26, #-4]
	orr	w24, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x24
	bl	_writel
	add	x25, x25, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x26, x26, #8
	cmp	x25, w9, sxtw
	b.lt	LBB0_11
LBB0_12:
	sub	w8, w8, #1
	ldr	w22, [x22, w8, sxtw #2]
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x22
	bl	_writel
	ldr	x20, [x19]
	mov	x0, x28
	bl	__REG
	add	x2, x0, x20
	mov	w8, #939524096
	cmp	w21, #0
	csel	w1, wzr, w8, eq
	mov	w0, #939524096
	bl	_writel_bits_relaxed
	mov	w0, #31
	bl	_BIT
	mov	x20, x0
	mov	w0, #31
	bl	_BIT
	mov	x22, x0
	ldr	x19, [x19]
	mov	x0, x28
	bl	__REG
	add	x2, x0, x19
	mov	x0, x20
	mov	x1, x22
	b	LBB0_29
LBB0_13:
Lloh17:
	adrp	x8, _VIU_LUT_OSD_OETF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VIU_LUT_OSD_OETF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_27
; %bb.14:
Lloh20:
	adrp	x8, _VIU_OSD1_OETF_CTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VIU_OSD1_OETF_CTL@GOTPAGEOFF]
Lloh22:
	ldr	w28, [x8]
Lloh23:
	adrp	x8, _VIU_OSD1_OETF_LUT_DATA_PORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VIU_OSD1_OETF_LUT_DATA_PORT@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
Lloh26:
	adrp	x8, _VIU_OSD1_OETF_LUT_ADDR_PORT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VIU_OSD1_OETF_LUT_ADDR_PORT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_15:
	ldr	x20, [x19]
	bl	__REG
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
Lloh29:
	adrp	x27, _OSD_OETF_LUT_SIZE@GOTPAGE
Lloh30:
	ldr	x27, [x27, _OSD_OETF_LUT_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.16:
	str	x22, [sp]                       ; 8-byte Folded Spill
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	mov	x22, x21
	mov	x28, #0
	add	x20, x25, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x20, #-4]
	orr	w26, w8, w9, lsl #16
	ldr	x21, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x21
	mov	x0, x26
	bl	_writel
	add	x28, x28, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x20, x20, #8
	cmp	x28, w9, sxtw
	b.lt	LBB0_17
; %bb.18:
	mov	x21, x22
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x22, [sp]                       ; 8-byte Folded Reload
LBB0_19:
	sub	w8, w8, #1
	ldr	w8, [x25, w8, sxtw #2]
	ldr	w9, [x24]
	orr	w25, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x25
	bl	_writel
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.20:
	mov	x25, #0
	add	x26, x24, #8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x26, #-4]
	orr	w24, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x24
	bl	_writel
	add	x25, x25, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x26, x26, #8
	cmp	x25, w9, sxtw
	b.lt	LBB0_21
; %bb.22:
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.23:
	mov	x25, #0
	add	x26, x22, #4
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x26, #-4]
	orr	w24, w8, w9, lsl #16
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x24
	bl	_writel
	add	x25, x25, #1
	ldr	w8, [x27]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x26, x26, #8
	cmp	x25, w9, sxtw
	b.lt	LBB0_24
LBB0_25:
	sub	w8, w8, #1
	ldr	w22, [x22, w8, sxtw #2]
	ldr	x20, [x19]
	mov	x0, x23
	bl	__REG
	add	x1, x0, x20
	mov	x0, x22
	bl	_writel
	ldr	x19, [x19]
	mov	x0, x28
	bl	__REG
	add	x2, x0, x19
	mov	w0, #-536870912
	cbz	w21, LBB0_28
; %bb.26:
	mov	w1, #-536870912
	b	LBB0_29
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
	mov	w1, #0
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_writel_bits_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_VIU_LUT_OSD_EOTF,4,2           ; @VIU_LUT_OSD_EOTF
	.comm	_VIU_OSD1_EOTF_LUT_ADDR_PORT,4,2 ; @VIU_OSD1_EOTF_LUT_ADDR_PORT
	.comm	_VIU_OSD1_EOTF_LUT_DATA_PORT,4,2 ; @VIU_OSD1_EOTF_LUT_DATA_PORT
	.comm	_VIU_OSD1_EOTF_CTL,4,2          ; @VIU_OSD1_EOTF_CTL
	.comm	_VIU_LUT_OSD_OETF,4,2           ; @VIU_LUT_OSD_OETF
	.comm	_VIU_OSD1_OETF_LUT_ADDR_PORT,4,2 ; @VIU_OSD1_OETF_LUT_ADDR_PORT
	.comm	_VIU_OSD1_OETF_LUT_DATA_PORT,4,2 ; @VIU_OSD1_OETF_LUT_DATA_PORT
	.comm	_VIU_OSD1_OETF_CTL,4,2          ; @VIU_OSD1_OETF_CTL
	.comm	_OSD_OETF_LUT_SIZE,4,2          ; @OSD_OETF_LUT_SIZE
	.comm	_OSD_EOTF_LUT_SIZE,4,2          ; @OSD_EOTF_LUT_SIZE
	.no_dead_strip	_meson_viu_set_osd_lut
.subsections_via_symbols
