	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diff_planes
_diff_planes:                           ## @diff_planes
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movl	16(%rbp), %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	leal	15(%r9), %eax
	testl	%r9d, %r9d
	cmovnsl	%r9d, %eax
	sarl	$4, %eax
	leal	15(%rbx), %edi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edi
	sarl	$4, %edi
	imull	%eax, %edi
	imull	(%r14), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	$0, %r12d
	cmpl	$8, %ebx
	jl	LBB0_10
## %bb.1:
	addl	$-7, %ebx
	leal	-7(%r9), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	-52(%rbp), %rdx                 ## 4-byte Folded Reload
	addq	$32, %rcx
	shlq	$4, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	$32, %rsi
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	$4, %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	addq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	$16, %r9d
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	jl	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$8, %ebx
	movq	%rsi, %r15
	movq	%rcx, %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	addq	$16, %r13
	addq	$16, %r15
	addl	$4, %ebx
	cmpl	%ebx, -68(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_2
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	*8(%r14)
	cmpl	16(%r14), %eax
	jg	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	20(%r14), %eax
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	1(%r12), %ecx
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ecx, %r12d
	jmp	LBB0_5
LBB0_10:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_12:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d>=hi "

L_.str.1:                               ## @.str.1
	.asciz	"lo:%d>=%d "

L_.str.2:                               ## @.str.2
	.asciz	"lo:%d<%d "

	.no_dead_strip	_diff_planes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diff_planes
_diff_planes:                           ; @diff_planes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x27, [x0]
	add	w8, w5, #15
	cmp	w5, #0
	csel	w8, w8, w5, lt
	asr	w8, w8, #4
	add	w9, w6, #15
	cmp	w6, #0
	csel	w9, w9, w6, lt
	asr	w9, w9, #4
	mul	w8, w9, w8
	ldr	w9, [x27]
	mul	w8, w8, w9
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	cmp	w6, #8
	b.lt	LBB0_10
; %bb.1:
	mov	x21, x4
	mov	x22, x2
	mov	x8, #0
	mov	w23, #0
	sub	w10, w6, #7
	sub	w19, w5, #7
	add	x20, x3, #32
	sbfiz	x9, x21, #4, #32
	stp	x9, x10, [sp, #16]              ; 16-byte Folded Spill
	add	x26, x1, #32
	sbfiz	x9, x22, #4, #32
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	str	w5, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x8, x8, #4
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x20, x20, x9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x26, x9
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	ldr	w5, [sp, #36]                   ; 4-byte Folded Reload
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	cmp	w5, #16
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #8
	mov	x24, x26
	mov	x25, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #16
	add	x24, x24, #16
	add	w28, w28, #4
	cmp	w19, w28
	b.le	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, #8]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	blr	x8
	mov	x3, x0
	ldr	w8, [x27, #16]
	cmp	w0, w8
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x27, #20]
	cmp	w3, w8
	b.le	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w3, w23, #1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	w23, w8
	b.ge	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x23, x3
	b	LBB0_5
LBB0_10:
	mov	w23, #0
LBB0_11:
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x23
	bl	_av_log
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_av_log
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d>=hi "

l_.str.1:                               ; @.str.1
	.asciz	"lo:%d>=%d "

l_.str.2:                               ; @.str.2
	.asciz	"lo:%d<%d "

	.no_dead_strip	_diff_planes
.subsections_via_symbols
