	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led                        ## -- Begin function set_led
	.p2align	4, 0x90
_set_led:                               ## @set_led
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.2:
	movl	%esi, %r14d
	xorl	%r15d, %r15d
	cmpb	%r14b, (%rbx)
	je	LBB0_6
## %bb.3:
	movzbl	%r14b, %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_snprintf
	movl	4(%rbx), %edi
	callq	_rewind
	movq	%r12, %rdi
	callq	_strlen
	movl	4(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %edi
	callq	_fflush
	movb	%r14b, (%rbx)
	jmp	LBB0_6
LBB0_4:
	movl	$-2, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led                        ; -- Begin function set_led
	.p2align	2
_set_led:                               ; @set_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x1
	ldrb	w8, [x20]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, sp
	mov	w1, #8
	mov	x3, x19
	bl	_snprintf
	ldr	w0, [x20, #4]
	bl	_rewind
	mov	x0, sp
	bl	_strlen
	mov	x2, x0
	ldr	w3, [x20, #4]
	mov	x0, sp
	mov	w1, #1
	bl	_fwrite
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x20, #4]
	bl	_fflush
	mov	w0, #0
	strb	w19, [x20]
	b	LBB0_5
LBB0_9:
	mov	w0, #-2
	b	LBB0_5
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

.subsections_via_symbols
