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