	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_toggle_rgb           ## -- Begin function backlight_toggle_rgb
	.p2align	4, 0x90
_backlight_toggle_rgb:                  ## @backlight_toggle_rgb
	.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
	subq	$632, %rsp                      ## imm = 0x278
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movq	_backlight_rgb_r@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -640(%rbp)
	movq	_backlight_rgb_g@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -636(%rbp)
	movq	_backlight_rgb_b@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -632(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -628(%rbp)
	movq	$0, -612(%rbp)
	movl	%eax, -604(%rbp)
	movl	%ecx, -600(%rbp)
	movl	%edx, -596(%rbp)
	movaps	%xmm0, -592(%rbp)
	movq	$0, -576(%rbp)
	movl	%eax, -568(%rbp)
	movl	%ecx, -564(%rbp)
	movl	%edx, -560(%rbp)
	movups	%xmm0, -556(%rbp)
	movq	$0, -540(%rbp)
	movl	%eax, -532(%rbp)
	movl	%ecx, -528(%rbp)
	movl	%edx, -524(%rbp)
	movups	%xmm0, -520(%rbp)
	movq	$0, -504(%rbp)
	movl	%eax, -496(%rbp)
	movl	%ecx, -492(%rbp)
	movl	%edx, -488(%rbp)
	movups	%xmm0, -484(%rbp)
	movq	$0, -468(%rbp)
	movl	%eax, -460(%rbp)
	movl	%ecx, -456(%rbp)
	movl	%edx, -452(%rbp)
	movaps	%xmm0, -448(%rbp)
	movq	$0, -432(%rbp)
	movl	%eax, -424(%rbp)
	movl	%ecx, -420(%rbp)
	movl	%edx, -416(%rbp)
	movups	%xmm0, -412(%rbp)
	movq	$0, -396(%rbp)
	movl	%eax, -388(%rbp)
	movl	%ecx, -384(%rbp)
	movl	%edx, -380(%rbp)
	movups	%xmm0, -376(%rbp)
	movq	$0, -360(%rbp)
	movl	%eax, -352(%rbp)
	movl	%ecx, -348(%rbp)
	movl	%edx, -344(%rbp)
	movups	%xmm0, -340(%rbp)
	movq	$0, -324(%rbp)
	movl	%eax, -316(%rbp)
	movl	%ecx, -312(%rbp)
	movl	%edx, -308(%rbp)
	movaps	%xmm0, -304(%rbp)
	movq	$0, -288(%rbp)
	movl	%eax, -280(%rbp)
	movl	%ecx, -276(%rbp)
	movl	%edx, -272(%rbp)
	movups	%xmm0, -268(%rbp)
	movq	$0, -252(%rbp)
	movl	%eax, -244(%rbp)
	movl	%ecx, -240(%rbp)
	movl	%edx, -236(%rbp)
	movups	%xmm0, -232(%rbp)
	movq	$0, -216(%rbp)
	movl	%eax, -208(%rbp)
	movl	%ecx, -204(%rbp)
	movl	%edx, -200(%rbp)
	movups	%xmm0, -196(%rbp)
	movq	$0, -180(%rbp)
	movl	%eax, -172(%rbp)
	movl	%ecx, -168(%rbp)
	movl	%edx, -164(%rbp)
	movaps	%xmm0, -160(%rbp)
	movq	$0, -144(%rbp)
	movl	%eax, -136(%rbp)
	movl	%ecx, -132(%rbp)
	movl	%edx, -128(%rbp)
	movups	%xmm0, -124(%rbp)
	movq	$0, -108(%rbp)
	movl	%eax, -100(%rbp)
	movl	%ecx, -96(%rbp)
	movl	%edx, -92(%rbp)
	movups	%xmm0, -88(%rbp)
	movq	$0, -72(%rbp)
	movl	%eax, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movl	%edx, -56(%rbp)
	movups	%xmm0, -52(%rbp)
	movq	$0, -36(%rbp)
	leaq	-640(%rbp), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	-640(%rbp), %rbx
	movl	$612, %esi                      ## imm = 0x264
	movq	%rbx, %rdi
	callq	___bzero
	movq	%rbx, %rdi
LBB0_3:
	callq	_backlight_set_rgb
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$632, %rsp                      ## imm = 0x278
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_rgb_r,4,2            ## @backlight_rgb_r
	.comm	_backlight_rgb_g,4,2            ## @backlight_rgb_g
	.comm	_backlight_rgb_b,4,2            ## @backlight_rgb_b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_toggle_rgb           ; -- Begin function backlight_toggle_rgb
	.p2align	2
_backlight_toggle_rgb:                  ; @backlight_toggle_rgb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -24
	.cfi_offset w28, -32
	sub	sp, sp, #624
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _backlight_rgb_r@GOTPAGE
Lloh4:
	ldr	x9, [x9, _backlight_rgb_r@GOTPAGEOFF]
	mov	x8, sp
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _backlight_rgb_g@GOTPAGE
Lloh7:
	ldr	x10, [x10, _backlight_rgb_g@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w9, w10, [sp]
Lloh9:
	adrp	x11, _backlight_rgb_b@GOTPAGE
Lloh10:
	ldr	x11, [x11, _backlight_rgb_b@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	str	w11, [sp, #8]
	stur	xzr, [sp, #12]
	stur	xzr, [sp, #28]
	stur	xzr, [sp, #20]
	stp	w9, w10, [sp, #36]
	str	w11, [sp, #44]
	stp	xzr, xzr, [sp, #56]
	str	xzr, [sp, #48]
	stp	w9, w10, [sp, #72]
	str	w11, [sp, #80]
	stur	xzr, [sp, #100]
	stur	xzr, [sp, #84]
	stur	xzr, [sp, #92]
	stp	w9, w10, [sp, #108]
	str	w11, [sp, #116]
	stp	xzr, xzr, [sp, #120]
	str	xzr, [sp, #136]
	stp	w9, w10, [sp, #144]
	stur	xzr, [x8, #164]
	stur	xzr, [x8, #156]
	stur	xzr, [x8, #172]
	str	w11, [sp, #152]
	stp	w9, w10, [sp, #180]
	str	w11, [sp, #188]
	stp	xzr, xzr, [sp, #192]
	str	xzr, [sp, #208]
	stp	w9, w10, [sp, #216]
	stur	xzr, [x8, #236]
	stur	xzr, [x8, #228]
	stur	xzr, [x8, #244]
	str	w11, [sp, #224]
	stp	w9, w10, [sp, #252]
	str	w11, [sp, #260]
	stp	xzr, xzr, [sp, #264]
	str	xzr, [sp, #280]
	str	w9, [sp, #288]
	str	w10, [sp, #292]
	str	w11, [sp, #296]
	add	x12, x8, #300
	add	x13, x8, #308
	str	xzr, [x13]
	str	xzr, [x12]
	add	x12, x8, #316
	str	xzr, [x12]
	str	w9, [sp, #324]
	str	w10, [sp, #328]
	str	w11, [sp, #332]
	stp	xzr, xzr, [sp, #336]
	str	xzr, [sp, #352]
	str	w9, [sp, #360]
	str	w10, [sp, #364]
	str	w11, [sp, #368]
	add	x12, x8, #372
	add	x13, x8, #380
	str	xzr, [x13]
	str	xzr, [x12]
	add	x12, x8, #388
	str	xzr, [x12]
	str	w9, [sp, #396]
	str	w10, [sp, #400]
	str	w11, [sp, #404]
	stp	xzr, xzr, [sp, #408]
	str	xzr, [sp, #424]
	str	w9, [sp, #432]
	str	w10, [sp, #436]
	str	w11, [sp, #440]
	add	x12, x8, #444
	add	x13, x8, #452
	str	xzr, [x13]
	str	xzr, [x12]
	add	x12, x8, #460
	str	xzr, [x12]
	str	w9, [sp, #468]
	str	w10, [sp, #472]
	str	w11, [sp, #476]
	stp	xzr, xzr, [sp, #480]
	str	xzr, [sp, #496]
	str	w9, [sp, #504]
	str	w10, [sp, #508]
	str	w11, [sp, #512]
	add	x12, x8, #516
	add	x13, x8, #524
	str	xzr, [x13]
	str	xzr, [x12]
	add	x12, x8, #532
	str	xzr, [x12]
	str	w9, [sp, #540]
	str	w10, [sp, #544]
	str	w11, [sp, #548]
	str	xzr, [sp, #560]
	str	xzr, [sp, #552]
	str	xzr, [sp, #568]
	str	w9, [sp, #576]
	str	w10, [sp, #580]
	str	w11, [sp, #584]
	add	x9, x8, #588
	add	x10, x8, #596
	str	xzr, [x10]
	str	xzr, [x9]
	add	x8, x8, #604
	str	xzr, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, sp
	mov	w1, #612
	bl	_bzero
LBB0_3:
	mov	x0, sp
	bl	_backlight_set_rgb
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #624
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_rgb_r,4,2            ; @backlight_rgb_r
	.comm	_backlight_rgb_g,4,2            ; @backlight_rgb_g
	.comm	_backlight_rgb_b,4,2            ; @backlight_rgb_b
.subsections_via_symbols
