	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xv_frame
_xv_frame:                              ## @xv_frame
	.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
	movl	$1, %eax
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movl	%r9d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_xv_check_resize
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_x11_win@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_XGetWindowAttributes
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	*40(%rbx)
	movl	36(%rbx), %edi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movq	%rbx, %rsi
	callq	_xv_calc_out_rect
	movq	16(%rbp), %rsi
	movl	-44(%rbp), %eax
	movl	%eax, 20(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 16(%rbx)
	addl	%r15d, %r15d
	addl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_xv_render_msg
LBB0_5:
	movq	_g_x11_dpy@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	32(%rbx), %esi
	movq	_g_x11_win@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	28(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	12(%rbx), %r10d
	movl	8(%rbx), %r11d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	xorl	%r9d, %r9d
	pushq	$1
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	%r15
	pushq	$0
	callq	_XvShmPutImage
	addq	$64, %rsp
	movl	(%r14), %edi
	movq	_False@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XSync
	xorl	%edi, %edi
	movq	24(%rbp), %rsi
	callq	_x11_update_title
	movl	$1, %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %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	_g_x11_win,4,2                  ## @g_x11_win
	.comm	_False,4,2                      ## @False
	.no_dead_strip	_xv_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xv_frame
_xv_frame:                              ; @xv_frame
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x7
	mov	x21, x6
	mov	x24, x5
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	mov	x1, x2
	mov	x2, x3
	bl	_xv_check_resize
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x26, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x26, [x26, _g_x11_dpy@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x27, _g_x11_win@GOTPAGE
Lloh3:
	ldr	x27, [x27, _g_x11_win@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x2, sp, #24
	bl	_XGetWindowAttributes
	ldr	x8, [x20, #40]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	blr	x8
	ldr	w0, [x20, #36]
	ldp	w3, w2, [sp, #24]
	mov	x1, x20
	bl	_xv_calc_out_rect
	ldr	d0, [sp, #24]
	str	d0, [x20, #16]
	lsl	w23, w23, #1
	lsl	w22, w22, #1
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_xv_render_msg
LBB0_4:
	ldr	w0, [x26]
	ldp	w3, w1, [x20, #28]
	ldr	w2, [x27]
	ldr	w4, [x20, #24]
	ldp	w9, w8, [x20, #8]
	ldp	w11, w10, [x20]
	mov	w20, #1
	stp	w11, w20, [sp, #16]
	stp	w9, w10, [sp, #8]
	stp	w22, w8, [sp]
	mov	w5, #0
	mov	w6, #0
	mov	x7, x23
	bl	_XvShmPutImage
	ldr	w0, [x26]
Lloh4:
	adrp	x8, _False@GOTPAGE
Lloh5:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_XSync
	mov	x0, #0
	mov	x1, x19
	bl	_x11_update_title
	b	LBB0_7
LBB0_5:
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.comm	_g_x11_win,4,2                  ; @g_x11_win
	.comm	_False,4,2                      ; @False
	.no_dead_strip	_xv_frame
.subsections_via_symbols
