	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resizer_try_format
_resizer_try_format:                    ## @resizer_try_format
	.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	%rcx, %rbx
	movq	%rdi, %r14
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.2:
	movl	8(%rbx), %ecx
	movq	_MEDIA_BUS_FMT_YUYV8_1X16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	je	LBB0_5
## %bb.3:
	movq	_MEDIA_BUS_FMT_UYVY8_1X16@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.4:
	movl	%eax, 8(%rbx)
LBB0_5:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	24(%rbx), %r12
	movq	_MIN_IN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_resizer_max_in_width
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_clamp_t
	movq	%rax, 24(%rbx)
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	movq	_MIN_IN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_IN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	movq	%rax, 16(%rbx)
	jmp	LBB0_7
LBB0_6:
	movl	%r8d, %r15d
	movq	%rsi, %r12
	movq	%r14, %rdi
	movl	$129, %edx
	movl	%r8d, %ecx
	callq	___resizer_get_format
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	___resizer_get_crop
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_resizer_calc_ratios
LBB0_7:
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_YUYV8_1X16,4,2   ## @MEDIA_BUS_FMT_YUYV8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ## @MEDIA_BUS_FMT_UYVY8_1X16
	.comm	_u32,4,2                        ## @u32
	.comm	_MIN_IN_WIDTH,4,2               ## @MIN_IN_WIDTH
	.comm	_MIN_IN_HEIGHT,4,2              ## @MIN_IN_HEIGHT
	.comm	_MAX_IN_HEIGHT,4,2              ## @MAX_IN_HEIGHT
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_resizer_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resizer_try_format
_resizer_try_format:                    ; @resizer_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x0
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	w9, [x19, #8]
Lloh0:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_1X16@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEDIA_BUS_FMT_UYVY8_1X16@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w9, w10, #4, ne
	b.eq	LBB0_4
; %bb.3:
	str	w8, [x19, #8]
LBB0_4:
Lloh6:
	adrp	x24, _u32@GOTPAGE
Lloh7:
	ldr	x24, [x24, _u32@GOTPAGEOFF]
	ldr	w21, [x24]
	ldr	x22, [x19, #24]
Lloh8:
	adrp	x8, _MIN_IN_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIN_IN_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_resizer_max_in_width
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_clamp_t
	str	x0, [x19, #24]
	ldr	w0, [x24]
	ldr	x1, [x19, #16]
Lloh11:
	adrp	x8, _MIN_IN_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIN_IN_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _MAX_IN_HEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_IN_HEIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_clamp_t
	str	x0, [x19, #16]
	b	LBB0_6
LBB0_5:
	mov	x21, x4
	mov	x22, x1
	mov	x0, x20
	mov	w2, #129
	mov	x3, x4
	bl	___resizer_get_format
	ldr	w8, [x0, #8]
	str	w8, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	___resizer_get_crop
	ldr	w8, [x0]
	str	w8, [sp]
	mov	x1, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_resizer_calc_ratios
LBB0_6:
Lloh17:
	adrp	x8, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_YUYV8_1X16,4,2   ; @MEDIA_BUS_FMT_YUYV8_1X16
	.comm	_MEDIA_BUS_FMT_UYVY8_1X16,4,2   ; @MEDIA_BUS_FMT_UYVY8_1X16
	.comm	_u32,4,2                        ; @u32
	.comm	_MIN_IN_WIDTH,4,2               ; @MIN_IN_WIDTH
	.comm	_MIN_IN_HEIGHT,4,2              ; @MIN_IN_HEIGHT
	.comm	_MAX_IN_HEIGHT,4,2              ; @MAX_IN_HEIGHT
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_resizer_try_format
.subsections_via_symbols
