	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd_leds
_cd_leds:                               ## @cd_leds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	_cd_leds.old_reg(%rip), %ecx
	xorl	%eax, %ecx
	testb	$3, %cl
	je	LBB0_2
## %bb.1:
	movl	%eax, _cd_leds.old_reg(%rip)
	movq	_giz_screen@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	shll	$30, %edx
	sarl	$31, %edx
	andl	$100664832, %edx                ## imm = 0x6000600
	andl	$1, %eax
	negl	%eax
	andl	$-1073692672, %eax              ## imm = 0xC000C000
	movl	%edx, 1296(%rcx)
	movl	%edx, 1300(%rcx)
	movl	%eax, 1312(%rcx)
	movl	%eax, 1316(%rcx)
	movl	%edx, 1940(%rcx)
	movl	%eax, 1956(%rcx)
	movl	%edx, 2580(%rcx)
	movl	%edx, 2584(%rcx)
	movl	%eax, 2596(%rcx)
	movl	%eax, 2600(%rcx)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cd_leds.old_reg,4,2 ## @cd_leds.old_reg
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_giz_screen,8,3                 ## @giz_screen
	.no_dead_strip	_cd_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd_leds
_cd_leds:                               ; @cd_leds
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	adrp	x9, _cd_leds.old_reg@PAGE
	ldr	w10, [x9, _cd_leds.old_reg@PAGEOFF]
	eor	w10, w10, w8
	tst	w10, #0x3
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x9, _cd_leds.old_reg@PAGEOFF]
Lloh3:
	adrp	x9, _giz_screen@GOTPAGE
Lloh4:
	ldr	x9, [x9, _giz_screen@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sbfx	w10, w8, #1, #1
	and	w10, w10, #0x6000600
	sbfx	w8, w8, #0, #1
	and	w8, w8, #0xc000c000
	str	w10, [x9, #1296]
	str	w10, [x9, #1300]
	str	w8, [x9, #1312]
	str	w8, [x9, #1316]
	str	w10, [x9, #1940]
	str	w8, [x9, #1956]
	str	w10, [x9, #2580]
	str	w10, [x9, #2584]
	str	w8, [x9, #2596]
	str	w8, [x9, #2600]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cd_leds.old_reg,4,2 ; @cd_leds.old_reg
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_giz_screen,8,3                 ; @giz_screen
	.no_dead_strip	_cd_leds
.subsections_via_symbols
