	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_calc_dumb_shadow
_qxl_calc_dumb_shadow:                  ## @qxl_calc_dumb_shadow
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	16(%r14), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	8(%r14), %r8
	movl	(%r15), %esi
	movq	8(%r15), %rbx
	cmpl	$1, %r9d
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
LBB0_10:
	testb	$1, %r9b
	je	LBB0_13
## %bb.11:
	leaq	(%rdi,%rdi,2), %rax
	movl	%esi, (%r8,%rax,8)
	addl	16(%r8,%rax,8), %esi
	movq	8(%r8,%rax,8), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
## %bb.12:
	movq	%rax, 8(%r15)
LBB0_13:
	movl	%esi, (%r15)
	cmpl	$63, %esi
	jg	LBB0_16
LBB0_15:
	movl	$64, (%r15)
	movl	$64, %esi
LBB0_16:
	movq	8(%r15), %rdx
	cmpq	$63, %rdx
	jg	LBB0_18
## %bb.17:
	movq	$64, 8(%r15)
	movl	$64, %edx
LBB0_18:
	movq	_SPICE_SURFACE_FMT_32_xRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	leal	(,%rsi,4), %eax
	movl	%eax, 16(%r15)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	cmpl	%esi, (%rax)
	jne	LBB0_22
## %bb.20:
	movslq	4(%rax), %rax
	cmpq	%rax, %rdx
	jne	LBB0_22
## %bb.21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_1:
	movl	(%r15), %esi
	cmpl	$63, %esi
	jle	LBB0_15
	jmp	LBB0_16
LBB0_4:
	movl	%r9d, %ecx
	andl	$-2, %ecx
	leaq	40(%r8), %rax
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rdi
	addq	$48, %rax
	cmpq	%rdi, %rcx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -40(%rax)
	addl	-24(%rax), %esi
	movq	-32(%rax), %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, 8(%r15)
	movq	%rdx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, -16(%rax)
	addl	(%rax), %esi
	movq	-8(%rax), %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, 8(%r15)
	movq	%rdx, %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SPICE_SURFACE_FMT_32_xRGB,4,2  ## @SPICE_SURFACE_FMT_32_xRGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d\n"

	.no_dead_strip	_qxl_calc_dumb_shadow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_calc_dumb_shadow
_qxl_calc_dumb_shadow:                  ; @qxl_calc_dumb_shadow
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_14
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	w1, [x20]
	ldr	x10, [x20, #8]
	add	x9, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w1, w11
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stur	w1, [x9, #-16]
	ldr	w11, [x9]
	ldur	x12, [x9, #-8]
	cmp	x10, x12
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x12, [x20, #8]
	mov	x10, x12
	b	LBB0_2
LBB0_5:
	str	w1, [x20]
	cmp	w1, #63
	b.gt	LBB0_7
LBB0_6:
	mov	w1, #64
	str	w1, [x20]
LBB0_7:
	ldr	x2, [x20, #8]
	cmp	x2, #63
	b.gt	LBB0_9
; %bb.8:
	mov	w2, #64
	str	x2, [x20, #8]
LBB0_9:
Lloh0:
	adrp	x8, _SPICE_SURFACE_FMT_32_xRGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPICE_SURFACE_FMT_32_xRGB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w9, w1, #2
	stp	w9, w8, [x20, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w9, [x8]
	cmp	w9, w1
	b.ne	LBB0_13
; %bb.11:
	ldrsw	x8, [x8, #4]
	cmp	x2, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG
LBB0_14:
	ldr	w1, [x20]
	cmp	w1, #63
	b.le	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPICE_SURFACE_FMT_32_xRGB,4,2  ; @SPICE_SURFACE_FMT_32_xRGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d\n"

	.no_dead_strip	_qxl_calc_dumb_shadow
.subsections_via_symbols
