	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2o_block_device_alloc
_i2o_block_device_alloc:                ## @i2o_block_device_alloc
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	20(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	_CACHE_PREFETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_CACHE_WRITEBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	$16, %edi
	callq	_alloc_disk
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_i2o_block_request_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_blk_init_queue
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %rbx
	movq	_i2o_block_prep_req_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_blk_queue_prep_rq
	movq	_I2O_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%rbx, 16(%r14)
	movq	_i2o_block_fops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r15, (%r14)
	movq	%r14, (%r15)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_osm_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_osm_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_osm_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_put_disk
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	negl	%ebx
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient memory to allocate I2O Block disk.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CACHE_PREFETCH,4,2             ## @CACHE_PREFETCH
	.comm	_CACHE_WRITEBACK,4,2            ## @CACHE_WRITEBACK
L_.str.1:                               ## @.str.1
	.asciz	"Insufficient memory to allocate gendisk.\n"

	.comm	_i2o_block_request_fn,4,2       ## @i2o_block_request_fn
L_.str.2:                               ## @.str.2
	.asciz	"Insufficient memory to allocate request queue.\n"

	.comm	_i2o_block_prep_req_fn,4,2      ## @i2o_block_prep_req_fn
	.comm	_I2O_MAJOR,4,2                  ## @I2O_MAJOR
	.comm	_i2o_block_fops,4,2             ## @i2o_block_fops
	.no_dead_strip	_i2o_block_device_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2o_block_device_alloc
_i2o_block_device_alloc:                ; @i2o_block_device_alloc
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #20
	bl	_INIT_LIST_HEAD
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _CACHE_PREFETCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CACHE_PREFETCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CACHE_WRITEBACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CACHE_WRITEBACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	mov	w0, #16
	bl	_alloc_disk
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh9:
	adrp	x8, _i2o_block_request_fn@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i2o_block_request_fn@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_blk_init_queue
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh12:
	adrp	x8, _i2o_block_prep_req_fn@GOTPAGE
Lloh13:
	ldr	x8, [x8, _i2o_block_prep_req_fn@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_blk_queue_prep_rq
Lloh15:
	adrp	x8, _I2O_MAJOR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2O_MAJOR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	str	x21, [x20, #16]
Lloh18:
	adrp	x8, _i2o_block_fops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _i2o_block_fops@GOTPAGEOFF]
	stp	x19, x8, [x20]
	str	x20, [x19]
	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
	ret
LBB0_4:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_osm_err
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_5:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_osm_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_6:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_osm_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_put_disk
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	neg	w0, w21
	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	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient memory to allocate I2O Block disk.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CACHE_PREFETCH,4,2             ; @CACHE_PREFETCH
	.comm	_CACHE_WRITEBACK,4,2            ; @CACHE_WRITEBACK
l_.str.1:                               ; @.str.1
	.asciz	"Insufficient memory to allocate gendisk.\n"

	.comm	_i2o_block_request_fn,4,2       ; @i2o_block_request_fn
l_.str.2:                               ; @.str.2
	.asciz	"Insufficient memory to allocate request queue.\n"

	.comm	_i2o_block_prep_req_fn,4,2      ; @i2o_block_prep_req_fn
	.comm	_I2O_MAJOR,4,2                  ; @I2O_MAJOR
	.comm	_i2o_block_fops,4,2             ; @i2o_block_fops
	.no_dead_strip	_i2o_block_device_alloc
.subsections_via_symbols
