	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xv_adaptor_set_format
_xv_adaptor_set_format:                 ## @xv_adaptor_set_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_XvListImageFormats
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, -44(%rbp)
	jle	LBB0_16
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_formats@GOTPCREL(%rip), %rbx
	movq	_XvYUV@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	-44(%rbp), %rax
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jge	LBB0_16
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,4), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r14
	movl	$28, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$32, %r12
	cmpq	%rax, %r13
	jae	LBB0_15
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$16, 8(%r14)
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%r14), %rax
	movq	_XvPacked@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%r14), %rcx
	movq	(%rcx), %rsi
	movq	(%rbx), %rax
	movq	-28(%rax,%r12), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rcx), %rsi
	cmpq	8(%rdx), %rsi
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rcx), %rsi
	cmpq	16(%rdx), %rsi
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%rcx), %rcx
	cmpq	24(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	leaq	(%rcx,%rcx,4), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	32(%rdx,%rcx,8), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, 20(%rdi)
	leaq	(%rax,%r12), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%rdx)
	leaq	-4(%rax,%r12), %rdx
	cmovneq	%rcx, %rdx
	movl	(%rdx), %ecx
	movl	%ecx, 16(%rdi)
	movq	-12(%rax,%r12), %rcx
	movl	(%rcx), %edx
	movq	8(%rdi), %rsi
	movl	%edx, (%rsi)
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movl	-16(%rax,%r12), %ecx
	movl	%ecx, 4(%rdi)
	movl	-20(%rax,%r12), %eax
	movl	%eax, (%rdi)
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_XFree
	jmp	LBB0_18
LBB0_1:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_dpy,4,2                  ## @g_x11_dpy
	.comm	_formats,8,3                    ## @formats
	.comm	_XvYUV,8,3                      ## @XvYUV
	.comm	_XvPacked,8,3                   ## @XvPacked
	.no_dead_strip	_xv_adaptor_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xv_adaptor_set_format
_xv_adaptor_set_format:                 ; @xv_adaptor_set_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x1, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_x11_dpy@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #28
	bl	_XvListImageFormats
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_17
; %bb.1:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.2:
	stp	x20, x19, [sp]                  ; 16-byte Folded Spill
	mov	x22, #0
Lloh3:
	adrp	x23, _formats@GOTPAGE
Lloh4:
	ldr	x23, [x23, _formats@GOTPAGEOFF]
Lloh5:
	adrp	x25, _XvYUV@GOTPAGE
Lloh6:
	ldr	x25, [x25, _XvYUV@GOTPAGEOFF]
Lloh7:
	adrp	x26, _XvPacked@GOTPAGE
Lloh8:
	ldr	x26, [x26, _XvPacked@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [sp, #28]
	cmp	x22, x8
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	mov	x28, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	mov	w9, #40
	madd	x21, x22, x9, x8
	add	x20, x21, #8
	add	x24, x21, #16
	add	x19, x21, #24
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	x27, x27, #32
	cmp	x28, w0, uxtw
	b.hs	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x20]
	cmp	w8, #16
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x19]
	ldr	x11, [x9]
	ldr	x8, [x23]
	ldr	x10, [x8, x27]
	ldr	x12, [x10]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x9, #8]
	ldr	x12, [x10, #8]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x9, #16]
	ldr	x12, [x10, #16]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x9, #24]
	ldr	x10, [x10, #24]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.14:
	and	x9, x22, #0xffffffff
	mov	w10, #40
	ldp	x12, x11, [sp, #8]              ; 16-byte Folded Reload
	madd	x9, x9, x10, x11
	ldr	w9, [x9, #32]
	str	w9, [x12, #20]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x9, [x9]
	add	x8, x8, x27
	add	x10, x8, #28
	add	x11, x8, #24
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x12, #16]
	ldr	x9, [x8, #16]
	ldr	w10, [x9]
	ldr	x11, [x12, #8]
	str	w10, [x11]
	ldr	w9, [x9, #4]
	str	w9, [x11, #4]
	ldr	d0, [x8, #8]
	str	d0, [x12]
	mov	w20, #1
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_XFree
	b	LBB0_18
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.comm	_formats,8,3                    ; @formats
	.comm	_XvYUV,8,3                      ; @XvYUV
	.comm	_XvPacked,8,3                   ; @XvPacked
	.no_dead_strip	_xv_adaptor_set_format
.subsections_via_symbols
