	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_blink_set                  ## -- Begin function led_blink_set
	.p2align	4, 0x90
_led_blink_set:                         ## @led_blink_set
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_17
LBB0_2:
	movq	%r12, %rdi
	callq	_led_get_timer
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_led_new_timer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
LBB0_4:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
LBB0_8:
	cmpq	%rax, (%rbx)
	jne	LBB0_10
LBB0_9:
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_10
	jmp	LBB0_17
LBB0_7:
	movq	$500, (%r14)                    ## imm = 0x1F4
	movq	$500, (%r15)                    ## imm = 0x1F4
	movl	$500, %eax                      ## imm = 0x1F4
	cmpq	%rax, (%rbx)
	je	LBB0_9
LBB0_10:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_11
LBB0_13:
	movl	%eax, 16(%rbx)
	jmp	LBB0_14
LBB0_11:
	cmpl	$0, 16(%rbx)
	je	LBB0_12
LBB0_14:
	movq	%rbx, %rdi
	callq	_led_stop_software_blink
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.15:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.16:
	addq	$20, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___led_set_brightness           ## TAILCALL
LBB0_12:
	movl	4(%r12), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_blink_set                  ; -- Begin function led_blink_set
	.p2align	2
_led_blink_set:                         ; @led_blink_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	cbz	w0, LBB0_16
LBB0_2:
	mov	x0, x19
	bl	_led_get_timer
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_led_new_timer
	mov	x22, x0
	cbz	x0, LBB0_16
LBB0_4:
	ldr	x8, [x21]
	cbnz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x8, #0
	b	LBB0_8
LBB0_7:
	mov	w8, #500
	str	x8, [x20]
	str	x8, [x21]
LBB0_8:
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x22, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
LBB0_11:
	str	w8, [x22, #16]
	b	LBB0_13
LBB0_12:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_18
LBB0_13:
	mov	x0, x22
	bl	_led_stop_software_blink
	ldr	x8, [x21]
	str	x8, [x22]
	ldr	x8, [x20]
	str	x8, [x22, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.15:
	add	x0, x22, #20
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w1, [x22, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___led_set_brightness
LBB0_18:
	ldr	w8, [x19, #4]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
