	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_ctrls_create               ## -- Begin function gsc_ctrls_create
	.p2align	4, 0x90
_gsc_ctrls_create:                      ## @gsc_ctrls_create
	.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
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_GSC_MAX_CTRL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_ROTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_gsc_ctrl_ops@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$270, %r8d                      ## imm = 0x10E
	movl	$90, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%rbx)
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%rbx)
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%rbx)
	movq	_V4L2_CID_ALPHA_COMPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %r12d
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_pr_err
	movl	%r12d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control handler of this context was created already"

	.comm	_GSC_MAX_CTRL_NUM,4,2           ## @GSC_MAX_CTRL_NUM
	.comm	_gsc_ctrl_ops,4,2               ## @gsc_ctrl_ops
	.comm	_V4L2_CID_ROTATE,4,2            ## @V4L2_CID_ROTATE
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ## @V4L2_CID_ALPHA_COMPONENT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create G-Scaler control handlers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsc_ctrls_create               ; -- Begin function gsc_ctrls_create
	.p2align	2
_gsc_ctrls_create:                      ; @gsc_ctrls_create
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	add	x19, x0, #4
Lloh2:
	adrp	x8, _GSC_MAX_CTRL_NUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSC_MAX_CTRL_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_v4l2_ctrl_handler_init
Lloh5:
	adrp	x8, _V4L2_CID_ROTATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_ROTATE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x21, _gsc_ctrl_ops@GOTPAGE
Lloh9:
	ldr	x21, [x21, _gsc_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #270
	mov	w5, #90
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #32]
Lloh10:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #24]
Lloh13:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #16]
Lloh16:
	adrp	x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x20, #8]
	ldr	w21, [x20, #4]
	cmp	w21, #0
	cset	w8, eq
	str	w8, [x20]
	cbz	w21, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_pr_err
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control handler of this context was created already"

	.comm	_GSC_MAX_CTRL_NUM,4,2           ; @GSC_MAX_CTRL_NUM
	.comm	_gsc_ctrl_ops,4,2               ; @gsc_ctrl_ops
	.comm	_V4L2_CID_ROTATE,4,2            ; @V4L2_CID_ROTATE
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ; @V4L2_CID_ALPHA_COMPONENT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create G-Scaler control handlers"

.subsections_via_symbols
