	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_add_shared_data
_wacom_add_shared_data:                 ## @wacom_add_shared_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_wacom_udev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_wacom_get_usbdev_data
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	callq	_kref_init
	movq	%r15, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_wacom_udev_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
LBB0_4:
	movq	%rbx, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movq	_wacom_udev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_wacom_udev_list_lock,4,2       ## @wacom_udev_list_lock
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wacom_udev_list,4,2            ## @wacom_udev_list
	.no_dead_strip	_wacom_add_shared_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_add_shared_data
_wacom_add_shared_data:                 ; @wacom_add_shared_data
	.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	x19, x0
Lloh0:
	adrp	x0, _wacom_udev_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _wacom_udev_list_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_wacom_get_usbdev_data
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x0, x0, #16
	bl	_kref_init
	str	x20, [x21, #8]
	add	x0, x21, #4
Lloh5:
	adrp	x1, _wacom_udev_list@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wacom_udev_list@GOTPAGEOFF]
	bl	_list_add_tail
LBB0_3:
	mov	w20, #0
	str	x21, [x19]
LBB0_4:
Lloh7:
	adrp	x0, _wacom_udev_list_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _wacom_udev_list_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	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
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_wacom_udev_list_lock,4,2       ; @wacom_udev_list_lock
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wacom_udev_list,4,2            ; @wacom_udev_list
	.no_dead_strip	_wacom_add_shared_data
.subsections_via_symbols
