	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_key                 ## -- Begin function uinput_rep_key
	.p2align	4, 0x90
_uinput_rep_key:                        ## @uinput_rep_key
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uinput_get_rcpt_mask
	movq	_EVDEV_RCPT_HW_KBD@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_7
## %bb.1:
	testq	%r12, %r12
	js	LBB0_6
## %bb.2:
	movq	_keymap@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_nitems
	cmpq	%r12, %rax
	jle	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rdx
	movq	_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.4:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_uinput_write_event
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYN_REPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_uinput_write_event
	testq	%rax, %rax
	jg	LBB0_7
LBB0_6:
	movq	$-1, %rbx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDEV_RCPT_HW_KBD,8,3          ## @EVDEV_RCPT_HW_KBD
	.comm	_keymap,8,3                     ## @keymap
	.comm	_NONE,8,3                       ## @NONE
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_SYN_REPORT,8,3                 ## @SYN_REPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_key                 ; -- Begin function uinput_rep_key
	.p2align	2
_uinput_rep_key:                        ; @uinput_rep_key
	.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, x2
	mov	x21, x1
	mov	x19, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	bl	_uinput_get_rcpt_mask
Lloh0:
	adrp	x8, _EVDEV_RCPT_HW_KBD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVDEV_RCPT_HW_KBD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_7
; %bb.1:
	tbnz	x21, #63, LBB0_6
; %bb.2:
Lloh3:
	adrp	x22, _keymap@GOTPAGE
Lloh4:
	ldr	x22, [x22, _keymap@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_nitems
	cmp	x0, x21
	b.le	LBB0_6
; %bb.3:
	ldr	x8, [x22]
	ldr	x2, [x8, x21, lsl #3]
Lloh5:
	adrp	x8, _NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NONE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_uinput_write_event
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SYN_REPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SYN_REPORT@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_uinput_write_event
	mov	x8, x0
	mov	x0, #0
	cmp	x8, #0
	b.gt	LBB0_8
LBB0_6:
	mov	x0, #-1
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDEV_RCPT_HW_KBD,8,3          ; @EVDEV_RCPT_HW_KBD
	.comm	_keymap,8,3                     ; @keymap
	.comm	_NONE,8,3                       ; @NONE
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_SYN_REPORT,8,3                 ; @SYN_REPORT
.subsections_via_symbols
