	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_try_fmt
_coda_try_fmt:                          ## @coda_try_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	(%rdx), %eax
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rdx
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %eax
	jmp	LBB0_3
LBB0_2:
	cmpl	%eax, %ecx
	jne	LBB0_6
LBB0_3:
	movl	%eax, (%rbx)
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_coda_get_max_dimensions
	leaq	20(%rbx), %rdi
	movq	_MIN_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-24(%rbp), %edx
	movq	_W_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	4(%rbx), %r8
	movq	_MIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	-20(%rbp), %r10d
	movq	_H_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_S_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_8
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	$0, 12(%rbx)
	movl	4(%rbx), %ecx
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_coda_estimate_sizeimage
	jmp	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movl	20(%rbx), %edi
	movl	$16, %esi
	callq	_round_up
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 12(%rbx)
	imull	4(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 16(%rbx)
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_13
LBB0_9:
	movl	20(%rbx), %edi
	movl	$16, %esi
	callq	_round_up
	addl	%eax, %eax
	movl	%eax, 12(%rbx)
	imull	4(%rbx), %eax
	jmp	LBB0_11
LBB0_10:
	movl	20(%rbx), %edi
	movl	$16, %esi
	callq	_round_up
	movl	%eax, 12(%rbx)
	imull	4(%rbx), %eax
	addl	%eax, %eax
LBB0_11:
	movl	%eax, 16(%rbx)
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIN_W,4,2                      ## @MIN_W
	.comm	_W_ALIGN,4,2                    ## @W_ALIGN
	.comm	_MIN_H,4,2                      ## @MIN_H
	.comm	_H_ALIGN,4,2                    ## @H_ALIGN
	.comm	_S_ALIGN,4,2                    ## @S_ALIGN
	.no_dead_strip	_coda_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_try_fmt
_coda_try_fmt:                          ; @coda_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
	ldr	w9, [x2]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w10
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, w9
	mov	x8, x9
	b.ne	LBB0_5
LBB0_2:
	str	w8, [x19]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_coda_get_max_dimensions
	add	x0, x19, #20
Lloh6:
	adrp	x8, _MIN_W@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIN_W@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	w6, w2, [sp, #8]
Lloh9:
	adrp	x8, _W_ALIGN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W_ALIGN@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, x19, #4
Lloh12:
	adrp	x8, _MIN_H@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIN_H@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x8, _H_ALIGN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H_ALIGN@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
Lloh18:
	adrp	x8, _S_ALIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_ALIGN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp]
	bl	_v4l_bound_align_image
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_7
; %bb.3:
Lloh21:
	adrp	x9, lJTI0_0@PAGE
Lloh22:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	str	wzr, [x19, #12]
	ldp	w1, w2, [x19, #16]
	ldr	w3, [x19, #4]
	mov	x0, x20
	bl	_coda_estimate_sizeimage
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_11
LBB0_5:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #20]
	mov	w1, #16
	bl	_round_up
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #4]
	mul	w9, w8, w9
	add	w9, w9, w9, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	b	LBB0_10
LBB0_7:
	bl	_BUG
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #20]
	mov	w1, #16
	bl	_round_up
	mov	x8, x0
	mov	w0, #0
	lsl	w8, w8, #1
	ldr	w9, [x19, #4]
	mul	w9, w9, w8
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19, #20]
	mov	w1, #16
	bl	_round_up
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #4]
	mul	w9, w8, w9
	lsl	w9, w9, #1
LBB0_10:
	stp	w8, w9, [x19, #12]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIN_W,4,2                      ; @MIN_W
	.comm	_W_ALIGN,4,2                    ; @W_ALIGN
	.comm	_MIN_H,4,2                      ; @MIN_H
	.comm	_H_ALIGN,4,2                    ; @H_ALIGN
	.comm	_S_ALIGN,4,2                    ; @S_ALIGN
	.no_dead_strip	_coda_try_fmt
.subsections_via_symbols
