	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ps3pic_attach
LCPI0_0:
	.quad	12                              ## 0xc
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ps3pic_attach:                         ## @ps3pic_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_M_PS3PIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$128, %edi
	xorl	%ecx, %ecx
	movl	$64, %r9d
	callq	_contigmalloc
	movq	%rax, 24(%r15)
	leaq	8(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 32(%r15)
	leaq	-36(%rbp), %rdi
	callq	_lv1_get_logical_ppe_id
	xorl	%eax, %eax
	callq	_mfctrl
	movl	%eax, %edi
	callq	_fls
	movl	$32, %ebx
	subl	%eax, %ebx
	movl	-36(%rbp), %r12d
	movq	24(%r15), %rdi
	callq	_vtophys
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_lv1_configure_irq_state_bitmap
	movl	$63, (%r15)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$63, %edx
	movl	$1, %ecx
	callq	_powerpc_register_pic
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PS3PIC,4,2                   ## @M_PS3PIC
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_ps3pic_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ps3pic_attach
lCPI0_0:
	.quad	12                              ; 0xc
	.quad	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ps3pic_attach:                         ; @ps3pic_attach
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _M_PS3PIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PS3PIC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh9:
	adrp	x8, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	w0, #128
	mov	w3, #0
	mov	w5, #64
	bl	_contigmalloc
	add	x8, x0, #8
	stp	x8, x0, [x20, #16]
	dup.2d	v0, x0
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	str	q0, [x20, #32]
	add	x0, sp, #12
	bl	_lv1_get_logical_ppe_id
	bl	_mfctrl
	bl	_fls
	mov	w8, #32
	sub	w21, w8, w0
	ldr	w22, [sp, #12]
	ldr	x0, [x20, #24]
	bl	_vtophys
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_lv1_configure_irq_state_bitmap
	mov	w8, #63
	str	w8, [x20]
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #63
	mov	w3, #1
	bl	_powerpc_register_pic
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PS3PIC,4,2                   ; @M_PS3PIC
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_ps3pic_attach
.subsections_via_symbols
