	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sram_add_pool
_sram_add_pool:                         ## @sram_add_pool
	.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
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdi), %r13d
	movq	_SRAM_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	4(%r12), %ecx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_devm_gen_pool_create
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%rbx), %rsi
	movl	(%r12), %ecx
	movl	(%r14), %r8d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_gen_pool_add_virt
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRAM_GRANULARITY,4,2           ## @SRAM_GRANULARITY
	.comm	_NUMA_NO_NODE,4,2               ## @NUMA_NO_NODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register subpool: %d\n"

	.no_dead_strip	_sram_add_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sram_add_pool
_sram_add_pool:                         ; @sram_add_pool
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _SRAM_GRANULARITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRAM_GRANULARITY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ilog2
	mov	x1, x0
Lloh3:
	adrp	x24, _NUMA_NO_NODE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NUMA_NO_NODE@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w3, [x22, #4]
	mov	x0, x23
	bl	_devm_gen_pool_create
	str	w0, [x21, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #8]
	cbz	x8, LBB0_2
; %bb.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
	b	_PTR_ERR
LBB0_2:
	ldr	x1, [x21]
	ldr	w3, [x22]
	ldr	w4, [x24]
	mov	x2, x20
	bl	_gen_pool_add_virt
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SRAM_GRANULARITY,4,2           ; @SRAM_GRANULARITY
	.comm	_NUMA_NO_NODE,4,2               ; @NUMA_NO_NODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register subpool: %d\n"

	.no_dead_strip	_sram_add_pool
.subsections_via_symbols
