	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_mem
_register_mem:                          ## @register_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdx, %rbx
	movq	_T4_STAG_UNSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	movl	12(%rdx), %r11d
	movl	44(%rdx), %r8d
	movq	_FW_RI_STAG_NSMR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	testl	%r11d, %r11d
	je	LBB0_1
## %bb.2:
	movl	40(%rbx), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r11d
LBB0_3:
	movl	36(%rbx), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %r12d
	movl	28(%rbx), %r13d
	addl	$-12, %eax
	movl	20(%rbx), %r14d
	movl	8(%rbx), %r10d
	movl	16(%rbx), %r15d
	leaq	-44(%rbp), %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$1, %ecx
	pushq	%r10
	pushq	$0
	pushq	%r15
	pushq	%r14
	pushq	%rax
	pushq	%r11
	pushq	%r13
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_write_tpt_entry
	addq	$80, %rsp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_finish_mem_reg
	movl	%eax, %r15d
	movl	$0, %eax
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	24(%rbx), %esi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movq	(%rbx), %r8
	movl	8(%rbx), %r9d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dereg_mem
	movq	$0, (%rbx)
	movl	%r15d, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_STAG_UNSET,4,2              ## @T4_STAG_UNSET
	.comm	_FW_RI_STAG_NSMR,4,2            ## @FW_RI_STAG_NSMR
	.no_dead_strip	_register_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_mem
_register_mem:                          ; @register_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _T4_STAG_UNSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4_STAG_UNSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-36]
	ldr	w4, [x2, #44]
Lloh3:
	adrp	x8, _FW_RI_STAG_NSMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_RI_STAG_NSMR@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	ldr	w8, [x2, #12]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w6, [x19, #40]
	b	LBB0_3
LBB0_2:
	mov	w6, #0
	mov	w8, #-1
LBB0_3:
	ldp	w9, w7, [x19, #32]
	ldr	w10, [x19, #28]
	sub	w11, w3, #12
	ldp	w13, w12, [x19, #16]
	ldr	w14, [x19, #8]
	str	w14, [sp, #32]
	str	xzr, [sp, #24]
	stp	w12, w13, [sp, #16]
	sub	x2, x29, #36
	stp	w8, w11, [sp, #8]
	stp	w9, w10, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #1
	bl	_write_tpt_entry
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldur	w1, [x29, #-36]
	mov	x0, x19
	bl	_finish_mem_reg
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldp	w2, w1, [x19, #20]
	ldr	w3, [x19, #16]
	ldr	x4, [x19]
	ldr	w5, [x19, #8]
	mov	x0, x20
	bl	_dereg_mem
	str	xzr, [x19]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_STAG_UNSET,4,2              ; @T4_STAG_UNSET
	.comm	_FW_RI_STAG_NSMR,4,2            ; @FW_RI_STAG_NSMR
	.no_dead_strip	_register_mem
.subsections_via_symbols
