	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_sierpinski
_draw_sierpinski:                       ## @draw_sierpinski
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	(%rax), %r13
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
## %bb.1:
	movq	16(%rbx), %rcx
	cmpq	24(%rbx), %rcx
	jne	LBB0_3
## %bb.2:
	leaq	40(%rbx), %rdi
	callq	_av_lfg_get
	movl	%eax, %ecx
	movl	32(%rbx), %esi
	leal	(%rsi,%rsi), %edi
	incl	%edi
	movzwl	%cx, %eax
	xorl	%edx, %edx
	divl	%edi
	subl	%esi, %edx
	movslq	%edx, %rax
	addq	%rax, 8(%rbx)
	shrl	$16, %ecx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	subl	%esi, %edx
	movslq	%edx, %rax
	addq	%rax, 24(%rbx)
	jmp	LBB0_11
LBB0_3:
	movl	$1, %ecx
	cmpq	%rdx, %rax
	jl	LBB0_5
## %bb.4:
	movq	$-1, %rcx
	jle	LBB0_6
LBB0_5:
	addq	%rcx, %rax
	movq	%rax, (%rbx)
LBB0_6:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jge	LBB0_8
## %bb.7:
	incq	%rax
	jmp	LBB0_10
LBB0_8:
	jle	LBB0_11
## %bb.9:
	decq	%rax
LBB0_10:
	movq	%rax, 16(%rbx)
LBB0_11:
	movq	(%r12), %rax
	movq	(%rax), %r14
	movl	36(%rbx), %r15d
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_sierpinski
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_sierpinski
_draw_sierpinski:                       ; @draw_sierpinski
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x21, [x0, #8]
	ldr	x22, [x8]
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x10, x11, [x21, #16]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
	add	x0, x21, #40
	bl	_av_lfg_get
	ldr	w8, [x21, #32]
	mov	w9, #1
	bfi	w9, w8, #1, #31
	and	w10, w0, #0xffff
	udiv	w11, w10, w9
	msub	w10, w11, w9, w10
	sub	w10, w10, w8
	ldr	x11, [x21, #8]
	add	x10, x11, w10, sxtw
	str	x10, [x21, #8]
	lsr	w10, w0, #16
	udiv	w11, w10, w9
	msub	w9, w11, w9, w10
	sub	w8, w9, w8
	ldr	x9, [x21, #24]
	add	x8, x9, w8, sxtw
	str	x8, [x21, #24]
	b	LBB0_13
LBB0_3:
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	mov	w9, #1
	b	LBB0_7
LBB0_5:
	b.le	LBB0_8
; %bb.6:
	mov	x9, #-1
LBB0_7:
	add	x8, x8, x9
	str	x8, [x21]
LBB0_8:
	ldp	x8, x9, [x21, #16]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
	add	x8, x8, #1
	b	LBB0_12
LBB0_10:
	b.le	LBB0_13
; %bb.11:
	sub	x8, x8, #1
LBB0_12:
	str	x8, [x21, #16]
LBB0_13:
	ldr	x8, [x20]
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w21, [x21, #36]
	ldr	w22, [x22]
	mov	x0, x20
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x22
	bl	_FFMIN
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_sierpinski
.subsections_via_symbols
