	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spu_memset
_spu_memset:                            ## @spu_memset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leal	3(%r15), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	andl	$-4, %eax
	movl	%edx, %edi
	subl	%eax, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:
	movl	%r15d, %r13d
	movq	_SPU_MEMORY_BASE@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_local_irq_save
	leaq	(%r12,%rbx), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_writel
	callq	_local_irq_restore
	incq	%rbx
	cmpl	%ebx, %r13d
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	$7, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_spu_write_wait
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPU_MEMORY_BASE,8,3            ## @SPU_MEMORY_BASE
	.no_dead_strip	_spu_memset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spu_memset
_spu_memset:                            ; @spu_memset
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	negs	w8, w2
	and	w8, w8, #0x3
	and	w9, w2, #0x3
	csneg	w0, w9, w8, mi
	bl	_snd_BUG_ON
	cmp	x0, #0
	ccmp	w21, #1, #8, eq
	b.ge	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x22, #0
	mov	w21, w21
Lloh0:
	adrp	x23, _SPU_MEMORY_BASE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SPU_MEMORY_BASE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_local_irq_save
	ldr	x8, [x23]
	add	x9, x20, x22
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	bl	_local_irq_restore
	add	x22, x22, #1
	cmp	w21, w22
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tst	w22, #0x7
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_spu_write_wait
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPU_MEMORY_BASE,8,3            ; @SPU_MEMORY_BASE
	.no_dead_strip	_spu_memset
.subsections_via_symbols
