	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_iop_activate
_i2o_iop_activate:                      ## @i2o_iop_activate
	.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	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_i2o_status_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_osm_info
	movq	%rbx, %rdi
	callq	_i2o_iop_reset
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:
	movq	(%r14), %rax
	movq	_I2OVER15@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_osm_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_6:
	movl	8(%r14), %r15d
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	jb	LBB0_10
## %bb.7:
	cmpl	$132, %r15d
	je	LBB0_10
## %bb.8:
	cmpl	$131, %r15d
	jne	LBB0_12
## %bb.9:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_osm_err
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_10:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_osm_debug
	movq	%rbx, %rdi
	callq	_i2o_iop_reset
	testl	%eax, %eax
	jne	LBB0_5
## %bb.11:
	movl	8(%r14), %r15d
LBB0_12:
	movq	%rbx, %rdi
	callq	_i2o_iop_init_outbound_queue
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ADAPTER_STATE_RESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_i2o_iop_clear
LBB0_15:
	movq	%rbx, %rdi
	callq	_i2o_status_get
	cmpl	$130, 8(%r14)
	jne	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2o_hrt_get                    ## TAILCALL
LBB0_16:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_osm_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Unable to obtain status, attempting a reset.\n"

	.comm	_I2OVER15,8,3                   ## @I2OVER15
L_.str.1:                               ## @.str.1
	.asciz	"%s: Not running version 1.5 of the I2O Specification.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"%s: hardware fault\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.3:                               ## @.str.3
	.asciz	"%s: already running, trying to reset...\n"

	.comm	_ADAPTER_STATE_RESET,4,2        ## @ADAPTER_STATE_RESET
L_.str.4:                               ## @.str.4
	.asciz	"%s: failed to bring IOP into HOLD state\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i2o_iop_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_iop_activate
_i2o_iop_activate:                      ; @i2o_iop_activate
	.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, x0
	ldr	x20, [x0, #8]
	bl	_i2o_status_get
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_info
	mov	x0, x19
	bl	_i2o_iop_reset
	cbnz	w0, LBB0_12
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _I2OVER15@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2OVER15@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.3:
	ldr	w1, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	ldr	w21, [x20, #8]
	sub	w8, w21, #128
	cmp	w8, #3
	b.lo	LBB0_9
; %bb.6:
	cmp	w21, #132
	b.eq	LBB0_9
; %bb.7:
	cmp	w21, #131
	b.ne	LBB0_11
; %bb.8:
	ldr	w1, [x19]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_err
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	ldr	w1, [x19]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_osm_debug
	mov	x0, x19
	bl	_i2o_iop_reset
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	w21, [x20, #8]
LBB0_11:
	mov	x0, x19
	bl	_i2o_iop_init_outbound_queue
	cbz	w0, LBB0_13
LBB0_12:
	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
LBB0_13:
Lloh15:
	adrp	x8, _ADAPTER_STATE_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADAPTER_STATE_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_i2o_iop_clear
LBB0_15:
	mov	x0, x19
	bl	_i2o_status_get
	ldr	w8, [x20, #8]
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	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
	b	_i2o_hrt_get
LBB0_17:
	ldr	w1, [x19]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_osm_err
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Unable to obtain status, attempting a reset.\n"

	.comm	_I2OVER15,8,3                   ; @I2OVER15
l_.str.1:                               ; @.str.1
	.asciz	"%s: Not running version 1.5 of the I2O Specification.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"%s: hardware fault\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.3:                               ; @.str.3
	.asciz	"%s: already running, trying to reset...\n"

	.comm	_ADAPTER_STATE_RESET,4,2        ; @ADAPTER_STATE_RESET
l_.str.4:                               ; @.str.4
	.asciz	"%s: failed to bring IOP into HOLD state\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i2o_iop_activate
.subsections_via_symbols
