	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_debug_code_init
	xorl	%eax, %eax
	callq	_CLK_init
	xorl	%eax, %eax
	callq	_ADC0_init
	xorl	%eax, %eax
	callq	_SR_EXP_Init
	xorl	%eax, %eax
	callq	_matrix_init
	xorl	%eax, %eax
	callq	_USB2422_init
	movq	_DC_MAIN_UDC_START_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	xorl	%eax, %eax
	callq	_udc_start
	movq	_DC_MAIN_UDC_START_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	movq	_DC_MAIN_CDC_INIT_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	xorl	%eax, %eax
	callq	_CDC_init
	movq	_DC_MAIN_CDC_INIT_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_USB2422_Port_Detect_Init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_keyboard_setup
	xorl	%eax, %eax
	callq	_keyboard_init
	movq	_arm_atsam_driver@GOTPCREL(%rip), %rdi
	callq	_host_set_driver
	movq	_ADC_5V@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adc_get
	movq	_v_5v_avg@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_debug_code_disable
	movq	_g_usb_state@GOTPCREL(%rip), %r14
	movq	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPCREL(%rip), %rbx
	movq	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_keyboard_task
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_main_subtasks
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r15), %rax
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_suspend_wakeup_condition
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_udc_remotewakeup
	movl	$50, %edi
	callq	_wait_ms
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_LED_ENA,4,2                ## @DBG_LED_ENA
	.comm	_DBG_1_ENA,4,2                  ## @DBG_1_ENA
	.comm	_DBG_1_OFF,4,2                  ## @DBG_1_OFF
	.comm	_DBG_2_ENA,4,2                  ## @DBG_2_ENA
	.comm	_DBG_2_OFF,4,2                  ## @DBG_2_OFF
	.comm	_DBG_3_ENA,4,2                  ## @DBG_3_ENA
	.comm	_DBG_3_OFF,4,2                  ## @DBG_3_OFF
	.comm	_DC_MAIN_UDC_START_BEGIN,4,2    ## @DC_MAIN_UDC_START_BEGIN
	.comm	_DC_MAIN_UDC_START_COMPLETE,4,2 ## @DC_MAIN_UDC_START_COMPLETE
	.comm	_DC_MAIN_CDC_INIT_BEGIN,4,2     ## @DC_MAIN_CDC_INIT_BEGIN
	.comm	_DC_MAIN_CDC_INIT_COMPLETE,4,2  ## @DC_MAIN_CDC_INIT_COMPLETE
	.comm	_DBG_LED_OFF,4,2                ## @DBG_LED_OFF
	.comm	_arm_atsam_driver,4,2           ## @arm_atsam_driver
	.comm	_ADC_5V,4,2                     ## @ADC_5V
	.comm	_v_5v_avg,4,2                   ## @v_5v_avg
	.comm	_g_usb_state,8,3                ## @g_usb_state
	.comm	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val,8,3 ## @USB_FSMSTATUS_FSMSTATE_SUSPEND_Val
	.comm	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val,8,3 ## @USB_FSMSTATUS_FSMSTATE_SLEEP_Val
	.comm	_ISSI3733_DRIVER_COUNT,8,3      ## @ISSI3733_DRIVER_COUNT
.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	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
	bl	_debug_code_init
	bl	_CLK_init
	bl	_ADC0_init
	bl	_SR_EXP_Init
	bl	_matrix_init
	bl	_USB2422_init
Lloh0:
	adrp	x8, _DC_MAIN_UDC_START_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_MAIN_UDC_START_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DBGC
	bl	_udc_start
Lloh3:
	adrp	x8, _DC_MAIN_UDC_START_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_MAIN_UDC_START_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DBGC
Lloh6:
	adrp	x8, _DC_MAIN_CDC_INIT_BEGIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_MAIN_CDC_INIT_BEGIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_DBGC
	bl	_CDC_init
Lloh9:
	adrp	x8, _DC_MAIN_CDC_INIT_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_MAIN_CDC_INIT_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_DBGC
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_USB2422_Port_Detect_Init
	cbz	x0, LBB0_1
; %bb.2:
	bl	_keyboard_setup
	bl	_keyboard_init
Lloh12:
	adrp	x0, _arm_atsam_driver@GOTPAGE
Lloh13:
	ldr	x0, [x0, _arm_atsam_driver@GOTPAGEOFF]
	bl	_host_set_driver
Lloh14:
	adrp	x8, _ADC_5V@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADC_5V@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_adc_get
Lloh17:
	adrp	x8, _v_5v_avg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _v_5v_avg@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	bl	_debug_code_disable
Lloh20:
	adrp	x19, _g_usb_state@GOTPAGE
Lloh21:
	ldr	x19, [x19, _g_usb_state@GOTPAGEOFF]
Lloh22:
	adrp	x20, _USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPAGE
Lloh23:
	ldr	x20, [x20, _USB_FSMSTATUS_FSMSTATE_SUSPEND_Val@GOTPAGEOFF]
Lloh24:
	adrp	x21, _USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPAGE
Lloh25:
	ldr	x21, [x21, _USB_FSMSTATUS_FSMSTATE_SLEEP_Val@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_keyboard_task
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_main_subtasks
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_suspend_wakeup_condition
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_udc_remotewakeup
	mov	w0, #50
	bl	_wait_ms
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_LED_ENA,4,2                ; @DBG_LED_ENA
	.comm	_DBG_1_ENA,4,2                  ; @DBG_1_ENA
	.comm	_DBG_1_OFF,4,2                  ; @DBG_1_OFF
	.comm	_DBG_2_ENA,4,2                  ; @DBG_2_ENA
	.comm	_DBG_2_OFF,4,2                  ; @DBG_2_OFF
	.comm	_DBG_3_ENA,4,2                  ; @DBG_3_ENA
	.comm	_DBG_3_OFF,4,2                  ; @DBG_3_OFF
	.comm	_DC_MAIN_UDC_START_BEGIN,4,2    ; @DC_MAIN_UDC_START_BEGIN
	.comm	_DC_MAIN_UDC_START_COMPLETE,4,2 ; @DC_MAIN_UDC_START_COMPLETE
	.comm	_DC_MAIN_CDC_INIT_BEGIN,4,2     ; @DC_MAIN_CDC_INIT_BEGIN
	.comm	_DC_MAIN_CDC_INIT_COMPLETE,4,2  ; @DC_MAIN_CDC_INIT_COMPLETE
	.comm	_DBG_LED_OFF,4,2                ; @DBG_LED_OFF
	.comm	_arm_atsam_driver,4,2           ; @arm_atsam_driver
	.comm	_ADC_5V,4,2                     ; @ADC_5V
	.comm	_v_5v_avg,4,2                   ; @v_5v_avg
	.comm	_g_usb_state,8,3                ; @g_usb_state
	.comm	_USB_FSMSTATUS_FSMSTATE_SUSPEND_Val,8,3 ; @USB_FSMSTATUS_FSMSTATE_SUSPEND_Val
	.comm	_USB_FSMSTATUS_FSMSTATE_SLEEP_Val,8,3 ; @USB_FSMSTATUS_FSMSTATE_SLEEP_Val
	.comm	_ISSI3733_DRIVER_COUNT,8,3      ; @ISSI3733_DRIVER_COUNT
.subsections_via_symbols
