	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxp_try_fmt_vid_cap
_pxp_try_fmt_vid_cap:                   ## @pxp_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_file2ctx
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_find_format
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_find_format
	movq	%rax, %rbx
LBB0_2:
	movq	_MEM2MEM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movl	4(%r14), %eax
	movl	%eax, 12(%r15)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	movl	4(%rbx), %esi
	leaq	4(%r15), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_pxp_fixup_colorimetry_cap
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pxp_try_fmt                    ## TAILCALL
LBB0_3:
	movq	8(%r14), %rdi
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_pxp_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 pxp_try_fmt_vid_cap
_pxp_try_fmt_vid_cap:                   ; @pxp_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	bl	_file2ctx
	mov	x20, x0
	mov	x0, x19
	bl	_find_format
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_find_format
	mov	x21, x0
LBB0_2:
	ldr	w8, [x21]
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	d0, [x20]
	str	d0, [x19, #8]
	ldr	w1, [x21, #4]
	add	x2, x19, #4
	mov	x0, x20
	mov	x3, x19
	bl	_pxp_fixup_colorimetry_cap
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pxp_try_fmt
LBB0_4:
	ldr	x0, [x20, #8]
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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	_pxp_try_fmt_vid_cap
.subsections_via_symbols
