	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm_alloc
_pm_alloc:                              ## @pm_alloc
	.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	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movl	%esi, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %r14
	xorl	%r15d, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r12,%r15,8)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r14
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r12,%r15,8), %r13
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%r13,%rbx,8)
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_2:
	xorl	%r15d, %r15d
	cmpl	%ebx, %r15d
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpl	%ebx, %r15d
	je	LBB0_14
LBB0_13:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_OSM_LOG
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pm_free
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating matrix - out of memory\n"

	.no_dead_strip	_pm_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm_alloc
_pm_alloc:                              ; @pm_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	ldr	x21, [x0]
	mov	x0, x1
	mov	w1, #8
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x24, #0
	add	w22, w22, #1
	mov	w25, w19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	cmp	w8, w19
	b.eq	LBB0_10
	b	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	mov	w1, #8
	bl	_calloc
	str	x0, [x20, x24, lsl #3]
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x0, x22
	mov	w1, #4
	bl	_calloc
	str	x0, [x23]
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x25, x23
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x26, [x20, x24, lsl #3]
	mov	x0, x22
	mov	w1, #4
	bl	_calloc
	str	x0, [x26, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x23, #1
	cmp	w8, w19
	b.ne	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.ne	LBB0_4
	b	LBB0_14
LBB0_11:
	mov	w24, #0
LBB0_12:
	cmp	w24, w19
	b.eq	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_OSM_LOG
	mov	x0, x20
	mov	x1, x19
	bl	_pm_free
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating matrix - out of memory\n"

	.no_dead_strip	_pm_alloc
.subsections_via_symbols
