	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_picture
_fill_picture:                          ## @fill_picture
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	(%rsi), %rax
	movq	(%rax), %r8
	cmpq	$0, 32(%r14)
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %ecx
	xorl	%edx, %edx
	cmpl	%ecx, (%r14)
	jl	LBB0_4
## %bb.3:
	movl	8(%r14), %eax
	incl	%eax
	cltd
	idivl	%ecx
LBB0_4:
	testl	%ecx, %ecx
	jg	LBB0_5
	jmp	LBB0_14
LBB0_1:
	movl	4(%r14), %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	jle	LBB0_14
LBB0_5:
	movq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %r12d
	xorl	%r11d, %r11d
	movl	%r12d, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r14), %ecx
	movl	%r12d, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%edx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	leaq	(%r8,%rax,4), %r8
	incl	%r11d
	cmpl	%ecx, %r11d
	jge	LBB0_14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %eax
	imull	%edx, %eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%edi, %edi
	movq	%r8, %r13
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%esi, (%r13)
	addq	$4, %r13
	movl	24(%r14), %r12d
	xorl	%ecx, %ecx
	xorl	%esi, %esi
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rdi
	movslq	%r12d, %r10
	movl	%r12d, %ebx
	movl	%esi, %eax
	movl	%ecx, %r9d
	cmpq	%r10, %rdi
	jge	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rdi,4), %esi
	movb	$7, %cl
	subb	%r9b, %cl
	shll	%cl, %esi
	leal	1(%r9), %ecx
	orl	%eax, %esi
	cmpl	$8, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	decl	%ebx
	cmpq	%rbx, %rdi
	jne	LBB0_11
	jmp	LBB0_10
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_picture
_fill_picture:                          ; @fill_picture
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_3
; %bb.1:
	ldp	w9, w16, [x8]
	cmp	w9, w16
	b.ge	LBB0_4
; %bb.2:
	mov	w9, #0
	cmp	w16, #1
	b.ge	LBB0_5
	b	LBB0_14
LBB0_3:
	ldr	w16, [x8, #4]
	cmp	w16, #1
	b.ge	LBB0_5
	b	LBB0_14
LBB0_4:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	sdiv	w10, w9, w16
	msub	w9, w10, w16, w9
	cmp	w16, #1
	b.lt	LBB0_14
LBB0_5:
	mov	w10, #0
	ldp	x12, x11, [x1]
	ldr	x12, [x12]
	ldr	x13, [x8, #16]
	ldr	w15, [x8, #24]
	mov	w14, #7
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w16, [x8, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w9, #1
	sdiv	w17, w9, w16
	msub	w9, w17, w16, w9
	ldrsw	x17, [x11]
	add	x12, x12, x17, lsl #2
	add	w10, w10, #1
	cmp	w10, w16
	b.ge	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w15, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x16, #0
	mov	w0, #0
	mov	w3, #0
	mul	w17, w15, w9
	add	x17, x13, w17, sxtw #2
	mov	x1, x12
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	w2, #0
	str	w0, [x1], #4
	ldr	w15, [x8, #24]
	mov	w0, #0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x16, x16, #1
	cmp	x16, w15, sxtw
	mov	x3, x2
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x17, x16, lsl #2]
	add	w2, w3, #1
	sub	w3, w14, w3
	lsl	w3, w4, w3
	orr	w0, w3, w0
	cmp	w2, #8
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	w3, w15, #1
	cmp	x16, x3
	b.ne	LBB0_11
	b	LBB0_10
LBB0_14:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_picture
.subsections_via_symbols
