	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uds_try_format
_uds_try_format:                        ## @uds_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_8
## %bb.2:
	movl	24(%rbx), %eax
	movq	_MEDIA_BUS_FMT_ARGB8888_1X32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movq	_MEDIA_BUS_FMT_AYUV8_1X32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	movl	%ecx, 24(%rbx)
LBB0_5:
	movq	16(%rbx), %rdi
	movq	_UDS_MIN_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_UDS_MAX_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_clamp
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	movl	(%r14), %esi
	movl	(%r15), %edx
	jmp	LBB0_7
LBB0_6:
	movl	$129, %edx
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r14
	movl	24(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%r14), %rdi
	leaq	-40(%rbp), %r15
	leaq	-36(%rbp), %r12
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_uds_output_limits
	movq	16(%rbx), %rdi
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	callq	_clamp
	movq	%rax, 16(%rbx)
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_uds_output_limits
	movq	8(%rbx), %rdi
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
LBB0_7:
	callq	_clamp
	movq	%rax, 8(%rbx)
LBB0_8:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,4,2 ## @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_MEDIA_BUS_FMT_AYUV8_1X32,4,2   ## @MEDIA_BUS_FMT_AYUV8_1X32
	.comm	_UDS_MIN_SIZE,4,2               ## @UDS_MIN_SIZE
	.comm	_UDS_MAX_SIZE,4,2               ## @UDS_MAX_SIZE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_uds_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uds_try_format
_uds_try_format:                        ; @uds_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x19, #24]
Lloh0:
	adrp	x9, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _MEDIA_BUS_FMT_AYUV8_1X32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEDIA_BUS_FMT_AYUV8_1X32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	str	w9, [x19, #24]
LBB0_5:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x20, _UDS_MIN_SIZE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _UDS_MIN_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _UDS_MAX_SIZE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _UDS_MAX_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_clamp
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
	b	LBB0_7
LBB0_6:
	mov	w2, #129
	bl	_vsp1_entity_get_pad_format
	mov	x20, x0
	ldr	w8, [x0, #24]
	str	w8, [x19, #24]
	ldr	x0, [x0, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_uds_output_limits
	ldr	x0, [x19, #16]
	ldp	w2, w1, [sp, #8]
	bl	_clamp
	str	x0, [x19, #16]
	ldr	x0, [x20, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_uds_output_limits
	ldr	x0, [x19, #8]
	ldp	w2, w1, [sp, #8]
LBB0_7:
	bl	_clamp
	str	x0, [x19, #8]
LBB0_8:
Lloh10:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,4,2 ; @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_MEDIA_BUS_FMT_AYUV8_1X32,4,2   ; @MEDIA_BUS_FMT_AYUV8_1X32
	.comm	_UDS_MIN_SIZE,4,2               ; @UDS_MIN_SIZE
	.comm	_UDS_MAX_SIZE,4,2               ; @UDS_MAX_SIZE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_uds_try_format
.subsections_via_symbols
