	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_block_probe
_i2o_block_probe:                       ## @i2o_block_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_i2o_device
	movq	%rax, %r12
	movq	16(%rax), %r15
	cmpq	$0, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	_I2O_MAX_SECTORS@GOTPCREL(%rip), %rax
	cmpl	$4095, (%r12)                   ## imm = 0xFFF
	je	LBB0_5
LBB0_4:
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_osm_debug
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_1:
	movq	_I2O_MAX_SECTORS_LIMITED@GOTPCREL(%rip), %rax
	cmpl	$4095, (%r12)                   ## imm = 0xFFF
	jne	LBB0_4
LBB0_5:
	movzwl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_i2o_device_claim
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_osm_warn
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_7:
	xorl	%eax, %eax
	callq	_i2o_block_device_alloc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_osm_err
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_i2o_device_claim_release
	jmp	LBB0_20
LBB0_9:
	movq	%r12, 16(%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	8(%r13), %rbx
	movl	_i2o_block_probe.unit(%rip), %eax
	movl	%eax, %ecx
	shll	$4, %ecx
	movl	%ecx, (%rbx)
	movl	4(%rbx), %edi
	addb	$97, %al
	movsbl	%al, %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_sprintf
	movq	%r12, %rax
	addq	$8, %rax
	movq	%rax, 16(%rbx)
	movq	%r13, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r13)
	movzwl	%r14w, %esi
	movq	%r13, %rdi
	callq	_blk_queue_max_hw_sectors
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_i2o_sg_tablesize
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_blk_queue_max_segments
	movl	8(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_osm_debug
	movl	4(%r13), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_osm_debug
	movl	(%r13), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_osm_debug
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	$4, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$4, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_osm_warn
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_11:
	movl	-44(%rbp), %edi
	callq	_le32_to_cpu
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_blk_queue_logical_block_size
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	movl	$8, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	movl	$8, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	4(%r15), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_osm_warn
	jmp	LBB0_17
LBB0_15:
	movl	-48(%rbp), %edi
	callq	_le64_to_cpu
	movq	_KERNEL_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_set_capacity
LBB0_17:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$2, %r8d
	callq	_i2o_parm_field_get
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	-52(%rbp), %eax
	movl	%eax, (%r14)
LBB0_19:
	movq	_i2o_block_driver@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$-1, %ecx
	callq	_i2o_event_register
	movq	%r15, %rdi
	callq	_add_disk
	incl	_i2o_block_probe.unit(%rip)
	movl	4(%r12), %esi
	movq	8(%r14), %rax
	movl	4(%rax), %edx
	leaq	L_.str.9(%rip), %rdi
	callq	_osm_info
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_i2o_block_probe.unit,4,2 ## @i2o_block_probe.unit
	.comm	_I2O_MAX_SECTORS_LIMITED,2,1    ## @I2O_MAX_SECTORS_LIMITED
	.comm	_I2O_MAX_SECTORS,2,1            ## @I2O_MAX_SECTORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping used device %03x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Unable to claim device. Installation aborted\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"could not alloc a new I2O block device"

L_.str.3:                               ## @.str.3
	.asciz	"i2o/hd%c"

L_.str.4:                               ## @.str.4
	.asciz	"max sectors = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"phys segments = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"max hw segments = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"unable to get blocksize of %s\n"

	.comm	_KERNEL_SECTOR_SHIFT,4,2        ## @KERNEL_SECTOR_SHIFT
L_.str.8:                               ## @.str.8
	.asciz	"could not get size of %s\n"

	.comm	_i2o_block_driver,4,2           ## @i2o_block_driver
L_.str.9:                               ## @.str.9
	.asciz	"device added (TID: %03x): %s\n"

	.no_dead_strip	_i2o_block_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_block_probe
_i2o_block_probe:                       ; @i2o_block_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_to_i2o_device
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _I2O_MAX_SECTORS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2O_MAX_SECTORS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _I2O_MAX_SECTORS_LIMITED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _I2O_MAX_SECTORS_LIMITED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w9, [x0]
	cmp	w9, #4095
	b.ne	LBB0_3
; %bb.1:
	ldrh	w25, [x8]
	mov	x0, x19
	bl	_i2o_device_claim
	cbz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_warn
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_debug
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	_i2o_block_device_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_err
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_i2o_device_claim_release
	mov	x0, x20
	b	LBB0_5
LBB0_8:
	str	x19, [x20, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	x21, [x20, #8]
	adrp	x24, _i2o_block_probe.unit@PAGE
	ldr	w8, [x24, _i2o_block_probe.unit@PAGEOFF]
	lsl	w9, w8, #4
	str	w9, [x21]
	ldr	w0, [x21, #4]
	add	w8, w8, #97
	sxtb	w2, w8
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	add	x8, x19, #8
	str	x8, [x21, #16]
	ldr	x22, [x21, #8]
	str	x20, [x22, #16]
	and	w1, w25, #0xffff
	mov	x0, x22
	bl	_blk_queue_max_hw_sectors
	mov	x0, x23
	mov	w1, #4
	bl	_i2o_sg_tablesize
	mov	x1, x0
	mov	x0, x22
	bl	_blk_queue_max_segments
	ldr	w1, [x22, #8]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_osm_debug
	ldr	w1, [x22, #4]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_osm_debug
	ldr	w1, [x22]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_osm_debug
	add	x3, sp, #24
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	mov	w4, #4
	bl	_i2o_parm_field_get
	cbz	w0, LBB0_11
; %bb.9:
	add	x3, sp, #24
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	mov	w4, #4
	bl	_i2o_parm_field_get
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_osm_warn
	b	LBB0_12
LBB0_11:
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_blk_queue_logical_block_size
LBB0_12:
	add	x3, sp, #28
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	mov	w4, #8
	bl	_i2o_parm_field_get
	cbz	w0, LBB0_15
; %bb.13:
	add	x3, sp, #28
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	mov	w4, #8
	bl	_i2o_parm_field_get
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_osm_warn
	b	LBB0_16
LBB0_15:
	ldr	w0, [sp, #28]
	bl	_le64_to_cpu
Lloh26:
	adrp	x8, _KERNEL_SECTOR_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KERNEL_SECTOR_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	asr	w1, w0, w8
	mov	x0, x21
	bl	_set_capacity
LBB0_16:
	add	x3, sp, #20
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w4, #2
	bl	_i2o_parm_field_get
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w8, [sp, #20]
	str	w8, [x20]
LBB0_18:
Lloh29:
	adrp	x1, _i2o_block_driver@GOTPAGE
Lloh30:
	ldr	x1, [x1, _i2o_block_driver@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #-1
	bl	_i2o_event_register
	mov	x0, x21
	bl	_add_disk
	ldr	w8, [x24, _i2o_block_probe.unit@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x24, _i2o_block_probe.unit@PAGEOFF]
	ldr	w1, [x19, #4]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
Lloh31:
	adrp	x0, l_.str.9@PAGE
Lloh32:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_osm_info
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_i2o_block_probe.unit,4,2 ; @i2o_block_probe.unit
	.comm	_I2O_MAX_SECTORS_LIMITED,2,1    ; @I2O_MAX_SECTORS_LIMITED
	.comm	_I2O_MAX_SECTORS,2,1            ; @I2O_MAX_SECTORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping used device %03x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Unable to claim device. Installation aborted\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"could not alloc a new I2O block device"

l_.str.3:                               ; @.str.3
	.asciz	"i2o/hd%c"

l_.str.4:                               ; @.str.4
	.asciz	"max sectors = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"phys segments = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"max hw segments = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"unable to get blocksize of %s\n"

	.comm	_KERNEL_SECTOR_SHIFT,4,2        ; @KERNEL_SECTOR_SHIFT
l_.str.8:                               ; @.str.8
	.asciz	"could not get size of %s\n"

	.comm	_i2o_block_driver,4,2           ; @i2o_block_driver
l_.str.9:                               ; @.str.9
	.asciz	"device added (TID: %03x): %s\n"

	.no_dead_strip	_i2o_block_probe
.subsections_via_symbols
