	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_edge_face_map
_init_edge_face_map:                    ## @init_edge_face_map
	.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	%ecx, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(%r12,%r12,2), %r13d
	leal	(,%r13,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 8(%r15)
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(,%r12,4), %ecx
	leal	(%rcx,%rcx,8), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	_D3D_OK@GOTPCREL(%rip), %rbx
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r13d
	movl	$1, %r12d
	cmovgel	%r13d, %r12d
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_list_init
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
## %bb.5:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r14
	movl	$32, %r13d
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	addq	$36, %r13
	addq	$12, %r14
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%r14), %eax
	movslq	-4(%r14), %rcx
	cmpl	%ecx, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movl	(%rbx,%rcx,4), %ecx
	movslq	(%rbx,%rax,4), %rdi
	movq	(%r15), %rax
	movl	%ecx, -32(%rax,%r13)
	movl	%r12d, -28(%rax,%r13)
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	leaq	(%rax,%r13), %rsi
	addq	$-24, %rsi
	callq	_list_add_head
	movl	-4(%r14), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r14), %rcx
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx,%rcx,4), %ecx
	cltq
	movslq	(%rbx,%rax,4), %rdi
	movq	(%r15), %rax
	movl	%ecx, -20(%rax,%r13)
	movl	%r12d, -16(%rax,%r13)
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	leaq	(%rax,%r13), %rsi
	addq	$-12, %rsi
	callq	_list_add_head
	movl	(%r14), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	-8(%r14), %rcx
	cmpl	%ecx, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx,%rcx,4), %ecx
	cltq
	movslq	(%rbx,%rax,4), %rdi
	movq	(%r15), %rax
	leaq	(%rax,%r13), %rsi
	movl	%ecx, -8(%rax,%r13)
	movl	%r12d, -4(%rax,%r13)
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	callq	_list_add_head
	jmp	LBB0_12
LBB0_13:
	movq	_D3D_OK@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.no_dead_strip	_init_edge_face_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_edge_face_map
_init_edge_face_map:                    ; @init_edge_face_map
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_GetProcessHeap
	add	w23, w21, w21, lsl #1
	lsl	w2, w23, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
; %bb.1:
	bl	_GetProcessHeap
	add	w8, w21, w21, lsl #3
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x20]
	cbz	x0, LBB0_13
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x24, #0
	cmp	w23, #1
	csinc	w8, w23, wzr, gt
	lsl	x23, x8, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x24
	bl	_list_init
	add	x24, x24, #4
	cmp	x23, x24
	b.ne	LBB0_4
; %bb.5:
	mov	x23, #0
	mov	w24, #0
	mov	w8, #36
	umull	x25, w21, w8
	add	x22, x22, #4
Lloh0:
	adrp	x21, _D3D_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _D3D_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	add	x23, x23, #36
	add	x22, x22, #12
	cmp	x25, x23
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x22, #-4]
	ldrsw	x9, [x22]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w8
	ldr	w9, [x19, x9, lsl #2]
	ldrsw	x8, [x19, x8, lsl #2]
	ldp	x10, x11, [x20]
	add	x10, x10, x23
	stp	w9, w24, [x10]
	add	x0, x11, x8, lsl #2
	add	x1, x10, #8
	bl	_list_add_head
	ldr	w8, [x22]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x9, [x22, #4]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19, x9, lsl #2]
	ldrsw	x8, [x19, w8, sxtw #2]
	ldp	x10, x11, [x20]
	add	x10, x10, x23
	stp	w9, w24, [x10, #12]
	add	x0, x11, x8, lsl #2
	add	x1, x10, #20
	bl	_list_add_head
	ldr	w8, [x22, #4]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldursw	x9, [x22, #-4]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19, x9, lsl #2]
	ldrsw	x8, [x19, w8, sxtw #2]
	ldp	x10, x11, [x20]
	add	x10, x10, x23
	stp	w9, w24, [x10, #24]
	add	x0, x11, x8, lsl #2
	add	x1, x10, #32
	bl	_list_add_head
	b	LBB0_6
LBB0_13:
Lloh2:
	adrp	x21, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh4:
	adrp	x21, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _D3D_OK@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x21]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.no_dead_strip	_init_edge_face_map
.subsections_via_symbols
