	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ldst_peripheral
__ldst_peripheral:                      ## @_ldst_peripheral
	.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	%r9d, %r12d
	movl	%r8d, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	_PL330_QUIRK_BROKEN_NO_FLUSHP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	jne	LBB0_1
## %bb.2:
	je	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	movq	_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jne	LBB0_4
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	%esi, %edi
	movl	%esi, %r14d
	movq	%r15, %rsi
	callq	__emit_FLUSHP
	movl	%r14d, %esi
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_5:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movslq	%r14d, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rsi
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	%r15d, %edx
	callq	__emit_WFP
	addl	%eax, %ebx
	movslq	%ebx, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rsi
	movq	(%r12), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movl	%r13d, %edi
	movl	%r15d, %edx
	callq	__emit_load
	addl	%eax, %ebx
	movslq	%ebx, %r14
	movq	%r12, %rax
	movl	%r15d, %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	leaq	(%r15,%r14,4), %rsi
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movl	%r13d, %edi
	movl	%r12d, %edx
	callq	__emit_store
	addl	%eax, %r14d
	decl	%ebx
	jne	LBB0_6
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL330_QUIRK_BROKEN_NO_FLUSHP,4,2 ## @PL330_QUIRK_BROKEN_NO_FLUSHP
	.comm	_BURST,4,2                      ## @BURST
	.no_dead_strip	__ldst_peripheral
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ldst_peripheral
__ldst_peripheral:                      ; @_ldst_peripheral
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PL330_QUIRK_BROKEN_NO_FLUSHP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PL330_QUIRK_BROKEN_NO_FLUSHP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BURST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BURST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ands	w8, w9, w8
	csel	w23, w5, w10, eq
	cbz	w8, LBB0_4
; %bb.1:
	mov	w24, #0
	cbz	w19, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	add	x1, x21, w24, sxtw #2
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	__emit_WFP
	add	w24, w24, w0
	add	x1, x21, w24, sxtw #2
	ldr	x8, [x20]
	ldp	w4, w3, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	__emit_load
	add	w24, w24, w0
	add	x1, x21, w24, sxtw #2
	ldr	x8, [x20]
	ldp	w4, w3, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	__emit_store
	add	w24, w24, w0
	cbnz	w19, LBB0_2
LBB0_3:
	mov	x0, x24
	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_4:
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	__emit_FLUSHP
	mov	x24, x0
	cbnz	w19, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PL330_QUIRK_BROKEN_NO_FLUSHP,4,2 ; @PL330_QUIRK_BROKEN_NO_FLUSHP
	.comm	_BURST,4,2                      ; @BURST
	.no_dead_strip	__ldst_peripheral
.subsections_via_symbols
