	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_try_fmt_stream
_delta_try_fmt_stream:                  ## @delta_try_fmt_stream
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	(%rdi), %edi
	callq	_to_ctx
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	(%r13), %rsi
	movl	4(%rax), %edx
	movq	%rax, %rdi
	callq	_delta_find_decoder
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_DELTA_MIN_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rax), %rbx
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.3:
	movq	_DELTA_MAX_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_4:
	leaq	8(%r13), %rdi
	movq	8(%r13), %r15
	leaq	16(%r13), %r8
	movl	(%rcx), %esi
	movq	_DELTA_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movq	_DELTA_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_6:
	movq	16(%r13), %r12
	subq	$8, %rsp
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	pushq	$0
	pushq	$0
	pushq	%rbx
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	8(%r13), %r9
	movq	16(%r13), %rbx
	cmpq	%r15, %r9
	jne	LBB0_8
## %bb.7:
	cmpq	%r12, %rbx
	je	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r14), %edx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_dbg
	addq	$16, %rsp
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
LBB0_9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_estimated_au_size
	movq	24(%r13), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, 24(%r13)
LBB0_11:
	movq	$0, 40(%r13)
	movq	32(%r13), %rax
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	jmp	LBB0_13
LBB0_1:
	movl	(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): unsupported format %4.4s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DELTA_MIN_WIDTH,4,2            ## @DELTA_MIN_WIDTH
	.comm	_DELTA_MAX_WIDTH,8,3            ## @DELTA_MAX_WIDTH
	.comm	_DELTA_MIN_HEIGHT,4,2           ## @DELTA_MIN_HEIGHT
	.comm	_DELTA_MAX_HEIGHT,8,3           ## @DELTA_MAX_HEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): resolution updated %dx%d -> %dx%d to fit min/max/alignment\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): size updated %d -> %d to fit estimated size\n"

	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.no_dead_strip	_delta_try_fmt_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_try_fmt_stream
_delta_try_fmt_stream:                  ; @delta_try_fmt_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w0, [x0]
	bl	_to_ctx
	mov	x20, x0
	ldr	x25, [x0, #8]
	ldr	x1, [x19]
	ldr	w2, [x0, #4]
	bl	_delta_find_decoder
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x19
	ldr	x21, [x23, #8]!
	mov	x24, x23
	ldr	x22, [x24, #8]!
Lloh0:
	adrp	x8, _DELTA_MIN_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DELTA_MIN_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DELTA_MAX_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DELTA_MAX_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	x10, x9, [x0]
	cmp	x9, #0
	csel	x2, x8, x9, eq
Lloh6:
	adrp	x8, _DELTA_MIN_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DELTA_MIN_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _DELTA_MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DELTA_MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x10, #0
	csel	x6, x8, x10, eq
	str	wzr, [sp]
	mov	x0, x23
	mov	w3, #0
	mov	x4, x24
	mov	w7, #0
	bl	_v4l_bound_align_image
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	cmp	x9, x22
	b.eq	LBB0_4
LBB0_3:
	ldr	w0, [x25]
	ldr	w2, [x20]
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_dev_dbg
	ldr	x21, [x23]
	ldr	x22, [x24]
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_estimated_au_size
	ldr	x3, [x19, #24]
	cmp	x3, x0
	b.ge	LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	w0, [x25]
	ldr	w2, [x20]
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	str	x21, [x19, #24]
LBB0_6:
	str	xzr, [x19, #40]
	ldr	x8, [x19, #32]
Lloh16:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	mov	w0, #0
Lloh19:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x25]
	ldr	w2, [x20]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_dev_dbg
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): unsupported format %4.4s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DELTA_MIN_WIDTH,4,2            ; @DELTA_MIN_WIDTH
	.comm	_DELTA_MAX_WIDTH,8,3            ; @DELTA_MAX_WIDTH
	.comm	_DELTA_MIN_HEIGHT,4,2           ; @DELTA_MIN_HEIGHT
	.comm	_DELTA_MAX_HEIGHT,8,3           ; @DELTA_MAX_HEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): resolution updated %dx%d -> %dx%d to fit min/max/alignment\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s V4L2 TRY_FMT (OUTPUT): size updated %d -> %d to fit estimated size\n"

	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_delta_try_fmt_stream
.subsections_via_symbols
