	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_initialise                 ## -- Begin function hid_initialise
	.p2align	4, 0x90
_hid_initialise:                        ## @hid_initialise
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_get_hid_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rdi
	callq	_MAGIC_MOUSE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	leaq	_hid_initialise.rep(%rip), %rsi
	movl	$3, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write                          ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @hid_initialise.rep
_hid_initialise.rep:
	.long	83                              ## 0x53
	.long	215                             ## 0xd7
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_initialise                 ; -- Begin function hid_initialise
	.p2align	2
_hid_initialise:                        ; @hid_initialise
	.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
	mov	x19, x0
	add	x0, x0, #16
	bl	_get_hid_device
	cbz	x0, LBB0_4
; %bb.1:
	bl	_MAGIC_MOUSE
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, _hid_initialise.rep@PAGE
Lloh1:
	add	x1, x1, _hid_initialise.rep@PAGEOFF
	mov	w2, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @hid_initialise.rep
_hid_initialise.rep:
	.long	83                              ; 0x53
	.long	215                             ; 0xd7
	.long	1                               ; 0x1

.subsections_via_symbols
