	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_ptg_add_mv_ptype
_ice_ptg_add_mv_ptype:                  ## @ice_ptg_add_mv_ptype
	.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
	movq	_ICE_XLT1_CNT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	%esi, %edx
	leaq	(%rdx,%rdx,2), %rdx
	movq	16(%rax,%rdx,8), %rax
	movq	%rcx, %r14
	shlq	$4, %r14
	cmpl	$0, 8(%rax,%r14)
	movq	_ICE_DEFAULT_PTG@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	%rcx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_ice_ptg_find_ptype
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	-64(%rbp), %rcx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rcx
	je	LBB0_11
## %bb.7:
	movq	_ICE_DEFAULT_PTG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%rax, %r13
	callq	_ice_ptg_remove_ptype
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%r13), %rcx
LBB0_9:
	cmpq	%rsi, %rcx
	je	LBB0_11
## %bb.10:
	movq	(%r15), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rax,%rdx,8), %rcx
	movq	16(%rax,%rdx,8), %r11
	movq	(%r11,%r14), %r8
	movslq	%r12d, %r10
	movq	%r10, %rdi
	shlq	$4, %rdi
	leaq	(%rcx,%rdi), %r9
	movq	%r8, 8(%rcx,%rdi)
	movq	%r9, (%r11,%r14)
	movq	%rsi, (%rcx,%rdi)
	movq	(%rax,%rdx,8), %rax
	movq	%rsi, (%rax,%r10,8)
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_XLT1_CNT,4,2               ## @ICE_XLT1_CNT
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_DEFAULT_PTG,8,3            ## @ICE_DEFAULT_PTG
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.no_dead_strip	_ice_ptg_add_mv_ptype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_ptg_add_mv_ptype
_ice_ptg_add_mv_ptype:                  ; @ice_ptg_add_mv_ptype
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x8, _ICE_XLT1_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_XLT1_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.le	LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	mov	w9, #24
	umaddl	x8, w1, w9, x8
	ldr	x8, [x8, #16]
	add	x8, x8, x3, lsl #4
	ldr	w8, [x8, #8]
Lloh3:
	adrp	x23, _ICE_DEFAULT_PTG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ICE_DEFAULT_PTG@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	w8, #0
	ccmp	x9, x3, #4, eq
	b.ne	LBB0_9
; %bb.2:
	mov	x20, x2
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_ice_ptg_find_ptype
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x3, [sp, #8]
	cmp	x3, x19
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x23]
	cmp	x3, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_ice_ptg_remove_ptype
	ldr	x3, [x23]
LBB0_6:
	cmp	x3, x19
	b.ne	LBB0_12
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w0, #0
	mov	w8, w22
	ldr	x9, [x21]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldp	x12, x9, [x8, #8]
	lsl	x10, x19, #4
	ldr	x11, [x9, x10]
	ldr	x8, [x8]
	add	x12, x12, w20, sxtw #4
	str	x12, [x9, x10]
	stp	x19, x11, [x12]
	str	x19, [x8, w20, sxtw #3]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_XLT1_CNT,4,2               ; @ICE_XLT1_CNT
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_DEFAULT_PTG,8,3            ; @ICE_DEFAULT_PTG
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.no_dead_strip	_ice_ptg_add_mv_ptype
.subsections_via_symbols
