	.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
	callq	_file2ctx
	movq	%rax, %r14
	movl	16(%rbx), %edi
	callq	_find_format
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	callq	_find_format
LBB0_2:
	movq	_MEM2MEM_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movups	(%r14), %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vidioc_try_fmt                 ## TAILCALL
LBB0_3:
	movq	16(%r14), %rdi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_formats,8,3                    ## @formats
	.comm	_MEM2MEM_CAPTURE,4,2            ## @MEM2MEM_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fourcc format (0x%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	bl	_file2ctx
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_find_format
	mov	x1, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
	str	w0, [x19, #16]
	bl	_find_format
	mov	x1, x0
LBB0_2:
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _MEM2MEM_CAPTURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEM2MEM_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	q0, [x20]
	str	q0, [x19]
	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
LBB0_4:
	ldr	x0, [x20, #16]
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_formats,8,3                    ; @formats
	.comm	_MEM2MEM_CAPTURE,4,2            ; @MEM2MEM_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fourcc format (0x%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
