	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XboxSetLED                     ## -- Begin function XboxSetLED
	.p2align	4, 0x90
_XboxSetLED:                            ## @XboxSetLED
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_strlen
	cmpl	$4, %eax
	jne	LBB0_12
## %bb.1:
	movb	(%rbx), %cl
	testb	%cl, %cl
	je	LBB0_2
## %bb.3:
	incq	%rbx
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	$1, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	$1, %edi
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %ecx
	incq	%rbx
	testb	%cl, %cl
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	addl	%edi, %edi
	movsbl	%cl, %ecx
	cmpl	$103, %ecx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$111, %ecx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$114, %ecx
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	orl	$1, %eax
	jmp	LBB0_10
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	xorl	%edi, %edi
LBB0_11:
	shll	$4, %eax
	movzbl	%al, %eax
	andl	$15, %edi
	orl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_I2cSetFrontpanelLed            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XboxSetLED                     ; -- Begin function XboxSetLED
	.p2align	2
_XboxSetLED:                            ; @XboxSetLED
	.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	x19, x0
	bl	_strlen
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.1:
	ldrb	w11, [x19]
	cbz	w11, LBB0_5
; %bb.2:
	mov	w10, #0
	mov	w9, #0
	add	x8, x19, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #1
	lsl	w10, w10, #1
	sxtb	w12, w11
	and	w11, w11, #0xff
	orr	w13, w10, #0x1
	orr	w14, w9, #0x1
	cmp	w12, #114
	csel	w15, w9, w14, ne
	cmp	w12, #111
	csel	w12, w14, w15, eq
	csel	w10, w13, w10, eq
	cmp	w11, #103
	csel	w9, w9, w12, eq
	csel	w10, w13, w10, eq
	ldrb	w11, [x8], #1
	cbnz	w11, LBB0_3
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w9, #0
	mov	w10, #0
LBB0_6:
	and	w0, w10, #0xf
	bfi	w0, w9, #4, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I2cSetFrontpanelLed
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
