	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_enum_fmt_vid_overlay
_saa7134_enum_fmt_vid_overlay:          ## @saa7134_enum_fmt_vid_overlay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_saa7134_no_overlay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_4
LBB0_2:
	movq	(%rdx), %rax
	movq	_FORMATS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.3:
	movq	_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	cmpq	$0, 8(%rcx,%rax)
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	(%rcx,%rax), %eax
	movl	%eax, 8(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7134_no_overlay,8,3         ## @saa7134_no_overlay
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FORMATS,8,3                    ## @FORMATS
	.comm	_formats,8,3                    ## @formats
	.no_dead_strip	_saa7134_enum_fmt_vid_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_enum_fmt_vid_overlay
_saa7134_enum_fmt_vid_overlay:          ; @saa7134_enum_fmt_vid_overlay
	.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
Lloh0:
	adrp	x8, _saa7134_no_overlay@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7134_no_overlay@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_2:
	ldr	x8, [x2]
Lloh5:
	adrp	x9, _FORMATS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FORMATS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _formats@GOTPAGE
Lloh9:
	ldr	x9, [x9, _formats@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x10, x9, x8, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #0
	lsl	x8, x8, #4
	ldr	w8, [x9, x8]
	str	w8, [x2, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7134_no_overlay,8,3         ; @saa7134_no_overlay
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FORMATS,8,3                    ; @FORMATS
	.comm	_formats,8,3                    ; @formats
	.no_dead_strip	_saa7134_enum_fmt_vid_overlay
.subsections_via_symbols
