	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_FORMATS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.4:
	movq	_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdi), %edx
	movl	$-1, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	xorl	%esi, %esi
	cmpl	$-1, (%rcx,%rbx,8)
	setne	%sil
	addl	%eax, %esi
	cmpl	%edx, %esi
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %r8
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	%ebx, %r8d
	jne	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,8), %edx
	movl	%edx, 4(%rdi)
	movl	8(%rdi), %edi
	movl	4(%rax,%rcx,8), %esi
	movl	$4, %edx
	callq	_strlcpy
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _FORMATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, #0
Lloh3:
	adrp	x9, _formats@GOTPAGE
Lloh4:
	ldr	x9, [x9, _formats@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w10, [x0]
	mov	w11, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmn	w12, #1
	cinc	w11, w11, ne
	cmp	w11, w10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	add	x9, x9, #8
	cmp	x8, x19
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w19, #0
LBB0_5:
	cmp	w8, w19
	b.ne	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _formats@GOTPAGE
Lloh10:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x8, x8, w19, uxtw #3
	ldp	w9, w1, [x8]
	str	w9, [x0, #4]
	ldr	w0, [x0, #8]
	mov	w2, #4
	bl	_strlcpy
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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
