	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3bus_attach
_ps3bus_attach:                         ## @ps3bus_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_device_get_softc
	movq	%rax, %r12
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r12)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%r12)
	movq	(%rax), %rax
	leaq	24(%r12), %rbx
	movq	%rax, 32(%r12)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	callq	_rman_init
	movq	%rbx, %rdi
	callq	_rman_init
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_rman_manage_region
	leaq	20(%r12), %rdi
	movq	%r12, %rsi
	addq	$16, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mem_regions
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	$5, %r14d
	je	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.3(%rip), %rdi
	callq	_lv1_repository_string
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-60(%rbp), %r9
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.4(%rip), %rdi
	callq	_lv1_repository_string
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-44(%rbp), %r9
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.5(%rip), %rdi
	callq	_lv1_repository_string
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	leaq	-76(%rbp), %r9
	callq	_lv1_get_repository_node_value
	cmpl	$0, -76(%rbp)
	jle	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r12
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.9(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r12, %rdi
	movq	%r13, %rsi
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_device_set_ivars
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	incl	%r15d
	cmpl	-76(%rbp), %r15d
	jge	LBB0_1
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.6(%rip), %rdi
	callq	_lv1_repository_string
	movl	%eax, %ebx
	orl	%r15d, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_lv1_repository_string
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	leaq	-52(%rbp), %r9
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.6(%rip), %rdi
	callq	_lv1_repository_string
	movl	%eax, %ebx
	orl	%r15d, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_lv1_repository_string
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	leaq	-56(%rbp), %r9
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$128, -52(%rbp)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-44(%rbp), %edi
	movl	-56(%rbp), %esi
	xorl	%edx, %edx
	callq	_lv1_open_device
	movq	_M_PS3BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$28, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, 16(%rbx)
	movl	%r15d, 20(%rbx)
	movq	_OHCI_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OHCI_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rbx, %r9
	callq	_ps3bus_resources_init_by_type
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edx
	callq	_device_add_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r13
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.9(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_device_set_ivars
	movq	_M_PS3BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$28, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, 16(%rbx)
	movl	%r15d, 20(%rbx)
	movq	_EHCI_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EHCI_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rbx, %r9
	callq	_ps3bus_resources_init_by_type
	movq	%r12, %rdi
	leaq	L_.str.10(%rip), %rsi
	movl	$-1, %edx
	callq	_device_add_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r13
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.9(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	_M_PS3BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$28, %edi
	callq	_malloc
	movq	%rax, %r13
	movl	-44(%rbp), %eax
	movl	%eax, (%r13)
	movl	-56(%rbp), %esi
	movl	%esi, 4(%r13)
	movl	-60(%rbp), %eax
	movl	%eax, 8(%r13)
	movl	-52(%rbp), %ecx
	movl	%ecx, 12(%r13)
	movl	%r14d, 16(%r13)
	movl	%r15d, 20(%r13)
	movq	_PS3_BUSTYPE_SYSBUS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_PS3_BUSTYPE_STORAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-44(%rbp), %edi
	xorl	%edx, %edx
	callq	_lv1_open_device
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	_ps3bus_resources_init
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_device_add_child
	testq	%rax, %rax
	jne	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_device_printf
	movq	_M_PS3BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_device_printf
	movq	_M_PS3BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=2
	callq	_free
	jmp	LBB0_8
LBB0_23:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_clock_register
	movq	%rbx, %rdi
	callq	_bus_generic_attach
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMAN_ARRAY,8,3                 ## @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PS3Bus Memory Mapped I/O"

L_.str.1:                               ## @.str.1
	.asciz	"PS3Bus Interrupts"

	.comm	_PS3_LPAR_ID_PME,4,2            ## @PS3_LPAR_ID_PME
L_.str.2:                               ## @.str.2
	.asciz	"bus"

L_.str.3:                               ## @.str.3
	.asciz	"type"

L_.str.4:                               ## @.str.4
	.asciz	"id"

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

L_.str.6:                               ## @.str.6
	.asciz	"dev"

	.comm	_M_PS3BUS,4,2                   ## @M_PS3BUS
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_OHCI_IRQ,4,2                   ## @OHCI_IRQ
	.comm	_OHCI_REG,4,2                   ## @OHCI_REG
L_.str.7:                               ## @.str.7
	.asciz	"ohci"

L_.str.8:                               ## @.str.8
	.asciz	"device_add_child failed\n"

L_.str.9:                               ## @.str.9
	.asciz	"iommu"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_EHCI_IRQ,4,2                   ## @EHCI_IRQ
	.comm	_EHCI_REG,4,2                   ## @EHCI_REG
L_.str.10:                              ## @.str.10
	.asciz	"ehci"

	.comm	_PS3_BUSTYPE_SYSBUS,4,2         ## @PS3_BUSTYPE_SYSBUS
	.comm	_PS3_BUSTYPE_STORAGE,4,2        ## @PS3_BUSTYPE_STORAGE
	.no_dead_strip	_ps3bus_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3bus_attach
_ps3bus_attach:                         ; @ps3bus_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _RMAN_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMAN_ARRAY@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	stp	x10, x9, [x0]
	ldr	x8, [x8]
	str	x8, [x0, #32]
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x21, x0
	str	x8, [x21, #24]!
	bl	_rman_init
	mov	x0, x21
	bl	_rman_init
	mov	x0, x21
	mov	w1, #0
	mov	w2, #-1
	bl	_rman_manage_region
	add	x0, x20, #20
	str	x20, [sp]                       ; 8-byte Folded Spill
	add	x1, x20, #16
	mov	x2, #0
	mov	x3, #0
	bl	_mem_regions
	mov	w21, #0
Lloh6:
	adrp	x20, _PS3_LPAR_ID_PME@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PS3_LPAR_ID_PME@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.2@PAGE
Lloh9:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh10:
	adrp	x23, l_.str.3@PAGE
Lloh11:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh12:
	adrp	x24, l_.str.4@PAGE
Lloh13:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh14:
	adrp	x26, l_.str.6@PAGE
Lloh15:
	add	x26, x26, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cmp	w21, #5
	b.eq	LBB0_21
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w25, [x20]
	mov	x0, x22
	bl	_lv1_repository_string
	mov	x0, x23
	bl	_lv1_repository_string
	mov	x2, x0
	add	x5, sp, #28
	add	x6, sp, #8
	mov	x0, x25
	mov	w3, #0
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	cbnz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w25, [x20]
	mov	x0, x22
	bl	_lv1_repository_string
	mov	x0, x24
	bl	_lv1_repository_string
	mov	x2, x0
	add	x5, sp, #24
	add	x6, sp, #8
	mov	x0, x25
	mov	w3, #0
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w25, [x20]
	mov	x0, x22
	bl	_lv1_repository_string
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_lv1_repository_string
	mov	x2, x0
	add	x5, sp, #20
	add	x6, sp, #8
	mov	x0, x25
	mov	w3, #0
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_device_printf
Lloh20:
	adrp	x8, _M_PS3BUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _M_PS3BUS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_free
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
Lloh23:
	adrp	x24, l_.str.4@PAGE
Lloh24:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w28, w28, #1
	ldr	w8, [sp, #20]
	cmp	w28, w8
	b.ge	LBB0_1
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x20]
	mov	x0, x22
	bl	_lv1_repository_string
	mov	x0, x26
	bl	_lv1_repository_string
	orr	w27, w0, w28
	mov	x0, x23
	bl	_lv1_repository_string
	mov	x3, x0
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x25
	mov	x2, x27
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	cbnz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w25, [x20]
	mov	x0, x22
	bl	_lv1_repository_string
	mov	x0, x26
	bl	_lv1_repository_string
	orr	w27, w0, w28
	mov	x0, x24
	bl	_lv1_repository_string
	mov	x3, x0
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x25
	mov	x2, x27
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	cbnz	w0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [sp, #24]
	ldr	w1, [sp, #16]
	mov	w2, #0
	bl	_lv1_open_device
Lloh25:
	adrp	x8, _M_PS3BUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M_PS3BUS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #28
	bl	_malloc
	mov	x27, x0
	ldr	w8, [sp, #24]
	str	w8, [x0]
	ldr	w8, [sp, #16]
	ldr	w9, [sp, #28]
	stp	w8, w9, [x0, #4]
	ldr	w8, [sp, #12]
	stp	w8, w21, [x0, #12]
	str	w28, [x0, #20]
Lloh34:
	adrp	x8, _OHCI_IRQ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OHCI_IRQ@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x8, _OHCI_REG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _OHCI_REG@GOTPAGEOFF]
Lloh39:
	ldr	w4, [x8]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	mov	x0, x24
	mov	x1, x21
	mov	x2, x28
	mov	x5, x27
	bl	_ps3bus_resources_init_by_type
	mov	x0, x19
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #-1
	bl	_device_add_child
	cbz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x0
	add	x0, x27, #24
Lloh42:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	mov	x0, x25
	mov	x1, x27
	bl	_device_set_ivars
Lloh47:
	adrp	x8, _M_PS3BUS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _M_PS3BUS@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh54:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #28
	bl	_malloc
	mov	x27, x0
	ldr	w8, [sp, #24]
	str	w8, [x0]
	ldr	w8, [sp, #16]
	ldr	w9, [sp, #28]
	stp	w8, w9, [x0, #4]
	ldr	w8, [sp, #12]
	stp	w8, w21, [x0, #12]
	str	w28, [x0, #20]
Lloh56:
	adrp	x8, _EHCI_IRQ@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EHCI_IRQ@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
Lloh59:
	adrp	x8, _EHCI_REG@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EHCI_REG@GOTPAGEOFF]
Lloh61:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x21
	mov	x2, x28
	mov	x5, x27
	bl	_ps3bus_resources_init_by_type
	mov	x0, x19
Lloh62:
	adrp	x1, l_.str.10@PAGE
Lloh63:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w2, #-1
	bl	_device_add_child
	cbz	x0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x0
	add	x0, x27, #24
Lloh64:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x8]
Lloh67:
	adrp	x1, l_.str.9@PAGE
Lloh68:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	mov	x0, x25
	mov	x1, x27
	bl	_device_set_ivars
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh69:
	adrp	x8, _M_PS3BUS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _M_PS3BUS@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh73:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh76:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #28
	bl	_malloc
	mov	x27, x0
	ldr	w8, [sp, #24]
	str	w8, [x0]
	ldp	w9, w1, [sp, #12]
	ldr	w8, [sp, #28]
	stp	w1, w8, [x0, #4]
	stp	w9, w21, [x0, #12]
	str	w28, [x0, #20]
Lloh78:
	adrp	x9, _PS3_BUSTYPE_SYSBUS@GOTPAGE
Lloh79:
	ldr	x9, [x9, _PS3_BUSTYPE_SYSBUS@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh81:
	adrp	x9, _PS3_BUSTYPE_STORAGE@GOTPAGE
Lloh82:
	ldr	x9, [x9, _PS3_BUSTYPE_STORAGE@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [sp, #24]
	mov	w2, #0
	bl	_lv1_open_device
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	bl	_ps3bus_resources_init
	mov	x0, x19
	mov	x1, #0
	mov	w2, #-1
	bl	_device_add_child
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x0
	add	x0, x27, #24
Lloh84:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh86:
	ldr	w3, [x8]
Lloh87:
	adrp	x1, l_.str.9@PAGE
Lloh88:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	mov	x0, x25
	mov	x1, x27
	bl	_device_set_ivars
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
Lloh89:
	adrp	x1, l_.str.8@PAGE
Lloh90:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_device_printf
Lloh91:
	adrp	x8, _M_PS3BUS@GOTPAGE
Lloh92:
	ldr	x8, [x8, _M_PS3BUS@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_free
	b	LBB0_8
LBB0_21:
	mov	x0, x19
	mov	w1, #1000
	bl	_clock_register
	mov	x0, x19
	bl	_bus_generic_attach
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_RMAN_ARRAY,8,3                 ; @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PS3Bus Memory Mapped I/O"

l_.str.1:                               ; @.str.1
	.asciz	"PS3Bus Interrupts"

	.comm	_PS3_LPAR_ID_PME,4,2            ; @PS3_LPAR_ID_PME
l_.str.2:                               ; @.str.2
	.asciz	"bus"

l_.str.3:                               ; @.str.3
	.asciz	"type"

l_.str.4:                               ; @.str.4
	.asciz	"id"

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

l_.str.6:                               ; @.str.6
	.asciz	"dev"

	.comm	_M_PS3BUS,4,2                   ; @M_PS3BUS
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_OHCI_IRQ,4,2                   ; @OHCI_IRQ
	.comm	_OHCI_REG,4,2                   ; @OHCI_REG
l_.str.7:                               ; @.str.7
	.asciz	"ohci"

l_.str.8:                               ; @.str.8
	.asciz	"device_add_child failed\n"

l_.str.9:                               ; @.str.9
	.asciz	"iommu"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_EHCI_IRQ,4,2                   ; @EHCI_IRQ
	.comm	_EHCI_REG,4,2                   ; @EHCI_REG
l_.str.10:                              ; @.str.10
	.asciz	"ehci"

	.comm	_PS3_BUSTYPE_SYSBUS,4,2         ; @PS3_BUSTYPE_SYSBUS
	.comm	_PS3_BUSTYPE_STORAGE,4,2        ; @PS3_BUSTYPE_STORAGE
	.no_dead_strip	_ps3bus_attach
.subsections_via_symbols
