	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmt_sp2mp                      ## -- Begin function fmt_sp2mp
	.p2align	4, 0x90
_fmt_sp2mp:                             ## @fmt_sp2mp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	104(%rsi), %r15
	movq	(%rdi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	movl	96(%rsi), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %r12
LBB0_3:
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	48(%r14), %eax
	movl	%eax, 92(%rbx)
	movups	32(%r14), %xmm0
	movups	%xmm0, 76(%rbx)
	movl	$1, 56(%rbx)
	movups	16(%r14), %xmm0
	movups	%xmm0, 60(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 8(%r15)
	movl	8(%r14), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_CAP_VIDEO_CAPTURE_MPLANE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmt_sp2mp                      ; -- Begin function fmt_sp2mp
	.p2align	2
_fmt_sp2mp:                             ; @fmt_sp2mp
	.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, x1
	mov	x20, x0
	ldr	x21, [x1, #104]
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w0, [x1, #96]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
	cmp	x22, x23
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w8, [x20, #48]
	str	w8, [x19, #92]
	ldr	q0, [x20, #32]
	stur	q0, [x19, #76]
	mov	w8, #1
	str	w8, [x19, #56]
	ldr	q0, [x20, #16]
	stur	q0, [x19, #60]
	ldr	d0, [x20, #8]
	stur	d0, [x21, #4]
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #4
	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
	b	_memset
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_CAP_VIDEO_CAPTURE_MPLANE
.subsections_via_symbols
