	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3pic_dispatch
_ps3pic_dispatch:                       ## @ps3pic_dispatch
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%r15), %rdi
	callq	_atomic_readandclear_64
	movq	%rax, %rbx
	movq	%r15, %rax
	addq	$8, %rax
	jmp	LBB0_3
LBB0_1:
	movq	32(%r15), %rdi
	callq	_atomic_readandclear_64
	movq	%rax, %rbx
	movq	%r15, %rax
LBB0_3:
	movq	(%rax), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_powerpc_sync
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	andq	%r12, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	bsfq	%rax, %rax
	btrq	%rax, %rbx
	movq	16(%r15), %rcx
	xorq	$63, %rax
	movl	(%rcx,%rax,4), %edi
	movq	%r14, %rsi
	callq	_powerpc_dispatch_intr
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpuid,4,2                      ## @cpuid
	.no_dead_strip	_ps3pic_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3pic_dispatch
_ps3pic_dispatch:                       ; @ps3pic_dispatch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _cpuid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PCPU_GET
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #24]
	bl	_atomic_readandclear_64
	mov	x21, x0
	add	x8, x20, #8
	b	LBB0_3
LBB0_2:
	ldr	x0, [x20, #32]
	bl	_atomic_readandclear_64
	mov	x21, x0
	mov	x8, x20
LBB0_3:
	ldr	x8, [x8]
	ldr	x22, [x8]
	bl	_powerpc_sync
	ands	x8, x21, x22
	b.eq	LBB0_6
; %bb.4:
	mov	w23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	rbit	x8, x8
	clz	x8, x8
	lsl	x9, x23, x8
	bic	x21, x21, x9
	ldr	x9, [x20, #16]
	eor	x8, x8, #0x3f
	ldr	w0, [x9, x8, lsl #2]
	mov	x1, x19
	bl	_powerpc_dispatch_intr
	ands	x8, x21, x22
	b.ne	LBB0_5
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cpuid,4,2                      ; @cpuid
	.no_dead_strip	_ps3pic_dispatch
.subsections_via_symbols
