	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_iop_add                    ## -- Begin function i2o_iop_add
	.p2align	4, 0x90
_i2o_iop_add:                           ## @i2o_iop_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_device_add
	movl	4(%r14), %esi
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_osm_err
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_osm_info
	movl	4(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_osm_info
	movq	%r14, %rdi
	callq	_i2o_iop_activate
	movl	4(%r14), %esi
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_osm_err
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	callq	_osm_debug
	xorl	%eax, %eax
	callq	_i2o_systab_build
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movl	4(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_osm_debug
	movq	%r14, %rdi
	callq	_i2o_iop_online
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	movl	4(%r14), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_osm_debug
	movq	%r14, %rdi
	callq	_i2o_exec_lct_get
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_device_del
LBB0_2:
	movq	%r14, %rdi
	callq	_i2o_iop_reset
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	8(%r14), %rdi
	movq	_i2o_controllers@GOTPCREL(%rip), %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_i2o_driver_notify_controller_add_all
	movl	4(%r14), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_osm_info
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not add controller\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Activating I2O controller...\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: This may take a few minutes if there are many devices\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: could not activate controller\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: building sys table...\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: online controller...\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: getting LCT...\n"

	.comm	_i2o_controllers,4,2            ## @i2o_controllers
L_.str.7:                               ## @.str.7
	.asciz	"%s: Controller added\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_iop_add                    ; -- Begin function i2o_iop_add
	.p2align	2
_i2o_iop_add:                           ; @i2o_iop_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_device_add
	ldr	w1, [x19, #4]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_err
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_info
	ldr	w1, [x19, #4]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_info
	mov	x0, x19
	bl	_i2o_iop_activate
	ldr	w1, [x19, #4]
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_osm_err
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_osm_debug
	bl	_i2o_systab_build
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w1, [x19, #4]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_osm_debug
	mov	x0, x19
	bl	_i2o_iop_online
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_osm_debug
	mov	x0, x19
	bl	_i2o_exec_lct_get
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_device_del
LBB0_8:
	mov	x0, x19
	bl	_i2o_iop_reset
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x0, x19, #8
Lloh14:
	adrp	x1, _i2o_controllers@GOTPAGE
Lloh15:
	ldr	x1, [x1, _i2o_controllers@GOTPAGEOFF]
	bl	_list_add
	mov	x0, x19
	bl	_i2o_driver_notify_controller_add_all
	ldr	w1, [x19, #4]
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_osm_info
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not add controller\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Activating I2O controller...\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: This may take a few minutes if there are many devices\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: could not activate controller\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: building sys table...\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: online controller...\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: getting LCT...\n"

	.comm	_i2o_controllers,4,2            ; @i2o_controllers
l_.str.7:                               ; @.str.7
	.asciz	"%s: Controller added\n"

.subsections_via_symbols
