	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_set_image_buffer_size
_pwc_set_image_buffer_size:             ## @pwc_set_image_buffer_size
	.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	%rdi, %r14
	movl	(%rdi), %ecx
	movl	20(%rdi), %eax
	addl	$-128, %ecx
	xorl	%edx, %edx
	cmpl	$3, %ecx
	movl	$6, %esi
	cmovael	%edx, %esi
	movl	44(%rdi), %edi
	movl	48(%r14), %ecx
	movl	%edi, %edx
	imull	%ecx, %edx
	imull	%esi, %edx
	leal	3(%rdx), %ebx
	testl	%edx, %edx
	cmovnsl	%edx, %ebx
	sarl	$2, %ebx
	movl	%ebx, 40(%r14)
	movl	24(%r14), %edx
	movl	%eax, %ebx
	imull	%edx, %ebx
	imull	%esi, %ebx
	leal	3(%rbx), %esi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %esi
	sarl	$2, %esi
	movl	%esi, 16(%r14)
	movl	%eax, %esi
	subl	%edi, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	shrl	%edi
	andl	$65532, %edi                    ## imm = 0xFFFC
	movl	%edi, 52(%r14)
	movl	%edx, %esi
	subl	%ecx, %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	shrl	%ecx
	andl	$65534, %ecx                    ## imm = 0xFFFE
	movl	%ecx, 56(%r14)
	movq	_pwc_mbufs@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_4
## %bb.1:
	movl	$1, %r13d
	movq	_BLACK_V@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	imull	%eax, %edx
	movq	32(%r14), %rax
	movslq	-4(%rax,%r13,4), %r15
	addq	8(%r14), %r15
	movq	_BLACK_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_memset
	movslq	20(%r14), %rax
	movslq	24(%r14), %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rbx
	addq	%r15, %rbx
	movq	_BLACK_U@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movq	%rbx, %rdi
	callq	_memset
	movl	24(%r14), %eax
	imull	20(%r14), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rdx
	addq	%rdx, %rbx
	movl	(%r12), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	_pwc_mbufs@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14), %eax
	movl	24(%r14), %edx
	incq	%r13
	jmp	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwc_mbufs,4,2                  ## @pwc_mbufs
	.comm	_BLACK_Y,4,2                    ## @BLACK_Y
	.comm	_BLACK_U,4,2                    ## @BLACK_U
	.comm	_BLACK_V,4,2                    ## @BLACK_V
	.no_dead_strip	_pwc_set_image_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_set_image_buffer_size
_pwc_set_image_buffer_size:             ; @pwc_set_image_buffer_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	mov	w9, #6
	cmp	w8, #3
	csel	w10, w9, wzr, lo
	ldp	w11, w12, [x0, #44]
	mul	w8, w11, w10
	mul	w8, w8, w12
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [x0, #40]
	ldp	w8, w9, [x0, #20]
	mul	w10, w8, w10
	mul	w10, w10, w9
	add	w13, w10, #3
	cmp	w10, #0
	csel	w10, w13, w10, lt
	asr	w10, w10, #2
	str	w10, [x0, #16]
	sub	w10, w8, w11
	cmp	w10, #0
	cinc	w10, w10, lt
	lsr	w10, w10, #1
	and	w10, w10, #0xfffc
	sub	w11, w9, w12
	cmp	w11, #0
	cinc	w11, w11, lt
	lsr	w11, w11, #1
	and	w11, w11, #0xfffe
	stp	w10, w11, [x0, #52]
Lloh0:
	adrp	x21, _pwc_mbufs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pwc_mbufs@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x22, #0
Lloh2:
	adrp	x23, _BLACK_Y@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BLACK_Y@GOTPAGEOFF]
Lloh4:
	adrp	x24, _BLACK_U@GOTPAGE
Lloh5:
	ldr	x24, [x24, _BLACK_U@GOTPAGEOFF]
Lloh6:
	adrp	x25, _BLACK_V@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BLACK_V@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	x11, [x19, #32]
	ldrsw	x11, [x11, x22, lsl #2]
	add	x20, x10, x11
	ldr	w1, [x23]
	mul	w2, w9, w8
	mov	x0, x20
	bl	_memset
	ldpsw	x8, x9, [x19, #20]
	mul	x8, x9, x8
	add	x20, x20, x8
	ldr	w1, [x24]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x0, x20
	bl	_memset
	ldp	w8, w9, [x19, #20]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	add	x0, x20, w2, sxtw
	ldr	w1, [x25]
	bl	_memset
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [x19, #20]
	b	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pwc_mbufs,4,2                  ; @pwc_mbufs
	.comm	_BLACK_Y,4,2                    ; @BLACK_Y
	.comm	_BLACK_U,4,2                    ; @BLACK_U
	.comm	_BLACK_V,4,2                    ; @BLACK_V
	.no_dead_strip	_pwc_set_image_buffer_size
.subsections_via_symbols
