	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xv_repaint
_xv_repaint:                            ## @xv_repaint
	.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
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rbx
	movl	64(%rbx), %esi
	movl	72(%rbx), %edi
	leaq	-112(%rbp), %rdx
	callq	_XGetWindowAttributes
	movq	-112(%rbp), %rax
	movq	-104(%rbp), %rcx
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	8(%rbx), %rcx
	je	LBB0_6
LBB0_2:
	movq	%rax, 16(%rbx)
	movq	%rcx, 24(%rbx)
	movq	%r14, %rdi
	callq	_compute_display_area
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, -64(%rbp)
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rcx
	movq	%rcx, -56(%rbp)
	movq	%rcx, -88(%rbp)
	movq	$0, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	addq	16(%rbx), %rax
	movq	%rax, -40(%rbp)
	movl	72(%rbx), %edi
	movl	60(%rbx), %edx
	movl	64(%rbx), %esi
	leaq	-96(%rbp), %rcx
	movl	$2, %r8d
	callq	_XFillRectangles
LBB0_4:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-112(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movq	%rcx, -96(%rbp)
	movq	%rax, -56(%rbp)
	movq	%rax, -88(%rbp)
	movq	$0, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	addq	24(%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	72(%rbx), %edi
	movl	60(%rbx), %edx
	movl	64(%rbx), %esi
	leaq	-96(%rbp), %rcx
	movl	$2, %r8d
	callq	_XFillRectangles
LBB0_6:
	movl	72(%rbx), %edi
	movl	68(%rbx), %esi
	movl	64(%rbx), %edx
	movl	60(%rbx), %ecx
	movl	56(%rbx), %r8d
	movl	52(%rbx), %r9d
	movl	48(%rbx), %eax
	movups	16(%rbx), %xmm0
	movups	32(%rbx), %xmm1
	movq	_True@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movl	%ebx, 56(%rsp)
	movups	%xmm0, 40(%rsp)
	movups	%xmm1, 24(%rsp)
	movl	%eax, 16(%rsp)
	movl	%r9d, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	callq	_XvShmPutImage
	movq	_Success@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_True,4,2                       ## @True
	.comm	_Success,8,3                    ## @Success
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not copy image to XV shared memory buffer\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.no_dead_strip	_xv_repaint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xv_repaint
_xv_repaint:                            ; @xv_repaint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x0]
	ldr	w0, [x20, #72]
	ldr	w1, [x20, #64]
	add	x2, sp, #56
	bl	_XGetWindowAttributes
	ldr	x10, [x20]
	ldp	x9, x8, [sp, #56]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x20, #8]
	cmp	x8, x10
	b.eq	LBB0_6
LBB0_2:
	stp	x9, x8, [x20, #16]
	mov	x0, x19
	bl	_compute_display_area
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [sp, #64]
	stp	x8, x9, [sp, #104]
	stp	x8, x9, [sp, #72]
	str	xzr, [sp, #120]
	stp	xzr, xzr, [sp, #88]
	ldr	x9, [x20, #16]
	add	x8, x9, x8
	str	x8, [sp, #128]
	ldr	w0, [x20, #72]
	ldp	w2, w1, [x20, #60]
	add	x3, sp, #72
	mov	w4, #2
	bl	_XFillRectangles
LBB0_4:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [sp, #56]
	stp	x9, x8, [sp, #104]
	stp	x9, x8, [sp, #72]
	str	xzr, [sp, #128]
	stp	xzr, xzr, [sp, #88]
	ldr	x9, [x20, #24]
	add	x8, x9, x8
	str	x8, [sp, #120]
	ldr	w0, [x20, #72]
	ldp	w2, w1, [x20, #60]
	add	x3, sp, #72
	mov	w4, #2
	bl	_XFillRectangles
LBB0_6:
	ldp	w1, w0, [x20, #68]
	ldp	w3, w2, [x20, #60]
	ldp	w7, w4, [x20, #52]
	ldr	w8, [x20, #48]
	ldr	q0, [x20, #32]
	ldp	x9, x10, [x20, #16]
Lloh3:
	adrp	x11, _True@GOTPAGE
Lloh4:
	ldr	x11, [x11, _True@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [sp, #40]
	stp	x9, x10, [sp, #24]
	stur	q0, [sp, #8]
	str	w8, [sp]
	mov	w5, #0
	mov	w6, #0
	bl	_XvShmPutImage
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _Success@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Success@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_True,4,2                       ; @True
	.comm	_Success,8,3                    ; @Success
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not copy image to XV shared memory buffer\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.no_dead_strip	_xv_repaint
.subsections_via_symbols
