	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3disk_attach
_ps3disk_attach:                        ## @ps3disk_attach
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r13
	movl	%r14d, 76(%rax)
	movq	%rax, %rdi
	callq	_PS3DISK_LOCK_INIT
	movq	%r13, %rdi
	callq	_ps3disk_get_disk_geometry
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	(%r13), %edx
	movl	72(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	%r13, %rdi
	callq	_ps3disk_enum_regions
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movq	%r13, %rdi
	callq	_PS3DISK_LOCK_DESTROY
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	4(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	cmpl	$0, 4(%r13)
	je	LBB0_6
## %bb.7:
	leaq	32(%r13), %rdx
	movq	$0, 32(%r13)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movl	%eax, 24(%r13)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_INTR_TYPE_BIO@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_INTR_ENTROPY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ps3disk_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	40(%r13), %rbx
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	pushq	%rbx
	callq	_bus_setup_intr
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_14:
	movl	%r14d, %edi
	callq	_bus_get_dma_tag
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BUS_SPACE_UNRESTRICTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_busdma_lock_mutex@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	leaq	68(%r13), %rbx
	leaq	64(%r13), %r15
	movl	%eax, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rbx
	pushq	%r12
	pushq	$0
	pushq	%r11
	pushq	$1
	pushq	%r10
	pushq	$0
	callq	_bus_dma_tag_create
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	_ENXIO@GOTPCREL(%rip), %rbx
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movl	(%rbx), %ebx
	movl	24(%r13), %esi
	movl	40(%r13), %edx
	movl	%r14d, %edi
	callq	_bus_teardown_intr
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %esi
	movq	32(%r13), %rdx
	movl	24(%r13), %ecx
	movl	%r14d, %edi
	callq	_bus_release_resource
LBB0_12:
	movq	16(%r13), %rdi
	movq	_M_PS3DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	jmp	LBB0_13
LBB0_17:
	movl	4(%r13), %edi
	shll	$3, %edi
	movq	_M_PS3DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	cmpl	$0, 4(%r13)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	jle	LBB0_26
## %bb.20:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r15
	movslq	4(%r13), %rax
	cmpq	%rax, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	jge	LBB0_26
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_disk_alloc
	movq	%rax, %rbx
	movq	56(%r13), %rax
	movq	%rbx, (%rax,%r15,8)
	movq	_ps3disk_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ps3disk_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_ps3disk_strategy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	L_.str.8(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r13, 32(%rbx)
	movl	(%r12), %eax
	movl	%eax, 24(%rbx)
	movl	(%r13), %r12d
	movl	%r12d, 8(%rbx)
	movl	%r15d, 12(%rbx)
	movq	16(%r13), %rax
	imull	(%rax,%r15,8), %r12d
	movl	%r12d, 16(%rbx)
	movq	_DISKFLAG_CANFLUSHCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	sarl	$20, %r12d
	movl	%r14d, %edi
	callq	_ps3bus_get_device
	movl	12(%rbx), %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx,%r15,8), %r8d
	subq	$8, %rsp
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	leaq	-52(%rbp), %rax
	pushq	%rax
	callq	_lv1_storage_read
	addq	$16, %rsp
	movl	%eax, %ecx
	leaq	L_.str.10(%rip), %r9
	movq	_LV1_DENIED_BY_POLICY@GOTPCREL(%rip), %rax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	(%rax), %ecx
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	L_.str.11(%rip), %r9
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r14d, %edi
	leaq	L_.str.9(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	$77, %r8d
	xorl	%eax, %eax
	callq	_device_printf
	movq	_LV1_DENIED_BY_POLICY@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_DISK_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_disk_create
	jmp	LBB0_25
LBB0_26:
	leaq	52(%r13), %rdi
	callq	_bioq_init
	leaq	48(%r13), %rdi
	callq	_bioq_init
	movq	%r13, %rdx
	addq	$44, %rdx
	movq	_ps3disk_task@GOTPCREL(%rip), %rdi
	leaq	L_.str.8(%rip), %r9
	xorl	%ebx, %ebx
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kproc_create
	movq	%r13, %rdi
	callq	_ps3disk_sysctlattach
	movl	$1, 8(%r13)
	jmp	LBB0_27
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get disk geometry\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"block size %lu total blocks %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not enumerate disk regions\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found %lu regions\n"

	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
L_.str.4:                               ## @.str.4
	.asciz	"Could not allocate IRQ\n"

	.comm	_INTR_TYPE_BIO,4,2              ## @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_INTR_ENTROPY,4,2               ## @INTR_ENTROPY
	.comm	_ps3disk_intr,4,2               ## @ps3disk_intr
L_.str.5:                               ## @.str.5
	.asciz	"Could not setup IRQ\n"

	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_BUS_SPACE_UNRESTRICTED,4,2     ## @BUS_SPACE_UNRESTRICTED
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_busdma_lock_mutex,4,2          ## @busdma_lock_mutex
L_.str.6:                               ## @.str.6
	.asciz	"Could not create DMA tag\n"

	.comm	_M_PS3DISK,4,2                  ## @M_PS3DISK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
L_.str.7:                               ## @.str.7
	.asciz	"Could not allocate disk(s)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ps3disk_open,4,2               ## @ps3disk_open
	.comm	_ps3disk_close,4,2              ## @ps3disk_close
	.comm	_ps3disk_strategy,4,2           ## @ps3disk_strategy
L_.str.8:                               ## @.str.8
	.asciz	"ps3disk"

	.comm	_DISKFLAG_CANFLUSHCACHE,4,2     ## @DISKFLAG_CANFLUSHCACHE
L_.str.9:                               ## @.str.9
	.asciz	"region %d %ju%cB%s\n"

	.comm	_LV1_DENIED_BY_POLICY,4,2       ## @LV1_DENIED_BY_POLICY
L_.str.10:                              ## @.str.10
	.asciz	" (hypervisor protected)"

L_.str.11:                              ## @.str.11
	.space	1

	.comm	_DISK_VERSION,4,2               ## @DISK_VERSION
	.comm	_ps3disk_task,4,2               ## @ps3disk_task
	.no_dead_strip	_ps3disk_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3disk_attach
_ps3disk_attach:                        ; @ps3disk_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	w20, [x0, #76]
	bl	_PS3DISK_LOCK_INIT
	mov	x0, x19
	bl	_ps3disk_get_disk_geometry
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19]
	ldr	w9, [x19, #72]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	mov	x0, x19
	bl	_ps3disk_enum_regions
	cbz	w0, LBB0_8
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_device_printf
LBB0_5:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x19
	bl	_PS3DISK_LOCK_DESTROY
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.9:
	mov	x21, x19
	str	xzr, [x21, #32]!
Lloh11:
	adrp	x23, _SYS_RES_IRQ@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SYS_RES_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_bus_alloc_resource_any
	stur	w0, [x21, #-8]
Lloh16:
	adrp	x22, _M_PS3DISK@GOTPAGE
Lloh17:
	ldr	x22, [x22, _M_PS3DISK@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.10:
	mov	x1, x0
Lloh18:
	adrp	x8, _INTR_TYPE_BIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTR_TYPE_BIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _INTR_ENTROPY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INTR_ENTROPY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh27:
	adrp	x8, _ps3disk_intr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ps3disk_intr@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	add	x6, x19, #40
	mov	x0, x20
	mov	x3, #0
	mov	x5, x19
	bl	_bus_setup_intr
	cbz	w0, LBB0_13
; %bb.11:
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh32:
	adrp	x8, _ENXIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_12:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh37:
	adrp	x8, _ENXIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh39:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_13:
	mov	x0, x20
	bl	_bus_get_dma_tag
Lloh40:
	adrp	x8, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _BUS_SPACE_UNRESTRICTED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BUS_SPACE_UNRESTRICTED@GOTPAGEOFF]
Lloh45:
	ldr	w7, [x8]
Lloh46:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh47:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh48:
	adrp	x9, _busdma_lock_mutex@GOTPAGE
Lloh49:
	ldr	x9, [x9, _busdma_lock_mutex@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	add	x10, x19, #68
	add	x11, x19, #64
	stp	x10, x11, [sp, #16]
	stp	wzr, w9, [sp, #8]
	mov	w9, #1
	stp	w9, w8, [sp]
	mov	w1, #4096
	mov	w2, #0
	mov	x4, x3
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	cbz	w0, LBB0_18
; %bb.14:
Lloh51:
	adrp	x21, _ENXIO@GOTPAGE
Lloh52:
	ldr	x21, [x21, _ENXIO@GOTPAGEOFF]
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_device_printf
	ldr	w21, [x21]
	ldr	w1, [x19, #24]
	ldr	w2, [x19, #40]
	mov	x0, x20
	bl	_bus_teardown_intr
LBB0_16:
	ldr	w1, [x23]
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #24]
	mov	x0, x20
	bl	_bus_release_resource
LBB0_17:
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	bl	_free
	b	LBB0_6
LBB0_18:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #3
Lloh55:
	adrp	x8, _M_ZERO@GOTPAGE
Lloh56:
	ldr	x8, [x8, _M_ZERO@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh59:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_25
; %bb.19:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	mov	x25, #0
	mov	x26, #0
Lloh61:
	adrp	x24, _LV1_DENIED_BY_POLICY@GOTPAGE
Lloh62:
	ldr	x24, [x24, _LV1_DENIED_BY_POLICY@GOTPAGEOFF]
Lloh63:
	adrp	x21, l_.str.9@PAGE
Lloh64:
	add	x21, x21, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #4]
	add	x25, x25, #8
	cmp	x26, x8
	mov	x28, x27
	b.ge	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	bl	_disk_alloc
	mov	x22, x0
	ldr	x8, [x19, #56]
	str	x0, [x8, x26, lsl #3]
Lloh65:
	adrp	x8, _ps3disk_open@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ps3disk_open@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh68:
	adrp	x8, _ps3disk_close@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ps3disk_close@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _ps3disk_strategy@GOTPAGE
Lloh72:
	ldr	x9, [x9, _ps3disk_strategy@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh74:
	adrp	x8, l_.str.8@PAGE
Lloh75:
	add	x8, x8, l_.str.8@PAGEOFF
	str	x8, [x0]
	str	x19, [x0, #32]
	mov	x27, x28
	ldr	w8, [x28]
	str	w8, [x0, #24]
	ldr	w8, [x19]
	stp	w8, w26, [x0, #8]
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x25]
	mul	w8, w9, w8
Lloh76:
	adrp	x9, _DISKFLAG_CANFLUSHCACHE@GOTPAGE
Lloh77:
	ldr	x9, [x9, _DISKFLAG_CANFLUSHCACHE@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	ldr	w10, [x0, #20]
	orr	w9, w10, w9
	stp	w8, w9, [x0, #16]
	asr	w28, w8, #20
	mov	x0, x20
	bl	_ps3bus_get_device
	ldr	w1, [x22, #12]
	add	x8, x23, x25
	ldr	w4, [x8, #4]
	add	x6, sp, #44
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	bl	_lv1_storage_read
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w0, w8
Lloh79:
	adrp	x8, l_.str.11@PAGE
Lloh80:
	add	x8, x8, l_.str.11@PAGEOFF
Lloh81:
	adrp	x9, l_.str.10@PAGE
Lloh82:
	add	x9, x9, l_.str.10@PAGEOFF
	csel	x10, x9, x8, eq
	mov	w8, #77
	stp	x8, x10, [sp, #16]
	stp	x26, x28, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_device_printf
	ldr	w8, [x24]
	cmp	w23, w8
	b.eq	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
Lloh83:
	adrp	x8, _DISK_VERSION@GOTPAGE
Lloh84:
	ldr	x8, [x8, _DISK_VERSION@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_disk_create
	b	LBB0_21
LBB0_24:
	add	x0, x19, #52
	bl	_bioq_init
	add	x0, x19, #48
	bl	_bioq_init
	add	x2, x19, #44
Lloh86:
	adrp	x0, _ps3disk_task@GOTPAGE
Lloh87:
	ldr	x0, [x0, _ps3disk_task@GOTPAGEOFF]
Lloh88:
	adrp	x5, l_.str.8@PAGE
Lloh89:
	add	x5, x5, l_.str.8@PAGEOFF
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	bl	_kproc_create
	mov	x0, x19
	bl	_ps3disk_sysctlattach
	mov	w21, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
LBB0_25:
Lloh90:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh91:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
Lloh92:
	adrp	x1, l_.str.7@PAGE
Lloh93:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get disk geometry\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"block size %lu total blocks %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not enumerate disk regions\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found %lu regions\n"

	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
l_.str.4:                               ; @.str.4
	.asciz	"Could not allocate IRQ\n"

	.comm	_INTR_TYPE_BIO,4,2              ; @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_INTR_ENTROPY,4,2               ; @INTR_ENTROPY
	.comm	_ps3disk_intr,4,2               ; @ps3disk_intr
l_.str.5:                               ; @.str.5
	.asciz	"Could not setup IRQ\n"

	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_BUS_SPACE_UNRESTRICTED,4,2     ; @BUS_SPACE_UNRESTRICTED
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_busdma_lock_mutex,4,2          ; @busdma_lock_mutex
l_.str.6:                               ; @.str.6
	.asciz	"Could not create DMA tag\n"

	.comm	_M_PS3DISK,4,2                  ; @M_PS3DISK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
l_.str.7:                               ; @.str.7
	.asciz	"Could not allocate disk(s)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ps3disk_open,4,2               ; @ps3disk_open
	.comm	_ps3disk_close,4,2              ; @ps3disk_close
	.comm	_ps3disk_strategy,4,2           ; @ps3disk_strategy
l_.str.8:                               ; @.str.8
	.asciz	"ps3disk"

	.comm	_DISKFLAG_CANFLUSHCACHE,4,2     ; @DISKFLAG_CANFLUSHCACHE
l_.str.9:                               ; @.str.9
	.asciz	"region %d %ju%cB%s\n"

	.comm	_LV1_DENIED_BY_POLICY,4,2       ; @LV1_DENIED_BY_POLICY
l_.str.10:                              ; @.str.10
	.asciz	" (hypervisor protected)"

l_.str.11:                              ; @.str.11
	.space	1

	.comm	_DISK_VERSION,4,2               ; @DISK_VERSION
	.comm	_ps3disk_task,4,2               ; @ps3disk_task
	.no_dead_strip	_ps3disk_attach
.subsections_via_symbols
