	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_try_fmt_output
_fdp1_try_fmt_output:                   ## @fdp1_try_fmt_output
	.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, %rbx
	movq	%rsi, %r15
	movl	36(%rdx), %edi
	callq	_fdp1_find_format
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	_FDP1_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_3
LBB0_2:
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fdp1_find_format
	movq	%rax, %r14
LBB0_3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r14, (%r15)
LBB0_5:
	movl	16(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	(%rbx), %rdi
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %r15
	cmpq	(%rax), %rdi
	je	LBB0_9
## %bb.6:
	cmpq	(%r15), %rdi
	je	LBB0_9
## %bb.7:
	callq	_V4L2_FIELD_HAS_BOTH
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_9:
	movq	8(%rbx), %rax
	movq	_V4L2_COLORSPACE_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	24(%rbx), %rdi
	movl	8(%r14), %esi
	callq	_round_down
	movq	_FDP1_MIN_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FDP1_MAX_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_clamp
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rdi
	movl	4(%r14), %esi
	callq	_round_down
	movq	(%rbx), %rcx
	movq	_FDP1_MIN_H@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%r15), %rcx
	jne	LBB0_13
## %bb.12:
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movq	_FDP1_MAX_H@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%eax, %edi
	movl	%ecx, %esi
	jmp	LBB0_14
LBB0_13:
	movq	_FDP1_MAX_H@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
LBB0_14:
	callq	_clamp
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fdp1_compute_stride            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FDP1_OUTPUT,4,2                ## @FDP1_OUTPUT
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_DEFAULT,8,3    ## @V4L2_COLORSPACE_DEFAULT
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_FDP1_MIN_W,4,2                 ## @FDP1_MIN_W
	.comm	_FDP1_MAX_W,4,2                 ## @FDP1_MAX_W
	.comm	_FDP1_MIN_H,4,2                 ## @FDP1_MIN_H
	.comm	_FDP1_MAX_H,4,2                 ## @FDP1_MAX_H
	.no_dead_strip	_fdp1_try_fmt_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_try_fmt_output
_fdp1_try_fmt_output:                   ; @fdp1_try_fmt_output
	.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
	mov	x21, x1
	ldr	w0, [x2, #36]
	bl	_fdp1_find_format
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FDP1_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FDP1_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fdp1_find_format
	mov	x20, x0
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	str	x20, [x21]
LBB0_5:
	ldur	d0, [x20, #12]
	str	d0, [x19, #32]
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x21, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_8
; %bb.6:
	bl	_V4L2_FIELD_HAS_BOTH
	cbnz	w0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _V4L2_COLORSPACE_DEFAULT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_COLORSPACE_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_10:
	ldr	x0, [x19, #24]
	ldr	w1, [x20, #8]
	bl	_round_down
Lloh20:
	adrp	x8, _FDP1_MIN_W@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FDP1_MIN_W@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _FDP1_MAX_W@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FDP1_MAX_W@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_clamp
	str	x0, [x19, #24]
	ldr	x0, [x19, #16]
	ldr	w1, [x20, #4]
	bl	_round_down
	ldr	x8, [x19]
	ldr	x9, [x21]
Lloh26:
	adrp	x10, _FDP1_MIN_H@GOTPAGE
Lloh27:
	ldr	x10, [x10, _FDP1_MIN_H@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x10]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w1, w8, #1
Lloh29:
	adrp	x8, _FDP1_MAX_H@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FDP1_MAX_H@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	b	LBB0_13
LBB0_12:
Lloh32:
	adrp	x8, _FDP1_MAX_H@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FDP1_MAX_H@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
LBB0_13:
	bl	_clamp
	str	x0, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	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	_fdp1_compute_stride
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_FDP1_OUTPUT,4,2                ; @FDP1_OUTPUT
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_DEFAULT,8,3    ; @V4L2_COLORSPACE_DEFAULT
	.comm	_V4L2_COLORSPACE_SMPTE170M,8,3  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_FDP1_MIN_W,4,2                 ; @FDP1_MIN_W
	.comm	_FDP1_MAX_W,4,2                 ; @FDP1_MAX_W
	.comm	_FDP1_MIN_H,4,2                 ; @FDP1_MIN_H
	.comm	_FDP1_MAX_H,4,2                 ; @FDP1_MAX_H
	.no_dead_strip	_fdp1_try_fmt_output
.subsections_via_symbols
