	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_std_menu         ## -- Begin function v4l2_ctrl_new_std_menu
	.p2align	4, 0x90
_v4l2_ctrl_new_std_menu:                ## @v4l2_ctrl_new_std_menu
	.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
	movl	%r8d, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$0, -56(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r9d, -44(%rbp)
	leaq	-60(%rbp), %rax
	leaq	-44(%rbp), %rbx
	leaq	-72(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-76(%rbp), %r9
	movl	%r13d, %edi
	pushq	%rax
	pushq	%rbx
	callq	_v4l2_ctrl_fill
	addq	$16, %rsp
	movl	-52(%rbp), %ecx
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_v4l2_ctrl_get_menu
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_V4L2_CTRL_TYPE_INTEGER_MENU@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	$0, %ebx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_v4l2_ctrl_get_int_menu
	movq	%rax, %rbx
	xorl	%eax, %eax
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_6:
	movl	-48(%rbp), %r10d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	cmpl	-56(%rbp), %r10d
	jbe	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r15, %rdi
	callq	_handler_set_err
	jmp	LBB0_10
LBB0_9:
	movq	-72(%rbp), %r8
	movl	-52(%rbp), %r9d
	movl	-44(%rbp), %r11d
	movq	%r12, %rsi
	movq	%r14, %r12
	movl	-60(%rbp), %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	pushq	$0
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	pushq	$0
	pushq	$0
	pushq	%r11
	pushq	%r12
	pushq	%r10
	pushq	$0
	callq	_v4l2_ctrl_new
	addq	$80, %rsp
	movq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ## @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,4,2 ## @V4L2_CTRL_TYPE_INTEGER_MENU
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_std_menu         ; -- Begin function v4l2_ctrl_new_std_menu
	.p2align	2
_v4l2_ctrl_new_std_menu:                ; @v4l2_ctrl_new_std_menu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x21, x4
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	stur	wzr, [x29, #-36]
	stur	w3, [x29, #-60]
	str	w5, [sp, #64]
	sub	x1, x29, #48
	sub	x2, x29, #52
	sub	x3, x29, #56
	sub	x4, x29, #60
	add	x5, sp, #60
	add	x6, sp, #64
	add	x7, sp, #56
	mov	x0, x20
	bl	_v4l2_ctrl_fill
	ldur	w8, [x29, #-52]
Lloh0:
	adrp	x9, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_v4l2_ctrl_get_menu
	mov	x8, #0
	cbz	x0, LBB0_5
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CTRL_TYPE_INTEGER_MENU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	sub	x1, x29, #36
	mov	x0, x20
	bl	_v4l2_ctrl_get_int_menu
	mov	x8, x0
	mov	x0, #0
	cbz	x0, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	x0, #0
	mov	x8, #0
	cbnz	x0, LBB0_6
LBB0_5:
	cbz	x8, LBB0_8
LBB0_6:
	ldur	w7, [x29, #-60]
	cbz	x8, LBB0_9
; %bb.7:
	ldur	w9, [x29, #-36]
	cmp	w7, w9
	b.ls	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_handler_set_err
	mov	x0, #0
	b	LBB0_10
LBB0_9:
	ldur	x4, [x29, #-48]
	ldur	w5, [x29, #-52]
	ldr	w9, [sp, #64]
	ldr	w10, [sp, #56]
	stp	x8, xzr, [sp, #32]
	str	x0, [sp, #24]
	stp	wzr, w10, [sp, #16]
	str	xzr, [sp, #8]
	stp	w21, w9, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x20
	mov	w6, #0
	bl	_v4l2_ctrl_new
LBB0_10:
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ; @V4L2_CTRL_TYPE_MENU
	.comm	_V4L2_CTRL_TYPE_INTEGER_MENU,4,2 ; @V4L2_CTRL_TYPE_INTEGER_MENU
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
