	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cougar_bind_shared_data
_cougar_bind_shared_data:               ## @cougar_bind_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, %r14
	movq	%rdi, %r15
	movq	_cougar_udev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_cougar_get_shared_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
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_kref_init
	movq	%r15, 8(%rbx)
	movq	_cougar_udev_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
LBB0_4:
	movq	%rbx, (%r14)
	movq	_cougar_remove_shared_data@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	%eax, %ebx
	movq	_cougar_udev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_cougar_remove_shared_data
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	_cougar_udev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cougar_udev_list_lock,4,2      ## @cougar_udev_list_lock
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cougar_udev_list,4,2           ## @cougar_udev_list
	.no_dead_strip	_cougar_bind_shared_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cougar_bind_shared_data
_cougar_bind_shared_data:               ; @cougar_bind_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _cougar_udev_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cougar_udev_list_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_cougar_get_shared_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]
Lloh5:
	adrp	x1, _cougar_udev_list@GOTPAGE
Lloh6:
	ldr	x1, [x1, _cougar_udev_list@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add_tail
LBB0_3:
	str	x21, [x19]
Lloh7:
	adrp	x1, _cougar_remove_shared_data@GOTPAGE
Lloh8:
	ldr	x1, [x1, _cougar_remove_shared_data@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_devm_add_action
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x0, _cougar_udev_list_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _cougar_udev_list_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_cougar_remove_shared_data
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
Lloh14:
	adrp	x0, _cougar_udev_list_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _cougar_udev_list_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_cougar_udev_list_lock,4,2      ; @cougar_udev_list_lock
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cougar_udev_list,4,2           ; @cougar_udev_list
	.no_dead_strip	_cougar_bind_shared_data
.subsections_via_symbols
