	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcsm_square_draw_pattern
_vcsm_square_draw_pattern:              ## @vcsm_square_draw_pattern
	.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	_fb_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	$32, %r12d
	movl	$32, %r14d
	cmovll	%r12d, %r14d
	movl	_vcsm_square_draw_pattern.x_offset(%rip), %eax
	incl	%eax
	movl	%r12d, %ecx
	subl	%r14d, %ecx
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, _vcsm_square_draw_pattern.x_offset(%rip)
	movq	_fb_height@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	movq	%rdi, %r13
	shll	$2, %r14d
	shll	$2, %edx
	addq	%rdi, %rdx
	movq	%rdx, %rdi
	movl	$-1, %esi
	movl	%r14d, %edx
	callq	_memset
	cmpl	$2, (%r15)
	jl	LBB0_4
## %bb.2:
	shll	$2, %r12d
	movslq	%r12d, %r12
	addq	%r12, %r13
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	_vcsm_square_draw_pattern.x_offset(%rip), %edi
	shll	$2, %edi
	addq	%r13, %rdi
	movl	$-1, %esi
	movl	%r14d, %edx
	callq	_memset
	incl	%ebx
	addq	%r12, %r13
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vcsm_square_draw_pattern.x_offset,4,2 ## @vcsm_square_draw_pattern.x_offset
	.comm	_fb_width,4,2                   ## @fb_width
	.comm	_fb_height,4,2                  ## @fb_height
	.no_dead_strip	_vcsm_square_draw_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcsm_square_draw_pattern
_vcsm_square_draw_pattern:              ; @vcsm_square_draw_pattern
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _fb_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fb_width@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	w8, #32
	cmp	w23, #32
	csel	w8, w23, w8, lt
	adrp	x21, _vcsm_square_draw_pattern.x_offset@PAGE
	ldr	w9, [x21, _vcsm_square_draw_pattern.x_offset@PAGEOFF]
	add	w9, w9, #1
	sub	w10, w23, w8
	udiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x21, _vcsm_square_draw_pattern.x_offset@PAGEOFF]
Lloh3:
	adrp	x22, _fb_height@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fb_height@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	lsl	w19, w8, #2
	lsl	w8, w9, #2
	add	x0, x0, x8
	mov	w1, #-1
	mov	x2, x19
	bl	_memset
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	lsl	w8, w23, #2
	sxtw	x23, w8
	add	x20, x20, x23
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, _vcsm_square_draw_pattern.x_offset@PAGEOFF]
	lsl	w8, w8, #2
	add	x0, x20, x8
	mov	w1, #-1
	mov	x2, x19
	bl	_memset
	add	w24, w24, #1
	ldr	w8, [x22]
	add	x20, x20, x23
	cmp	w24, w8
	b.lt	LBB0_3
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vcsm_square_draw_pattern.x_offset,4,2 ; @vcsm_square_draw_pattern.x_offset
	.comm	_fb_width,4,2                   ; @fb_width
	.comm	_fb_height,4,2                  ; @fb_height
	.no_dead_strip	_vcsm_square_draw_pattern
.subsections_via_symbols
