	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_try_fmt_vid_cap
_cx18_try_fmt_vid_cap:                  ## @cx18_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdi
	callq	_fh2id
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movl	(%r14), %edi
	movl	4(%r14), %r13d
	movl	$720, %esi                      ## imm = 0x2D0
	callq	_min
	movl	%eax, %edi
	movl	$2, %esi
	callq	_max
	movq	(%rbx), %rcx
	movq	_CX18_ENC_STREAM_TYPE_YUV@GOTPCREL(%rip), %rdx
	movl	%r13d, %edi
	andl	$-32, %edi
	cmpq	(%rdx), %rcx
	movl	%eax, %r15d
	cmovnel	%r13d, %edi
	movl	$32, %ebx
	movl	$2, %eax
	cmovnel	%eax, %ebx
	cmpq	$0, (%r12)
	movl	$480, %eax                      ## imm = 0x1E0
	movl	$576, %esi                      ## imm = 0x240
	cmovel	%eax, %esi
	callq	_min
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_max
	movl	%r15d, (%r14)
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_ENC_STREAM_TYPE_YUV,8,3   ## @CX18_ENC_STREAM_TYPE_YUV
	.no_dead_strip	_cx18_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 cx18_try_fmt_vid_cap
_cx18_try_fmt_vid_cap:                  ; @cx18_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x0, x1
	bl	_fh2id
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldp	w0, w23, [x19]
	mov	w1, #720
	bl	_min
	mov	w24, #2
	mov	w1, #2
	bl	_max
	mov	x21, x0
Lloh0:
	adrp	x8, _CX18_ENC_STREAM_TYPE_YUV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_ENC_STREAM_TYPE_YUV@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	ldr	x8, [x8]
	and	w10, w23, #0xffffffe0
	cmp	x9, x8
	csel	w0, w10, w23, eq
	mov	w8, #32
	csel	w20, w8, w24, eq
	ldr	x8, [x22]
	cmp	x8, #0
	mov	w8, #576
	mov	w9, #480
	csel	w1, w9, w8, eq
	bl	_min
	mov	x1, x20
	bl	_max
	stp	w21, w0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_ENC_STREAM_TYPE_YUV,8,3   ; @CX18_ENC_STREAM_TYPE_YUV
	.no_dead_strip	_cx18_try_fmt_vid_cap
.subsections_via_symbols
