	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawLeds
_DrawLeds:                              ## @DrawLeds
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1000, %ecx                     ## imm = 0x3E8
	jge	LBB0_1
## %bb.2:
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.3:
	movzwl	%cx, %eax
	shrl	$2, %eax
	imull	$5243, %eax, %r15d              ## imm = 0x147B
	shrl	$17, %r15d
	imull	$-100, %r15d, %eax
	addl	%ecx, %eax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.memset_pattern(%rip), %rsi
	leaq	-60(%rbp), %rdi
	movl	$12, %edx
	callq	_memset_pattern16
	movl	-60(%rbp), %r15d
	movl	-56(%rbp), %r14d
	movl	-52(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_4:
	negl	%ecx
	movl	$10, %r15d
	movl	%ecx, %eax
LBB0_5:
	movslq	%eax, %rcx
	imulq	$1717986919, %rcx, %r14         ## imm = 0x66666667
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$34, %r14
	addl	%eax, %r14d
	leal	(%r14,%r14), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_6:
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_SelectObject
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_LED_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LED_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	imull	%r8d, %r15d
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	subq	$8, %rsp
	movl	%r12d, %edi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r15, %rax
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %r9d
	pushq	%r10
	pushq	%rax
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movq	_LED_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%r13), %esi
	movq	_LED_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	imull	%r8d, %r14d
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%r15d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r14
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movq	_LED_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%r13,%rcx,2), %esi
	movq	_LED_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	imull	%r8d, %eax
	movq	_SRCCOPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%r15d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r9d
	pushq	%r10
	pushq	%rax
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.8:
	movl	%ebx, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SelectObject                   ## TAILCALL
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_WIDTH,4,2                  ## @LED_WIDTH
	.comm	_LED_HEIGHT,4,2                 ## @LED_HEIGHT
	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa

	.no_dead_strip	_DrawLeds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawLeds
_DrawLeds:                              ; @DrawLeds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x22, x4
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w3, #1000
	b.ge	LBB0_3
; %bb.1:
	tbnz	w3, #31, LBB0_4
; %bb.2:
	ubfx	w8, w3, #2, #14
	mov	w9, #5243
	mul	w8, w8, w9
	lsr	w25, w8, #17
	mov	w8, #-100
	madd	w8, w25, w8, w3
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x1, l_.memset_pattern@PAGE
Lloh4:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	add	x0, sp, #12
	mov	w2, #12
	bl	_memset_pattern16
	ldp	w25, w26, [sp, #12]
	ldr	w24, [sp, #20]
	b	LBB0_6
LBB0_4:
	neg	w8, w3
	mov	w25, #10
LBB0_5:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w26, w9, w10
	mov	w9, #-10
	madd	w24, w26, w9, w8
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_SelectObject
	mov	x23, x0
Lloh5:
	adrp	x27, _LED_WIDTH@GOTPAGE
Lloh6:
	ldr	x27, [x27, _LED_WIDTH@GOTPAGEOFF]
Lloh7:
	adrp	x28, _LED_HEIGHT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _LED_HEIGHT@GOTPAGEOFF]
	ldr	w3, [x27]
	ldr	w4, [x28]
	mul	w7, w25, w4
Lloh9:
	adrp	x25, _SRCCOPY@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SRCCOPY@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x5, x19
	mov	w6, #0
	bl	_BitBlt
	ldr	w3, [x27]
	add	w1, w3, w22
	ldr	w4, [x28]
	mul	w7, w26, w4
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x20
	mov	x5, x19
	mov	w6, #0
	bl	_BitBlt
	ldr	w3, [x27]
	add	w1, w22, w3, lsl #1
	ldr	w4, [x28]
	mul	w7, w24, w4
	ldr	w8, [x25]
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x20
	mov	x5, x19
	mov	w6, #0
	bl	_BitBlt
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_SelectObject
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_WIDTH,4,2                  ; @LED_WIDTH
	.comm	_LED_HEIGHT,4,2                 ; @LED_HEIGHT
	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	10                              ; 0xa
	.long	10                              ; 0xa
	.long	10                              ; 0xa
	.long	10                              ; 0xa

	.no_dead_strip	_DrawLeds
.subsections_via_symbols
