	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sru_try_format
_sru_try_format:                        ## @sru_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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_12
## %bb.2:
	movl	16(%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, 16(%rbx)
LBB0_5:
	movl	(%rbx), %edi
	movq	_SRU_MIN_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SRU_MAX_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_clamp
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_clamp
	movl	%eax, 4(%rbx)
	jmp	LBB0_12
LBB0_6:
	movl	$129, %edx
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r14
	movl	16(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %r12d
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movq	_SRU_MAX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_min
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movl	(%r13), %esi
	callq	_min
	movl	(%r13), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	cmpl	%ecx, (%rbx)
	ja	LBB0_10
## %bb.7:
	cmpl	%ecx, 4(%rbx)
	ja	LBB0_10
## %bb.8:
	imull	%r15d, %eax
	imull	-44(%rbp), %r12d                ## 4-byte Folded Reload
	leal	(%r12,%r12,8), %ecx
	shrl	$2, %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_10
## %bb.9:
	movl	(%r14), %eax
	addl	%eax, %eax
	movl	%eax, (%rbx)
	movl	4(%r14), %eax
	addl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	4(%r14), %eax
LBB0_11:
	movl	%eax, 4(%rbx)
LBB0_12:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_SRU_MIN_SIZE,4,2               ## @SRU_MIN_SIZE
	.comm	_SRU_MAX_SIZE,4,2               ## @SRU_MAX_SIZE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_sru_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sru_try_format
_sru_try_format:                        ; @sru_try_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_12
; %bb.2:
	ldr	w8, [x19, #16]
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, #16]
LBB0_5:
	ldr	w0, [x19]
Lloh6:
	adrp	x20, _SRU_MIN_SIZE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SRU_MIN_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _SRU_MAX_SIZE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SRU_MAX_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_clamp
	str	w0, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_clamp
	str	w0, [x19, #4]
	b	LBB0_12
LBB0_6:
	mov	w2, #129
	bl	_vsp1_entity_get_pad_format
	mov	x20, x0
	ldr	w8, [x0, #16]
	str	w8, [x19, #16]
	ldp	w22, w23, [x0]
	ldr	w0, [x19]
Lloh10:
	adrp	x24, _SRU_MAX_SIZE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SRU_MAX_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_min
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	bl	_min
	ldr	w9, [x19]
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w9, w8
	b.hi	LBB0_10
; %bb.7:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.hi	LBB0_10
; %bb.8:
	mul	w8, w0, w21
	mul	w9, w22, w23
	add	w9, w9, w9, lsl #3
	cmp	w8, w9, lsr #2
	b.ls	LBB0_10
; %bb.9:
	ldr	d0, [x20]
	shl.2s	v0, v0, #1
	b	LBB0_11
LBB0_10:
	ldr	d0, [x20]
LBB0_11:
	str	d0, [x19]
LBB0_12:
Lloh12:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_SRU_MIN_SIZE,4,2               ; @SRU_MIN_SIZE
	.comm	_SRU_MAX_SIZE,4,2               ; @SRU_MAX_SIZE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_sru_try_format
.subsections_via_symbols
