	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmrend_draw_cursor
_bcmrend_draw_cursor:                   ## @bcmrend_draw_cursor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdi)
	jle	LBB0_15
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %r10
	movq	(%r10), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.2:
	movq	%rcx, %rax
	shrq	$32, %rax
	imull	%ecx, %eax
	cmpl	%esi, %eax
	jle	LBB0_15
## %bb.3:
	movl	8(%r10), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.4:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	imull	%r8d, %eax
	addl	%r8d, %eax
	movl	12(%r10), %ebx
	movl	16(%r10), %esi
	imull	%ebx, %eax
	cltq
	leaq	(%rcx,%rax,4), %rax
	imull	%ebx, %edx
	addl	20(%r10), %edx
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$3, %ecx
	imull	%ecx, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rax
	movslq	%ecx, %r11
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r10), %r8d
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rax,%rdx,4), %rax
	incl	%r9d
	cmpl	%r8d, %r9d
	jge	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rcx, %rdx
	imulq	%r11, %rdx
	notb	8(%rax,%rdi,4)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	notb	4(%rax,%rdx,4)
	notb	(%rax,%rdx,4)
	movl	12(%r10), %ebx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rcx
	movslq	%ebx, %rdx
	addq	%r11, %rdi
	cmpq	%rdx, %rcx
	jge	LBB0_13
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r10), %esi
	cmpl	$32, %esi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$24, %esi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdi, %rdx
	cmpl	$16, %esi
	je	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rdx
	jmp	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bcmrend_draw_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmrend_draw_cursor
_bcmrend_draw_cursor:                   ; @bcmrend_draw_cursor
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x10, [x8]
	cmp	x10, #0
	lsr	x9, x10, #32
	mul	w9, w9, w10
	ccmp	w9, w1, #4, ne
	b.gt	LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldr	w13, [x8, #8]
	cmp	w13, #1
	b.lt	LBB0_2
; %bb.4:
	mov	w9, #0
	sdiv	w11, w1, w10
	madd	w14, w13, w11, w13
	msub	w11, w11, w10, w1
	ldp	w12, w15, [x8, #12]
	mul	w14, w14, w12
	add	x10, x10, w14, sxtw #2
	ldr	w14, [x8, #20]
	madd	w11, w12, w11, w14
	add	w14, w15, #7
	cmp	w15, #0
	csel	w14, w14, w15, lt
	asr	w15, w14, #3
	mul	w11, w11, w15
	add	x10, x10, w11, sxtw #2
	sbfx	x11, x14, #3, #29
	movi	d0, #0x0000ff000000ff
	mov	x14, x12
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x8, #8]
	mov	x14, x12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, x16, lsl #2
	add	w9, w9, #1
	cmp	w9, w13
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w14, #1
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, #0
	mov	x14, #0
	add	x15, x10, #8
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	mul	x16, x14, x11
	lsl	x12, x13, #2
	ldr	w17, [x15, x12]
	eor	w17, w17, #0xff
	str	w17, [x15, x12]
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	lsl	x12, x16, #2
	ldr	d1, [x10, x12]
	eor.8b	v1, v1, v0
	str	d1, [x10, x12]
	ldr	w12, [x8, #12]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x14, x14, #1
	sxtw	x16, w12
	add	x13, x13, x11
	cmp	x14, x16
	b.ge	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x8, #16]
	cmp	w17, #32
	ccmp	w17, #24, #4, ne
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x16, x13
	cmp	w17, #16
	b.eq	LBB0_10
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x16, w14
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bcmrend_draw_cursor
.subsections_via_symbols
