	.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, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%ecx, -48(%rbp)
	movl	%r9d, -44(%rbp)
	movl	%edx, %edi
	callq	_v4l2_ctrl_get_menu
	movq	%rax, %r13
	leaq	-52(%rbp), %rax
	leaq	-44(%rbp), %r10
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-68(%rbp), %r9
	movl	%ebx, %edi
	pushq	%rax
	pushq	%r10
	callq	_v4l2_ctrl_fill
	addq	$16, %rsp
	movl	-56(%rbp), %r8d
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_1
## %bb.2:
	movq	-64(%rbp), %rcx
	movl	-48(%rbp), %r10d
	movl	-44(%rbp), %r11d
	movl	-52(%rbp), %eax
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r13
	pushq	%rax
	pushq	%r11
	pushq	%r14
	pushq	%r10
	callq	_v4l2_ctrl_new
	addq	$48, %rsp
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r15, %rdi
	callq	_handler_set_err
LBB0_3:
	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	_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, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x4
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	stur	w3, [x29, #-52]
	str	w5, [sp, #56]
	mov	x0, x2
	bl	_v4l2_ctrl_get_menu
	mov	x23, x0
	add	x1, sp, #48
	add	x2, sp, #44
	add	x3, sp, #40
	sub	x4, x29, #52
	add	x5, sp, #36
	add	x6, sp, #56
	add	x7, sp, #32
	mov	x0, x21
	bl	_v4l2_ctrl_fill
	ldr	w4, [sp, #44]
Lloh0:
	adrp	x8, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w4, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x3, [sp, #48]
	ldur	w6, [x29, #-52]
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #32]
	stp	x23, xzr, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w5, #0
	mov	x7, x19
	bl	_v4l2_ctrl_new
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x20
	bl	_handler_set_err
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ; @V4L2_CTRL_TYPE_MENU
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
