	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ## @vidioc_try_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_find_format
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MEM2MEM_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
LBB0_2:
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
LBB0_3:
	movl	(%r14), %ecx
	movl	%ecx, 8(%rbx)
	movq	(%rbx), %rdx
	movq	_V4L2_FIELD_INTERLACED_TB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_7
## %bb.4:
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_7
## %bb.5:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_7
## %bb.6:
	movq	%rcx, (%rbx)
LBB0_7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vidioc_try_fmt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM2MEM_CAPTURE,4,2            ## @MEM2MEM_CAPTURE
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ## @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_FIELD_INTERLACED_TB,8,3   ## @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ## @V4L2_FIELD_INTERLACED_BT
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x0, x2
	bl	_find_format
	mov	x1, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MEM2MEM_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEM2MEM_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_3:
	ldr	w8, [x20]
	str	w8, [x19, #8]
	ldr	x9, [x19]
Lloh6:
	adrp	x8, _V4L2_FIELD_INTERLACED_TB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED_TB@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _V4L2_FIELD_NONE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_5
; %bb.4:
	str	x8, [x19]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vidioc_try_fmt
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM2MEM_CAPTURE,4,2            ; @MEM2MEM_CAPTURE
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ; @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_FIELD_INTERLACED_TB,8,3   ; @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ; @V4L2_FIELD_INTERLACED_BT
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
