	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_std_menu_items   ## -- Begin function v4l2_ctrl_new_std_menu_items
	.p2align	4, 0x90
_v4l2_ctrl_new_std_menu_items:          ## @v4l2_ctrl_new_std_menu_items
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%ecx, -48(%rbp)
	movl	%r9d, -44(%rbp)
	movl	%edx, %edi
	callq	_v4l2_ctrl_get_menu
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r14, %rdi
	callq	_handler_set_err
	jmp	LBB0_5
LBB0_2:
	movq	16(%rbp), %r13
	leaq	-52(%rbp), %rax
	movq	%rax, 8(%rsp)
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-72(%rbp), %r9
	movl	%ebx, %edi
	callq	_v4l2_ctrl_fill
	testq	%r13, %r13
	je	LBB0_1
## %bb.3:
	movl	-56(%rbp), %r9d
	movq	_V4L2_CTRL_TYPE_MENU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jne	LBB0_1
## %bb.4:
	movq	-64(%rbp), %r8
	movl	-48(%rbp), %eax
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rsp)
	movq	%r13, 56(%rsp)
	movl	%edx, 48(%rsp)
	movl	%ecx, 24(%rsp)
	movl	%r12d, 16(%rsp)
	movl	%eax, 8(%rsp)
	movl	$0, 40(%rsp)
	movq	$0, 32(%rsp)
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_v4l2_ctrl_new
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ## @V4L2_CTRL_TYPE_MENU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_new_std_menu_items   ; -- Begin function v4l2_ctrl_new_std_menu_items
	.p2align	2
_v4l2_ctrl_new_std_menu_items:          ; @v4l2_ctrl_new_std_menu_items
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x6
	mov	x21, x4
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	stp	w5, w3, [sp, #60]
	mov	x0, x2
	bl	_v4l2_ctrl_get_menu
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_handler_set_err
	mov	x0, #0
	b	LBB0_5
LBB0_2:
	sub	x1, x29, #64
	sub	x2, x29, #52
	add	x3, sp, #68
	add	x4, sp, #64
	add	x5, sp, #72
	add	x6, sp, #60
	sub	x7, x29, #68
	mov	x0, x20
	bl	_v4l2_ctrl_fill
	cbz	x23, LBB0_1
; %bb.3:
	ldur	w5, [x29, #-52]
Lloh3:
	adrp	x8, _V4L2_CTRL_TYPE_MENU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CTRL_TYPE_MENU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w5, w8
	b.ne	LBB0_1
; %bb.4:
	ldur	x4, [x29, #-64]
	ldp	w8, w7, [sp, #60]
	ldur	w9, [x29, #-68]
	stp	xzr, xzr, [sp, #32]
	str	x23, [sp, #24]
	stp	wzr, w9, [sp, #16]
	str	xzr, [sp, #8]
	stp	w21, w8, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x20
	mov	w6, #0
	bl	_v4l2_ctrl_new
LBB0_5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CTRL_TYPE_MENU,4,2        ; @V4L2_CTRL_TYPE_MENU
.subsections_via_symbols
