	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function response
_response:                              ## @response
	.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
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_cli
	movq	_NEXT_KBD_READ@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.1:
	movl	$-49999, %eax                   ## imm = 0xFFFF3CB1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	## InlineAsm Start
	## InlineAsm End
	movl	$1, %edi
	callq	__delay_us
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_6:
	movq	_NEXT_KBD_TIMING@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	__delay_us
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	callq	__delay_us
	incl	%ebx
	cmpl	$22, %ebx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	btsl	%ebx, %r12d
	jmp	LBB0_9
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_reset
LBB0_10:
	xorl	%eax, %eax
	callq	_sei
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEXT_KBD_READ,8,3              ## @NEXT_KBD_READ
	.comm	_NEXT_KBD_TIMING,4,2            ## @NEXT_KBD_TIMING
	.no_dead_strip	_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function response
_response:                              ; @response
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_cli
Lloh0:
	adrp	x20, _NEXT_KBD_READ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NEXT_KBD_READ@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w8, #-49999
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x8
	; InlineAsm Start
	; InlineAsm End
	mov	w0, #1
	bl	__delay_us
	ldr	x9, [x20]
	add	w8, w19, #1
	cmp	x9, #0
	ccmp	w19, #0, #4, ne
	b.ne	LBB0_2
; %bb.3:
	cbz	w19, LBB0_6
LBB0_4:
Lloh2:
	adrp	x21, _NEXT_KBD_TIMING@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NEXT_KBD_TIMING@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	__delay_us
	mov	w19, #0
	mov	w22, #0
	mov	w23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	w9, w23, w22
	orr	w9, w19, w9
	cmp	x8, #0
	csel	w19, w19, w9, eq
	ldr	w0, [x21]
	bl	__delay_us
	add	w22, w22, #1
	cmp	w22, #22
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	bl	_reset
LBB0_7:
	bl	_sei
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NEXT_KBD_READ,8,3              ; @NEXT_KBD_READ
	.comm	_NEXT_KBD_TIMING,4,2            ; @NEXT_KBD_TIMING
	.no_dead_strip	_response
.subsections_via_symbols
