	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uinput_request_send
_uinput_request_send:                   ## @uinput_request_send
	.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	%rsi, %r14
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	(%r12), %rax
	movq	_UIST_CREATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	leaq	8(%r14), %rdi
	callq	_init_completion
	movl	12(%r12), %edi
	movq	_EV_UINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	callq	_uinput_dev_event
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIST_CREATED,8,3               ## @UIST_CREATED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EV_UINPUT,4,2                  ## @EV_UINPUT
	.no_dead_strip	_uinput_request_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uinput_request_send
_uinput_request_send:                   ; @uinput_request_send
	.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, x1
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock_interruptible
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _UIST_CREATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UIST_CREATED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x0, x20, #8
	bl	_init_completion
	ldr	w0, [x21, #12]
Lloh3:
	adrp	x8, _EV_UINPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_UINPUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w3, w2, [x20]
	bl	_uinput_dev_event
	mov	w22, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UIST_CREATED,8,3               ; @UIST_CREATED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EV_UINPUT,4,2                  ; @EV_UINPUT
	.no_dead_strip	_uinput_request_send
.subsections_via_symbols
