	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_format_align
_rvin_format_align:                     ## @rvin_format_align
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rsi), %esi
	callq	_rvin_format_from_pixel
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_RVIN_DEFAULT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_2:
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	jae	LBB0_3
LBB0_6:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	_V4L2_PIX_FMT_NV16@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	leal	1(,%rsi,4), %ecx
	leaq	16(%rbx), %rdi
	movl	(%rax), %r10d
	movl	4(%rax), %edx
	leaq	4(%rbx), %r8
	subq	$8, %rsp
	movl	$2, %esi
	movl	$4, %r9d
	pushq	$0
	pushq	$2
	pushq	%r10
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rvin_format_bytesperline
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_rvin_format_sizeimage
	movl	%eax, 8(%rbx)
	movl	16(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	12(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vin_dbg                        ## TAILCALL
LBB0_3:
	cmpl	$134, %eax
	jne	LBB0_5
## %bb.4:
	movl	$132, (%rbx)
	shll	4(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_RVIN_DEFAULT_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ## @RVIN_DEFAULT_FORMAT
	.comm	_RVIN_DEFAULT_FIELD,4,2         ## @RVIN_DEFAULT_FIELD
	.comm	_V4L2_PIX_FMT_NV16,8,3          ## @V4L2_PIX_FMT_NV16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format %ux%u bpl: %u size: %u\n"

	.no_dead_strip	_rvin_format_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_format_align
_rvin_format_align:                     ; @rvin_format_align
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #20]
	bl	_rvin_format_from_pixel
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RVIN_DEFAULT_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RVIN_DEFAULT_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #20]
LBB0_2:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hs	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_NV16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_NV16@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	x10, x9, [x19]
	cmp	x9, x8
	mov	w8, #5
	csinc	w3, w8, wzr, eq
	add	x0, x20, #16
	add	x4, x20, #4
	ldp	w6, w2, [x10]
	str	wzr, [sp]
	mov	w1, #2
	mov	w5, #4
	mov	w7, #2
	bl	_v4l_bound_align_image
	mov	x0, x19
	mov	x1, x20
	bl	_rvin_format_bytesperline
	str	w0, [x20, #12]
	mov	x0, x20
	bl	_rvin_format_sizeimage
	mov	x5, x0
	str	w0, [x20, #8]
	ldr	w3, [x20, #4]
	ldp	w4, w2, [x20, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_vin_dbg
LBB0_4:
	cmp	w8, #134
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #132
	ldr	w9, [x20, #4]
	lsl	w9, w9, #1
	stp	w8, w9, [x20]
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x8, _RVIN_DEFAULT_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RVIN_DEFAULT_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ; @RVIN_DEFAULT_FORMAT
	.comm	_RVIN_DEFAULT_FIELD,4,2         ; @RVIN_DEFAULT_FIELD
	.comm	_V4L2_PIX_FMT_NV16,8,3          ; @V4L2_PIX_FMT_NV16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format %ux%u bpl: %u size: %u\n"

	.no_dead_strip	_rvin_format_align
.subsections_via_symbols
