	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpu_controls_create
_jpu_controls_create:                   ## @jpu_controls_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_JPU_MAX_QUALITY@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	decq	%r8
	movl	$0, (%rsp)
	movq	_jpu_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_5:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_6
LBB0_1:
	cmpl	$0, 4(%r14)
	jne	LBB0_3
## %bb.2:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, (%rax)
LBB0_3:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_4
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_jpu_ctrl_ops,4,2               ## @jpu_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ## @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_JPU_MAX_QUALITY,8,3            ## @JPU_MAX_QUALITY
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ## @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_jpu_controls_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpu_controls_create
_jpu_controls_create:                   ; @jpu_controls_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh0:
	adrp	x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _JPU_MAX_QUALITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JPU_MAX_QUALITY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x4, x8, #1
Lloh6:
	adrp	x1, _jpu_ctrl_ops@GOTPAGE
Lloh7:
	ldr	x1, [x1, _jpu_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	ldr	w20, [x19]
	cbz	w20, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
LBB0_4:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x20, x0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_jpu_ctrl_ops,4,2               ; @jpu_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ; @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_JPU_MAX_QUALITY,8,3            ; @JPU_MAX_QUALITY
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.no_dead_strip	_jpu_controls_create
.subsections_via_symbols
