	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbFunctionWrite               ## -- Begin function usbFunctionWrite
	.p2align	4, 0x90
_usbFunctionWrite:                      ## @usbFunctionWrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_last_req@GOTPCREL(%rip), %r14
	movl	$-1, %eax
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.1:
	movl	8(%r14), %ecx
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movl	(%rbx), %edi
	callq	_debug_hex
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	movl	(%rbx), %eax
	movq	_vusb_keyboard_leds@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$0, (%r14)
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_usbDeviceDisconnect
	xorl	%eax, %eax
	callq	_bootloader_jump
LBB0_5:
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_req,16,3                  ## @last_req
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET_LED: "

L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_vusb_keyboard_leds,4,2         ## @vusb_keyboard_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbFunctionWrite               ; -- Begin function usbFunctionWrite
	.p2align	2
_usbFunctionWrite:                      ; @usbFunctionWrite
	.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
Lloh0:
	adrp	x20, _last_req@GOTPAGE
Lloh1:
	ldr	x20, [x20, _last_req@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x20, #8]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldr	w0, [x19]
	bl	_debug_hex
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _vusb_keyboard_leds@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vusb_keyboard_leds@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	str	xzr, [x20]
	b	LBB0_6
LBB0_4:
	mov	w0, #-1
	b	LBB0_7
LBB0_5:
	bl	_usbDeviceDisconnect
	bl	_bootloader_jump
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_last_req,16,3                  ; @last_req
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET_LED: "

l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_vusb_keyboard_leds,4,2         ; @vusb_keyboard_leds
.subsections_via_symbols
