	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_dec_ctrls_setup        ## -- Begin function s5p_mfc_dec_ctrls_setup
	.p2align	4, 0x90
_s5p_mfc_dec_ctrls_setup:               ## @s5p_mfc_dec_ctrls_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	_NUM_CTRLS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_init
	cmpl	$0, 8(%r15)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_mfc_err
LBB0_2:
	movl	(%r14), %eax
	jmp	LBB0_3
LBB0_4:
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.5:
	movq	_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	_NUM_CTRLS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$40, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rax,%r12), %edi
	callq	_IS_MFC51_PRIV
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_s5p_mfc_dec_ctrl_ops@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rax,%r12), %ecx
	movl	%ecx, -56(%rbp)
	movl	20(%rax,%r12), %ecx
	movl	%ecx, -60(%rbp)
	movl	16(%rax,%r12), %ecx
	movl	%ecx, -64(%rbp)
	movl	8(%rax,%r12), %ecx
	movl	%ecx, -68(%rbp)
	movl	32(%rax,%r12), %ecx
	movl	%ecx, -72(%rbp)
	movl	28(%rax,%r12), %ecx
	movl	%ecx, -76(%rbp)
	movl	12(%rax,%r12), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rax,%r12), %edx
	movl	20(%rax,%r12), %ecx
	movl	16(%rax,%r12), %r8d
	movl	8(%rax,%r12), %esi
	movl	12(%rax,%r12), %r9d
	movl	%esi, (%rsp)
	movq	%r14, %rdi
	movq	_s5p_mfc_dec_ctrl_ops@GOTPCREL(%rip), %rsi
	callq	_v4l2_ctrl_new_std
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	cmpl	$0, 8(%r15)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r12)
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	jmp	LBB0_6
LBB0_15:
	xorl	%eax, %eax
LBB0_3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_mfc_err
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CTRLS,4,2                  ## @NUM_CTRLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"v4l2_ctrl_handler_init failed\n"

	.comm	_controls,8,3                   ## @controls
	.comm	_s5p_mfc_dec_ctrl_ops,4,2       ## @s5p_mfc_dec_ctrl_ops
L_.str.1:                               ## @.str.1
	.asciz	"Adding control (%d) failed\n"

	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_mfc_dec_ctrls_setup        ; -- Begin function s5p_mfc_dec_ctrls_setup
	.p2align	2
_s5p_mfc_dec_ctrls_setup:               ; @s5p_mfc_dec_ctrls_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x0
	add	x19, x0, #8
Lloh0:
	adrp	x22, _NUM_CTRLS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_CTRLS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_v4l2_ctrl_handler_init
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_mfc_err
	ldr	w0, [x19]
	b	LBB0_14
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x23, #0
Lloh4:
	adrp	x24, _controls@GOTPAGE
Lloh5:
	ldr	x24, [x24, _controls@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w25, #16
Lloh6:
	adrp	x21, _s5p_mfc_dec_ctrl_ops@GOTPAGE
Lloh7:
	ldr	x21, [x21, _s5p_mfc_dec_ctrl_ops@GOTPAGEOFF]
Lloh8:
	adrp	x26, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x22]
	add	x25, x25, #40
	cmp	x23, x9
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x25
	ldr	w0, [x8, #8]
	bl	_IS_MFC51_PRIV
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	x21, [sp, #56]
	ldr	x8, [x24]
	add	x8, x8, x25
	ldr	w9, [x8, #8]
	str	w9, [sp, #48]
	ldr	d0, [x8]
	str	d0, [sp, #40]
	ldur	w9, [x8, #-8]
	str	w9, [sp, #36]
	ldur	d0, [x8, #12]
	stur	d0, [sp, #28]
	ldur	w8, [x8, #-4]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x25
	ldp	w3, w2, [x8, #4]
	ldp	w5, w4, [x8, #-4]
	ldur	w6, [x8, #-8]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_ctrl_new_std
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	str	x0, [x8, x23, lsl #3]
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	add	x9, x8, x25
	ldur	x9, [x9, #-16]
	cbz	x9, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x26]
	ldr	w11, [x9]
	orr	w10, w11, w10
	str	w10, [x9]
	b	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	str	x23, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CTRLS,4,2                  ; @NUM_CTRLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"v4l2_ctrl_handler_init failed\n"

	.comm	_controls,8,3                   ; @controls
	.comm	_s5p_mfc_dec_ctrl_ops,4,2       ; @s5p_mfc_dec_ctrl_ops
l_.str.1:                               ; @.str.1
	.asciz	"Adding control (%d) failed\n"

	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols
