	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	_debug_enable@GOTPCREL(%rip), %rbx
	movl	$1, (%rbx)
	movq	_debug_keyboard@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_lufa_driver@GOTPCREL(%rip), %rdi
	callq	_host_set_driver
	xorl	%eax, %eax
	callq	_keyboard_init
	xorl	%eax, %eax
	callq	_LUFA_setup
	xorl	%eax, %eax
	callq	_sei
	movq	_USB_DeviceState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEVICE_STATE_Configured@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	__delay_ms
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_debug
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_keyboard_task
	xorl	%eax, %eax
	callq	_USB_USBTask
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_TX_INIT,4,2                ## @LED_TX_INIT
	.comm	_LED_TX_ON,4,2                  ## @LED_TX_ON
	.comm	_debug_enable,4,2               ## @debug_enable
	.comm	_debug_keyboard,4,2             ## @debug_keyboard
	.comm	_lufa_driver,4,2                ## @lufa_driver
	.comm	_USB_DeviceState,8,3            ## @USB_DeviceState
	.comm	_DEVICE_STATE_Configured,8,3    ## @DEVICE_STATE_Configured
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init: done\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x19, _debug_enable@GOTPAGE
Lloh1:
	ldr	x19, [x19, _debug_enable@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x9, _debug_keyboard@GOTPAGE
Lloh3:
	ldr	x9, [x9, _debug_keyboard@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
Lloh5:
	adrp	x0, _lufa_driver@GOTPAGE
Lloh6:
	ldr	x0, [x0, _lufa_driver@GOTPAGEOFF]
	bl	_host_set_driver
	bl	_keyboard_init
	bl	_LUFA_setup
	bl	_sei
Lloh7:
	adrp	x8, _USB_DeviceState@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DeviceState@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _DEVICE_STATE_Configured@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DEVICE_STATE_Configured@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #1000
	bl	__delay_ms
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_keyboard_task
	bl	_USB_USBTask
	b	LBB0_4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_TX_INIT,4,2                ; @LED_TX_INIT
	.comm	_LED_TX_ON,4,2                  ; @LED_TX_ON
	.comm	_debug_enable,4,2               ; @debug_enable
	.comm	_debug_keyboard,4,2             ; @debug_keyboard
	.comm	_lufa_driver,4,2                ; @lufa_driver
	.comm	_USB_DeviceState,8,3            ; @USB_DeviceState
	.comm	_DEVICE_STATE_Configured,8,3    ; @DEVICE_STATE_Configured
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init: done\n"

.subsections_via_symbols
