	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_scsi_probe
_i2o_scsi_probe:                        ## @i2o_scsi_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_i2o_device
	movq	%rax, %r15
	movq	16(%rax), %r12
	movl	$-1, -48(%rbp)
	movl	$-1, -44(%rbp)
	movq	%r12, %rdi
	callq	_i2o_scsi_get_host
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_4
LBB0_2:
	movslq	4(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_osm_warn
	jmp	LBB0_7
LBB0_4:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.5:
	movq	(%r14), %r13
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$4, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	movl	$8, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	je	LBB0_11
LBB0_7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_i2o_iop_find_device
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	(%r14), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	js	LBB0_2
## %bb.13:
	movq	8(%r14), %rcx
	leaq	1(%rsi), %r8
	movl	%r8d, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_16
## %bb.14:
	movl	$-1, %r12d
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_15:
	movslq	4(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_16:
	andl	$-4, %r8d
	movl	$-1, %r12d
	xorl	%esi, %esi
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rcx,%rsi,8)
	cmovel	%esi, %r12d
	cmpq	%rax, 8(%rcx,%rsi,8)
	leal	1(%rsi), %ebx
	cmovnel	%r12d, %ebx
	leal	2(%rsi), %edi
	cmpq	%rax, 16(%rcx,%rsi,8)
	cmovnel	%ebx, %edi
	leal	3(%rsi), %r12d
	cmpq	%rax, 24(%rcx,%rsi,8)
	cmovnel	%edi, %r12d
	addq	$4, %rsi
	cmpq	%r8, %rsi
	jne	LBB0_17
LBB0_18:
	testq	%rdx, %rdx
	je	LBB0_20
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rcx,%rsi,8)
	cmovel	%esi, %r12d
	incq	%rsi
	decq	%rdx
	jne	LBB0_19
LBB0_20:
	cmpl	$-1, %r12d
	je	LBB0_2
## %bb.21:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	cmpq	8(%r13), %rax
	jge	LBB0_25
## %bb.22:
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	cmpq	16(%r13), %rax
	jge	LBB0_26
## %bb.23:
	movq	(%r14), %r14
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	___scsi_add_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movslq	4(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_osm_warn
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_25:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movq	8(%r13), %rdx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_27
LBB0_26:
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movq	16(%r13), %rdx
	leaq	L_.str.3(%rip), %rdi
LBB0_27:
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_osm_warn
	jmp	LBB0_7
LBB0_28:
	movq	%r15, %rdi
	addq	$12, %rdi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rsi
	callq	_sysfs_create_link
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_scsi_remove_device
	jmp	LBB0_10
LBB0_30:
	movl	4(%r15), %r14d
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	leaq	L_.str.6(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_osm_info
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not find parent of device %03x\n"

L_.str.1:                               ## @.str.1
	.asciz	"can not find channel of device %03x\n"

L_.str.2:                               ## @.str.2
	.asciz	"SCSI device id (%d) >= max_id of I2O host (%d)"

L_.str.3:                               ## @.str.3
	.asciz	"SCSI device lun (%lu) >= max_lun of I2O host (%d)"

L_.str.4:                               ## @.str.4
	.asciz	"can not add SCSI device %03x\n"

L_.str.5:                               ## @.str.5
	.asciz	"scsi"

L_.str.6:                               ## @.str.6
	.asciz	"device added (TID: %03x) channel: %d, id: %d, lun: %ld\n"

	.no_dead_strip	_i2o_scsi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_scsi_probe
_i2o_scsi_probe:                        ; @i2o_scsi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_to_i2o_device
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	w8, #-1
	stp	w8, w8, [sp, #8]
	mov	x0, x21
	bl	_i2o_scsi_get_host
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_3
LBB0_2:
	ldrsw	x1, [x19, #4]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_warn
	b	LBB0_6
LBB0_3:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	mov	x20, x0
	ldr	x22, [x0]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	mov	w4, #4
	bl	_i2o_parm_field_get
	cbnz	w0, LBB0_6
; %bb.5:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	mov	w4, #8
	bl	_i2o_parm_field_get
	cbz	w0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_i2o_iop_find_device
	cbz	x0, LBB0_17
; %bb.9:
	ldr	x8, [x20]
	ldr	w10, [x8]
	tbnz	w10, #31, LBB0_2
; %bb.10:
	mov	x8, #0
	ldr	x9, [x20, #8]
	add	x10, x10, #1
	mov	w21, #-1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	cmp	x11, x0
	csel	w21, w8, w21, eq
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_11
; %bb.12:
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.13:
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.ge	LBB0_18
; %bb.14:
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	ldr	x8, [x22, #16]
	cmp	x0, x8
	b.ge	LBB0_19
; %bb.15:
	ldr	x20, [x20]
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x4, x19
	bl	___scsi_add_device
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.16:
	ldrsw	x1, [x19, #4]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_osm_warn
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_17:
	ldrsw	x1, [x19, #4]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_warn
	b	LBB0_6
LBB0_18:
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	x8, [x22, #8]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_warn
	b	LBB0_6
LBB0_19:
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	ldr	x8, [x22, #16]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_osm_warn
	b	LBB0_6
LBB0_20:
	add	x0, x19, #12
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_sysfs_create_link
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
	mov	x0, x22
	bl	_scsi_remove_device
	b	LBB0_7
LBB0_22:
	ldr	w19, [x19, #4]
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	mov	x4, x0
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_osm_info
	mov	w20, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not find parent of device %03x\n"

l_.str.1:                               ; @.str.1
	.asciz	"can not find channel of device %03x\n"

l_.str.2:                               ; @.str.2
	.asciz	"SCSI device id (%d) >= max_id of I2O host (%d)"

l_.str.3:                               ; @.str.3
	.asciz	"SCSI device lun (%lu) >= max_lun of I2O host (%d)"

l_.str.4:                               ; @.str.4
	.asciz	"can not add SCSI device %03x\n"

l_.str.5:                               ; @.str.5
	.asciz	"scsi"

l_.str.6:                               ; @.str.6
	.asciz	"device added (TID: %03x) channel: %d, id: %d, lun: %ld\n"

	.no_dead_strip	_i2o_scsi_probe
.subsections_via_symbols
