	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l_video_std_enumstd          ## -- Begin function v4l_video_std_enumstd
	.p2align	4, 0x90
_v4l_video_std_enumstd:                 ## @v4l_video_std_enumstd
	.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
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %r8d
	movq	_standards@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	xorl	%edx, %edx
	movl	$-1, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	shlq	$4, %rax
	movl	(%rcx,%rax), %eax
	movl	%esi, %ebx
	notl	%ebx
	incl	%edx
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r11d, %eax
	movl	%eax, %ebx
	notl	%ebx
	cmovel	%r14d, %ebx
	cmpl	%r10d, %eax
	cmovel	%r14d, %ebx
	cmpl	%r9d, %eax
	cmovel	%r14d, %ebx
	incl	%r15d
	cmpl	%r8d, %r15d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	%ebx, %esi
	jne	LBB0_2
LBB0_6:
	cmpl	%r8d, %r15d
	ja	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	decl	%edx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rdx
	movl	%eax, %esi
	callq	_v4l2_video_std_construct
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_standards,8,3                  ## @standards
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l_video_std_enumstd          ; -- Begin function v4l_video_std_enumstd
	.p2align	2
_v4l_video_std_enumstd:                 ; @v4l_video_std_enumstd
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w1, LBB0_8
; %bb.1:
	mov	w9, #0
	mov	w11, #0
Lloh0:
	adrp	x8, _standards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _standards@GOTPAGEOFF]
	ldr	w12, [x0]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh5:
	adrp	x14, _V4L2_STD_SECAM@GOTPAGE
Lloh6:
	ldr	x14, [x14, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x8]
Lloh8:
	ldr	w14, [x14]
Lloh9:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh11:
	ldr	w15, [x8]
	mov	w16, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, w9
	lsl	x8, x8, #4
	ldr	w8, [x10, x8]
	add	w9, w9, #1
	bics	wzr, w8, w1
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w15
	ccmp	w8, w14, #4, ne
	ccmp	w8, w13, #4, ne
	csinv	w17, w16, w8, eq
	add	w11, w11, #1
	cmp	w11, w12
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w1, w17, w1
	cbnz	w1, LBB0_2
LBB0_6:
	cmp	w11, w12
	b.hi	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _ENODATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	sub	w9, w9, #1
	add	x9, x10, x9, lsl #4
	ldr	x2, [x9, #8]
	mov	x1, x8
	bl	_v4l2_video_std_construct
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_standards,8,3                  ; @standards
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
