	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpmc_cs_insert_mem
_gpmc_cs_insert_mem:                    ## @gpmc_cs_insert_mem
	.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	%rsi, %r13
	movq	_gpmc_cs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movslq	%edi, %r12
	shlq	$4, %r12
	leaq	(%rbx,%r12), %r14
	movq	%rdx, %rdi
	callq	_gpmc_mem_align
	movq	%rax, %r15
	movq	_gpmc_mem_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	%r13, (%rbx,%r12)
	leaq	(%r15,%r13), %rax
	decq	%rax
	movq	%rax, 8(%rbx,%r12)
	movq	_gpmc_mem_root@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_request_resource
	movl	%eax, %ebx
	movq	_gpmc_mem_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpmc_cs,8,3                    ## @gpmc_cs
	.comm	_gpmc_mem_lock,4,2              ## @gpmc_mem_lock
	.comm	_gpmc_mem_root,4,2              ## @gpmc_mem_root
	.no_dead_strip	_gpmc_cs_insert_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpmc_cs_insert_mem
_gpmc_cs_insert_mem:                    ; @gpmc_cs_insert_mem
	.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	x19, x1
Lloh0:
	adrp	x8, _gpmc_cs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpmc_cs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, w0, sxtw #4
	mov	x0, x2
	bl	_gpmc_mem_align
	mov	x21, x0
Lloh3:
	adrp	x22, _gpmc_mem_lock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _gpmc_mem_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock
	add	x8, x19, x21
	sub	x8, x8, #1
	stp	x19, x8, [x20]
Lloh5:
	adrp	x0, _gpmc_mem_root@GOTPAGE
Lloh6:
	ldr	x0, [x0, _gpmc_mem_root@GOTPAGEOFF]
	mov	x1, x20
	bl	_request_resource
	mov	x19, x0
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_gpmc_cs,8,3                    ; @gpmc_cs
	.comm	_gpmc_mem_lock,4,2              ; @gpmc_mem_lock
	.comm	_gpmc_mem_root,4,2              ; @gpmc_mem_root
	.no_dead_strip	_gpmc_cs_insert_mem
.subsections_via_symbols
