	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_pix
_copy_pix:                              ## @copy_pix
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %r11d
	addl	%edx, %r11d
	movl	4(%rdi), %r14d
	addl	%esi, %r14d
	movq	(%rcx), %r9
	movq	(%r8), %r10
	movq	%r10, (%rcx)
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	56(%rdi), %eax
	leal	7(%rax), %ebx
	addl	$14, %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	subl	72(%rdi), %edx
	subl	64(%rdi), %esi
	sarl	$3, %eax
	imull	%eax, %esi
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	addl	%esi, %eax
	movl	(%r15,%rax,4), %eax
	andb	$7, %dl
	movzbl	%dl, %edx
	btl	%edx, %eax
	jae	LBB0_21
LBB0_2:
	movl	16(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.3:
	movq	48(%rdi), %rsi
	shlq	$4, %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rdx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rbx), %eax
	cmpl	%eax, %r14d
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	4(%rsi,%rbx), %eax
	cmpl	%eax, %r14d
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rsi,%rbx), %eax
	cmpl	%eax, %r11d
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	12(%rsi,%rbx), %eax
	cmpl	%eax, %r11d
	jge	LBB0_8
	jmp	LBB0_21
LBB0_9:
	movl	20(%rdi), %eax
	movq	_V4L2_FBUF_FLAG_CHROMAKEY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	(%r8), %rdx
	cmpq	24(%rdi), %rdx
	jne	LBB0_21
LBB0_11:
	movq	_V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_13
## %bb.12:
	cmpq	24(%rdi), %r9
	je	LBB0_21
LBB0_13:
	movq	32(%rdi), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.14:
	movq	_V4L2_FBUF_FLAG_GLOBAL_ALPHA@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_16
## %bb.15:
	cmpq	$0, 40(%rdi)
	jne	LBB0_21
LBB0_16:
	movq	_V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPCREL(%rip), %rsi
	andq	%rdx, %r10
	testl	%eax, (%rsi)
	je	LBB0_18
## %bb.17:
	testq	%r10, %r10
	jne	LBB0_21
LBB0_18:
	movq	_V4L2_FBUF_FLAG_LOCAL_INV_ALPHA@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_20
## %bb.19:
	testq	%r10, %r10
	je	LBB0_21
LBB0_20:
	movq	%r9, (%rcx)
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ## @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ## @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_GLOBAL_ALPHA,4,2 ## @V4L2_FBUF_FLAG_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ## @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_LOCAL_INV_ALPHA,4,2 ## @V4L2_FBUF_FLAG_LOCAL_INV_ALPHA
	.no_dead_strip	_copy_pix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_pix
_copy_pix:                              ; @copy_pix
	.cfi_startproc
; %bb.0:
	ldp	w11, w12, [x0]
	ldr	x8, [x3]
	ldr	x9, [x4]
	str	x9, [x3]
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	w13, [x0, #56]
	add	w14, w13, #7
	add	w13, w13, #14
	cmp	w14, #0
	csel	w13, w13, w14, lt
	asr	w13, w13, #3
	ldr	w14, [x0, #72]
	sub	w14, w2, w14
	ldr	w15, [x0, #64]
	sub	w15, w1, w15
	mul	w13, w15, w13
	add	w15, w14, #7
	cmp	w14, #0
	csel	w15, w15, w14, lt
	add	w13, w13, w15, asr #3
	ldr	w10, [x10, w13, uxtw #2]
	and	w13, w14, #0x7
	lsr	w10, w10, w13
	tbz	w10, #0, LBB0_9
LBB0_2:
	ldr	w10, [x0, #16]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.3:
	add	w11, w11, w2
	add	w12, w12, w1
	ldr	x13, [x0, #48]
	add	x13, x13, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x13, #16
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x13, #-8]
	cmp	w12, w14
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w15, [x13, #-4]
	add	w14, w15, w14
	cmp	w12, w14
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x13]
	cmp	w11, w14
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x13, #4]
	add	w14, w15, w14
	cmp	w11, w14
	b.ge	LBB0_4
LBB0_9:
	ret
LBB0_10:
	ldr	w10, [x0, #20]
Lloh0:
	adrp	x11, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_FBUF_FLAG_CHROMAKEY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.11:
	ldr	x11, [x4]
	ldr	x12, [x0, #24]
	cmp	x11, x12
	b.ne	LBB0_9
LBB0_12:
Lloh3:
	adrp	x11, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_FBUF_FLAG_SRC_CHROMAKEY@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_14
; %bb.13:
	ldr	x11, [x0, #24]
	cmp	x8, x11
	b.eq	LBB0_9
LBB0_14:
	ldr	x11, [x0, #32]
	ldrsw	x11, [x11]
	cbz	w11, LBB0_19
; %bb.15:
Lloh6:
	adrp	x12, _V4L2_FBUF_FLAG_GLOBAL_ALPHA@GOTPAGE
Lloh7:
	ldr	x12, [x12, _V4L2_FBUF_FLAG_GLOBAL_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w10
	b.eq	LBB0_17
; %bb.16:
	ldr	x12, [x0, #40]
	cbnz	x12, LBB0_9
LBB0_17:
Lloh9:
	adrp	x12, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGE
Lloh10:
	ldr	x12, [x12, _V4L2_FBUF_FLAG_LOCAL_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	and	w12, w12, w10
	and	x9, x9, x11
	cmp	w12, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_9
; %bb.18:
Lloh12:
	adrp	x11, _V4L2_FBUF_FLAG_LOCAL_INV_ALPHA@GOTPAGE
Lloh13:
	ldr	x11, [x11, _V4L2_FBUF_FLAG_LOCAL_INV_ALPHA@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	and	w10, w11, w10
	cmp	w10, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_9
LBB0_19:
	str	x8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FBUF_FLAG_CHROMAKEY,4,2   ; @V4L2_FBUF_FLAG_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_SRC_CHROMAKEY,4,2 ; @V4L2_FBUF_FLAG_SRC_CHROMAKEY
	.comm	_V4L2_FBUF_FLAG_GLOBAL_ALPHA,4,2 ; @V4L2_FBUF_FLAG_GLOBAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_LOCAL_ALPHA,4,2 ; @V4L2_FBUF_FLAG_LOCAL_ALPHA
	.comm	_V4L2_FBUF_FLAG_LOCAL_INV_ALPHA,4,2 ; @V4L2_FBUF_FLAG_LOCAL_INV_ALPHA
	.no_dead_strip	_copy_pix
.subsections_via_symbols
