	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vaapi_transfer_get_formats
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vaapi_transfer_get_formats:            ## @vaapi_transfer_get_formats
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r13), %rcx
	movq	(%r15), %rdx
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movl	%eax, %esi
	andl	$-4, %esi
	movq	%rdx, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	leaq	-4(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	xorps	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm5
	movdqu	32(%rcx,%rdi,8), %xmm6
	movdqu	48(%rcx,%rdi,8), %xmm7
	pcmpeqq	%xmm1, %xmm0
	pcmpeqq	%xmm1, %xmm5
	pcmpeqq	%xmm1, %xmm6
	por	%xmm0, %xmm6
	pcmpeqq	%xmm1, %xmm7
	por	%xmm5, %xmm7
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm2
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm3
	addq	$8, %rdi
	addq	$-2, %rbx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm4
	pcmpeqq	%xmm1, %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pcmpeqq	%xmm1, %xmm4
	pshufd	$232, %xmm4, %xmm1              ## xmm1 = xmm4[0,2,2,3]
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm4, %xmm3
LBB0_10:
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	movq	%xmm2, %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	setne	%bl
	cmpq	%rax, %rsi
	je	LBB0_13
LBB0_11:
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi,8)
	cmovel	%edi, %ebx
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_12
LBB0_13:
	leal	4(,%rax,4), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.16:
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_15:
	xorl	%ebx, %ebx
LBB0_17:
	movl	(%r13), %eax
	testl	%eax, %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_22
## %bb.18:
	xorl	%r14d, %r14d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	cmpq	(%r15), %rcx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setl	%dil
	callq	_av_assert0
	movq	8(%r13), %rax
	movl	(%rax,%r14,8), %eax
	movslq	%ebx, %rcx
	incl	%ebx
	movl	%eax, (%r12,%rcx,4)
	movl	(%r13), %eax
	jmp	LBB0_21
LBB0_22:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%ebx, %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm3, %xmm3
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.no_dead_strip	_vaapi_transfer_get_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vaapi_transfer_get_formats
_vaapi_transfer_get_formats:            ; @vaapi_transfer_get_formats
	.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, x2
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x10, [x22, #8]
	ldr	x9, [x20]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w23, #0
	b	LBB0_7
LBB0_3:
	mov	w23, #0
	b	LBB0_9
LBB0_4:
	and	x11, x8, #0xfffffff8
	dup.2d	v1, x9
	movi.2d	v0, #0000000000000000
	add	x12, x10, #32
	movi.2s	v3, #1
	mov	x13, x11
	movi.2d	v5, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x12, #-32]
	ldp	q16, q17, [x12], #64
	cmeq.2d	v6, v6, v1
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, v1
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, v1
	xtn.2s	v16, v16
	cmeq.2d	v17, v17, v1
	xtn.2s	v17, v17
	bit.8b	v0, v3, v6
	bit.8b	v5, v3, v7
	bit.8b	v4, v3, v16
	bit.8b	v2, v3, v17
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v5, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v4, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v2, v1
	fmov	x12, d0
	cmp	x12, #0
	cset	w23, ne
	cmp	x11, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #3
	sub	x11, x8, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	cmp	x12, x9
	csinc	w23, w23, wzr, ne
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_9:
	lsl	w8, w8, #2
	add	w0, w8, #4
	bl	_av_malloc
	cbz	x0, LBB0_18
; %bb.10:
	mov	x21, x0
	cbz	w23, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	str	w8, [x21]
	mov	w23, #1
LBB0_12:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x24, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x10, [x20]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w23, w8
	cset	w0, lt
	bl	_av_assert0
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24, lsl #3]
	str	w8, [x21, w23, sxtw #2]
	add	w23, w23, #1
	ldr	w8, [x22]
	b	LBB0_14
LBB0_17:
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, w23, sxtw #2]
	str	x21, [x19]
	mov	w0, #0
	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
LBB0_18:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.no_dead_strip	_vaapi_transfer_get_formats
.subsections_via_symbols
