	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_user_add                 ## -- Begin function ipath_user_add
	.p2align	4, 0x90
_ipath_user_add:                        ## @ipath_user_add
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_user_count@GOTPCREL(%rip), %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	_user_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	_ipath_file_ops@GOTPCREL(%rip), %rdx
	movq	_wildcard_cdev@GOTPCREL(%rip), %rcx
	movq	_wildcard_dev@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	callq	_init_cdev
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_user_setup@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_set
LBB0_6:
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdx
	leaq	-34(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_snprintf
	movl	(%r14), %edi
	incl	%edi
	leaq	8(%r14), %rcx
	leaq	4(%r14), %r8
	movq	_ipath_file_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_init_cdev
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movl	(%r14), %edx
	incl	%edx
	leaq	L_.str.4(%rip), %rsi
	leaq	-34(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	xorl	%eax, %eax
	callq	_user_cleanup
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_user_count,4,2                 ## @user_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set up user support: error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ipath"

	.comm	_ipath_file_ops,4,2             ## @ipath_file_ops
	.comm	_wildcard_cdev,4,2              ## @wildcard_cdev
	.comm	_wildcard_dev,4,2               ## @wildcard_dev
L_.str.2:                               ## @.str.2
	.asciz	"Could not create wildcard minor: error %d\n"

	.comm	_user_setup,4,2                 ## @user_setup
L_.str.3:                               ## @.str.3
	.asciz	"ipath%d"

L_.str.4:                               ## @.str.4
	.asciz	"Could not create user minor %d, %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_user_add                 ; -- Begin function ipath_user_add
	.p2align	2
_ipath_user_add:                        ; @ipath_user_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, _user_count@GOTPAGE
Lloh4:
	ldr	x0, [x0, _user_count@GOTPAGEOFF]
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	bl	_user_init
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh7:
	adrp	x2, _ipath_file_ops@GOTPAGE
Lloh8:
	ldr	x2, [x2, _ipath_file_ops@GOTPAGEOFF]
Lloh9:
	adrp	x3, _wildcard_cdev@GOTPAGE
Lloh10:
	ldr	x3, [x3, _wildcard_cdev@GOTPAGEOFF]
Lloh11:
	adrp	x4, _wildcard_dev@GOTPAGE
Lloh12:
	ldr	x4, [x4, _wildcard_dev@GOTPAGEOFF]
	mov	w0, #0
	bl	_init_cdev
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh13:
	adrp	x0, _user_setup@GOTPAGE
Lloh14:
	ldr	x0, [x0, _user_setup@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_set
LBB0_4:
	mov	x20, x19
	ldr	w3, [x20], #8
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x21, sp, #14
	add	x0, sp, #14
	mov	w1, #10
	bl	_snprintf
	mov	x4, x19
	ldr	w8, [x4], #4
	add	w0, w8, #1
Lloh17:
	adrp	x2, _ipath_file_ops@GOTPAGE
Lloh18:
	ldr	x2, [x2, _ipath_file_ops@GOTPAGEOFF]
	add	x1, sp, #14
	mov	x3, x20
	bl	_init_cdev
	mov	x20, x0
	tbz	w0, #31, LBB0_9
; %bb.5:
	ldr	w8, [x19]
	add	w2, w8, #1
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x20, x0
	neg	w2, w0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_ipath_dev_err
	b	LBB0_9
LBB0_8:
	mov	x20, x0
	neg	w2, w0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
	bl	_user_cleanup
LBB0_9:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_user_count,4,2                 ; @user_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set up user support: error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ipath"

	.comm	_ipath_file_ops,4,2             ; @ipath_file_ops
	.comm	_wildcard_cdev,4,2              ; @wildcard_cdev
	.comm	_wildcard_dev,4,2               ; @wildcard_dev
l_.str.2:                               ; @.str.2
	.asciz	"Could not create wildcard minor: error %d\n"

	.comm	_user_setup,4,2                 ; @user_setup
l_.str.3:                               ; @.str.3
	.asciz	"ipath%d"

l_.str.4:                               ; @.str.4
	.asciz	"Could not create user minor %d, %s\n"

.subsections_via_symbols
