	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sram_add_partition
_sram_add_partition:                    ## @sram_add_partition
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	16(%rdi), %r15
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	leaq	(%r15,%rbx), %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	24(%r13), %rax
	addq	8(%r12), %rax
	movq	%rax, (%r15,%rbx)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpq	$0, 16(%r13)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_sram_add_pool
	testl	%eax, %eax
	jne	LBB0_9
LBB0_2:
	cmpq	$0, 8(%r13)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_sram_add_export
	testl	%eax, %eax
	jne	LBB0_9
LBB0_4:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_sram_check_protect_exec
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_sram_add_pool
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_sram_add_protect_exec
LBB0_8:
	incq	(%r12)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sram_add_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sram_add_partition
_sram_add_partition:                    ; @sram_add_partition
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	add	x20, x8, x9, lsl #4
	add	x0, x20, #8
	bl	_mutex_init
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x22, #16]
	add	x8, x9, x8
	str	x8, [x20]
	cbz	x10, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_sram_add_pool
	cbnz	w0, LBB0_9
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_sram_add_export
	cbnz	w0, LBB0_9
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_sram_check_protect_exec
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_sram_add_pool
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_sram_add_protect_exec
LBB0_8:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sram_add_partition
.subsections_via_symbols
