	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postprocess_luma
_postprocess_luma:                      ## @postprocess_luma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	jle	LBB0_10
## %bb.1:
	movl	%edx, %r8d
	movq	(%rdi), %rax
	movq	8(%rdi), %rdx
	movl	(%rax), %edi
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	movq	(%rdx), %rdi
	movl	$-1, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	notl	%r9d
	movslq	%eax, %r10
	movl	%esi, %ecx
	shlq	$2, %r10
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r11d
	addq	%r10, %rdi
	cmpl	%r8d, %r11d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%esi, %esi
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rcx
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rbx,4), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmpl	%r9d, %edx
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	imull	%edx, %edx
	movl	%edx, %eax
	shll	$16, %eax
	subl	%edx, %eax
	cltd
	idivl	%r9d
	cltd
	idivl	%r9d
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_postprocess_luma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postprocess_luma
_postprocess_luma:                      ; @postprocess_luma
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w8, #0
	ldp	x9, x10, [x0]
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w11, w9, #1
	mov	w9, #-1
	lsl	w12, w9, w3
	mov	w13, w1
	ldr	x9, [x10]
	mvn	w10, w12
	sbfiz	x11, x11, #2, #32
	lsl	x12, x13, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x9, x9, x11
	cmp	w8, w2
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w14, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w14, [x9, x13]
	add	x13, x13, #4
	cmp	x12, x13
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x9, x13]
	cmp	w14, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w14, w10
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w14, #65535
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mul	w14, w14, w14
	lsl	w15, w14, #16
	sub	w14, w15, w14
	sdiv	w14, w14, w10
	sdiv	w14, w14, w10
	b	LBB0_6
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_postprocess_luma
.subsections_via_symbols
