	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function real_leds
_real_leds:                             ## @real_leds
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_leds_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_leds_req_pending@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_leds_pending@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	testb	$1, 1(%rax,%rcx,4)
	jne	LBB0_3
## %bb.2:
	movq	_pending_devs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_pending_led_end@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movl	%ebx, (%rdx,%rdi,4)
	incq	%rdi
	xorl	%edx, %edx
	cmpq	$16, %rdi
	cmovbq	%rdi, %rdx
	movq	%rdx, (%rsi)
LBB0_3:
	movzbl	%r14b, %edx
	orl	$256, %edx                      ## imm = 0x100
	movl	%edx, (%rax,%rcx,4)
	movq	_leds_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movl	$1, (%rax)
	movq	_leds_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_leds_done@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_KEYB_LEDREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ADB_WRITEREG
	notb	%r14b
	movzbl	%r14b, %ecx
	movl	%ecx, (%rsp)
	movq	_led_request@GOTPCREL(%rip), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	%eax, %r8d
	movl	$255, %r9d
	callq	_adb_request
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_leds_lock,4,2                  ## @leds_lock
	.comm	_leds_req_pending,4,2           ## @leds_req_pending
	.comm	_led_request,4,2                ## @led_request
	.comm	_leds_done,4,2                  ## @leds_done
	.comm	_KEYB_LEDREG,4,2                ## @KEYB_LEDREG
	.comm	_leds_pending,8,3               ## @leds_pending
	.comm	_pending_devs,8,3               ## @pending_devs
	.comm	_pending_led_end,8,3            ## @pending_led_end
	.no_dead_strip	_real_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function real_leds
_real_leds:                             ; @real_leds
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _leds_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _leds_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _leds_req_pending@GOTPAGE
Lloh3:
	ldr	x8, [x8, _leds_req_pending@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _leds_pending@GOTPAGE
Lloh5:
	ldr	x8, [x8, _leds_pending@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	sxtw	x9, w20
	ldr	w10, [x8, w20, sxtw #2]
	tbnz	w10, #8, LBB0_3
; %bb.2:
Lloh7:
	adrp	x10, _pending_devs@GOTPAGE
Lloh8:
	ldr	x10, [x10, _pending_devs@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _pending_led_end@GOTPAGE
Lloh11:
	ldr	x11, [x11, _pending_led_end@GOTPAGEOFF]
	ldr	x12, [x11]
	str	w20, [x10, x12, lsl #2]
	add	x10, x12, #1
	cmp	x10, #16
	csinc	x10, xzr, x12, hs
	str	x10, [x11]
LBB0_3:
	orr	w10, w19, #0x100
	str	w10, [x8, x9, lsl #2]
Lloh12:
	adrp	x0, _leds_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _leds_lock@GOTPAGEOFF]
	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	_spin_unlock_irqrestore
LBB0_4:
	mov	w9, #1
	str	w9, [x8]
Lloh14:
	adrp	x0, _leds_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _leds_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh16:
	adrp	x8, _leds_done@GOTPAGE
Lloh17:
	ldr	x8, [x8, _leds_done@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _KEYB_LEDREG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KEYB_LEDREG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ADB_WRITEREG
	mov	x4, x0
	eor	w6, w19, #0xff
Lloh22:
	adrp	x0, _led_request@GOTPAGE
Lloh23:
	ldr	x0, [x0, _led_request@GOTPAGEOFF]
	mov	x1, x21
	mov	w2, #0
	mov	w3, #3
	mov	w5, #255
	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	_adb_request
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_leds_lock,4,2                  ; @leds_lock
	.comm	_leds_req_pending,4,2           ; @leds_req_pending
	.comm	_led_request,4,2                ; @led_request
	.comm	_leds_done,4,2                  ; @leds_done
	.comm	_KEYB_LEDREG,4,2                ; @KEYB_LEDREG
	.comm	_leds_pending,8,3               ; @leds_pending
	.comm	_pending_devs,8,3               ; @pending_devs
	.comm	_pending_led_end,8,3            ; @pending_led_end
	.no_dead_strip	_real_leds
.subsections_via_symbols
