	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udev_handle_keyboard
_udev_handle_keyboard:                  ## @udev_handle_keyboard
	.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
	cmpl	$128, (%rsi)
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movl	8(%rsi), %edi
	callq	_input_unify_ev_key_code
	movl	%eax, %r14d
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_video_driver_has_focus
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_udev_key_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_BIT_SET
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_udev_key_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_BIT_CLEAR
LBB0_5:
	movl	4(%rbx), %ebx
	movl	%r14d, %edi
	callq	_input_keymaps_translate_keysym_to_rk
	movq	_RETRO_DEVICE_KEYBOARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_keyboard_event           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_udev_key_state,4,2             ## @udev_key_state
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ## @RETRO_DEVICE_KEYBOARD
	.no_dead_strip	_udev_handle_keyboard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udev_handle_keyboard
_udev_handle_keyboard:                  ; @udev_handle_keyboard
	.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
	ldr	w8, [x1]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w0, [x1, #8]
	bl	_input_unify_ev_key_code
	mov	x20, x0
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.2:
	bl	_video_driver_has_focus
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _udev_key_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _udev_key_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_BIT_SET
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _udev_key_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _udev_key_state@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_BIT_CLEAR
LBB0_6:
	ldr	w19, [x19, #4]
	mov	x0, x20
	bl	_input_keymaps_translate_keysym_to_rk
	mov	x1, x0
Lloh6:
	adrp	x8, _RETRO_DEVICE_KEYBOARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RETRO_DEVICE_KEYBOARD@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_keyboard_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_udev_key_state,4,2             ; @udev_key_state
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ; @RETRO_DEVICE_KEYBOARD
	.no_dead_strip	_udev_handle_keyboard
.subsections_via_symbols
