	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_user_add
_qib_user_add:                          ## @qib_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_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	_qib_file_ops@GOTPCREL(%rip), %rdx
	movq	_wildcard_cdev@GOTPCREL(%rip), %rcx
	movq	_wildcard_device@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	callq	_qib_cdev_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:
	movl	(%r14), %ecx
	leaq	L_.str.1(%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	_qib_file_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_qib_cdev_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qib_user_remove
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_user_count,4,2                 ## @user_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipath"

	.comm	_qib_file_ops,4,2               ## @qib_file_ops
	.comm	_wildcard_cdev,4,2              ## @wildcard_cdev
	.comm	_wildcard_device,4,2            ## @wildcard_device
L_.str.1:                               ## @.str.1
	.asciz	"ipath%d"

	.no_dead_strip	_qib_user_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_user_add
_qib_user_add:                          ; @qib_user_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x2, _qib_file_ops@GOTPAGE
Lloh8:
	ldr	x2, [x2, _qib_file_ops@GOTPAGEOFF]
Lloh9:
	adrp	x3, _wildcard_cdev@GOTPAGE
Lloh10:
	ldr	x3, [x3, _wildcard_cdev@GOTPAGEOFF]
Lloh11:
	adrp	x4, _wildcard_device@GOTPAGE
Lloh12:
	ldr	x4, [x4, _wildcard_device@GOTPAGEOFF]
	mov	w0, #0
	bl	_qib_cdev_init
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_2:
	mov	x20, x19
	ldr	w3, [x20], #8
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #14
	mov	w1, #10
	bl	_snprintf
	mov	x4, x19
	ldr	w8, [x4], #4
	add	w0, w8, #1
Lloh15:
	adrp	x2, _qib_file_ops@GOTPAGE
Lloh16:
	ldr	x2, [x2, _qib_file_ops@GOTPAGEOFF]
	add	x1, sp, #14
	mov	x3, x20
	bl	_qib_cdev_init
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_qib_user_remove
LBB0_4:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	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	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_user_count,4,2                 ; @user_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipath"

	.comm	_qib_file_ops,4,2               ; @qib_file_ops
	.comm	_wildcard_cdev,4,2              ; @wildcard_cdev
	.comm	_wildcard_device,4,2            ; @wildcard_device
l_.str.1:                               ; @.str.1
	.asciz	"ipath%d"

	.no_dead_strip	_qib_user_add
.subsections_via_symbols
