	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_enum_fmt_cap_ovr
_bttv_enum_fmt_cap_ovr:                 ## @bttv_enum_fmt_cap_ovr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FORMATS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_4
## %bb.1:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%rdi), %esi
	movl	$-1, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$-1, (%r9,%rax,4)
	setne	%cl
	addl	%edx, %ecx
	cmpl	%esi, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	jne	LBB0_2
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	cmpl	%eax, %r8d
	jne	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	movq	_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 4(%rdi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMATS,4,2                    ## @FORMATS
	.comm	_formats,8,3                    ## @formats
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bttv_enum_fmt_cap_ovr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_enum_fmt_cap_ovr
_bttv_enum_fmt_cap_ovr:                 ; @bttv_enum_fmt_cap_ovr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FORMATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMATS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x10, _formats@GOTPAGE
Lloh4:
	ldr	x10, [x10, _formats@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w11, [x0]
	mov	w12, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x8, lsl #2]
	cmn	w13, #1
	cinc	w12, w12, ne
	cmp	w12, w11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
	cmp	w9, w8
	b.ne	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	mov	x0, x8
	ret
LBB0_7:
Lloh9:
	adrp	x9, _formats@GOTPAGE
Lloh10:
	ldr	x9, [x9, _formats@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w9, [x9, w8, uxtw #2]
	str	w9, [x0, #4]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMATS,4,2                    ; @FORMATS
	.comm	_formats,8,3                    ; @formats
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bttv_enum_fmt_cap_ovr
.subsections_via_symbols
