	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_allocate_device            ## -- Begin function hid_allocate_device
	.p2align	4, 0x90
_hid_allocate_device:                   ## @hid_allocate_device
	.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
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	24(%rax), %r14
	movq	%r14, %rdi
	callq	_device_initialize
	movq	_hid_device_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_hid_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%r14, %rdi
	callq	_device_enable_async_suspend
	movq	%rbx, %rdi
	callq	_hid_close_report
	leaq	16(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_sema_init
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	negl	%r14d
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_hid_device_release,4,2         ## @hid_device_release
	.comm	_hid_bus_type,4,2               ## @hid_bus_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_allocate_device            ; -- Begin function hid_allocate_device
	.p2align	2
_hid_allocate_device:                   ; @hid_allocate_device
	.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
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_device_initialize
Lloh6:
	adrp	x8, _hid_device_release@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hid_device_release@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh9:
	adrp	x8, _hid_bus_type@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hid_bus_type@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x20
	bl	_device_enable_async_suspend
	mov	x0, x19
	bl	_hid_close_report
	add	x0, x19, #16
	bl	_init_waitqueue_head
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
	bl	_spin_lock_init
	add	x0, x19, #4
	mov	w1, #1
	bl	_sema_init
	mov	x0, x19
	bl	_mutex_init
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	neg	w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_hid_device_release,4,2         ; @hid_device_release
	.comm	_hid_bus_type,4,2               ; @hid_bus_type
.subsections_via_symbols
