	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_ctrls_create
_bdisp_ctrls_create:                    ## @bdisp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	_BDISP_MAX_CTRL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_bdisp_c_ops@GOTPCREL(%rip), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 16(%r15)
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 8(%r15)
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_4
LBB0_3:
	movl	$1, (%r15)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BDISP_MAX_CTRL_NUM,4,2         ## @BDISP_MAX_CTRL_NUM
	.comm	_bdisp_c_ops,4,2                ## @bdisp_c_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.no_dead_strip	_bdisp_ctrls_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_ctrls_create
_bdisp_ctrls_create:                    ; @bdisp_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
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _BDISP_MAX_CTRL_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BDISP_MAX_CTRL_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_ctrl_handler_init
Lloh3:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x21, _bdisp_c_ops@GOTPAGE
Lloh7:
	ldr	x21, [x21, _bdisp_c_ops@GOTPAGEOFF]
	mov	w22, #1
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #16]
Lloh8:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #8]
	ldr	w21, [x19, #4]
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_free
	b	LBB0_5
LBB0_4:
	str	w22, [x19]
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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BDISP_MAX_CTRL_NUM,4,2         ; @BDISP_MAX_CTRL_NUM
	.comm	_bdisp_c_ops,4,2                ; @bdisp_c_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.no_dead_strip	_bdisp_ctrls_create
.subsections_via_symbols
