	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_proc_device_add
_i2o_proc_device_add:                   ## @i2o_proc_device_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-42(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	8(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	callq	_osm_debug
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_proc_mkdir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, (%rax)
	movq	_generic_dev_entries@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_i2o_proc_create_entries
	movl	4(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_rbs_dev_entries@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_i2o_proc_create_entries
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
	callq	_osm_warn
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%03x"

L_.str.1:                               ## @.str.1
	.asciz	"adding device /proc/i2o/%s/%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not allocate procdir!\n"

	.comm	_generic_dev_entries,8,3        ## @generic_dev_entries
	.comm	_rbs_dev_entries,8,3            ## @rbs_dev_entries
	.no_dead_strip	_i2o_proc_device_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_proc_device_add
_i2o_proc_device_add:                   ; @i2o_proc_device_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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w2, [x1]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #14
	bl	_sprintf
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #14
	bl	_osm_debug
	add	x0, sp, #14
	mov	x1, x20
	bl	_proc_mkdir
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0]
Lloh7:
	adrp	x8, _generic_dev_entries@GOTPAGE
Lloh8:
	ldr	x8, [x8, _generic_dev_entries@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x2, x19
	bl	_i2o_proc_create_entries
	ldr	w8, [x19, #4]
	and	w8, w8, #0xfffffffe
Lloh10:
	adrp	x9, _rbs_dev_entries@GOTPAGE
Lloh11:
	ldr	x9, [x9, _rbs_dev_entries@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x9]
	cmp	w8, #128
	ccmp	x1, #0, #4, eq
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x2, x19
	bl	_i2o_proc_create_entries
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_warn
LBB0_4:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%03x"

l_.str.1:                               ; @.str.1
	.asciz	"adding device /proc/i2o/%s/%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not allocate procdir!\n"

	.comm	_generic_dev_entries,8,3        ; @generic_dev_entries
	.comm	_rbs_dev_entries,8,3            ; @rbs_dev_entries
	.no_dead_strip	_i2o_proc_device_add
.subsections_via_symbols
