	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_ptr_to_struct
_fix_ptr_to_struct:                     ## @fix_ptr_to_struct
	.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	%rdi, %r14
	leaq	L_.str.3(%rip), %rdi
	callq	_lookupname
	testq	%rax, %rax
	je	LBB0_31
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_TYPEDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_lookupname
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	movq	_STRUCT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
## %bb.5:
	movq	32(%rax), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_POINTER@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_lookupname
	testq	%rax, %rax
	je	LBB0_31
## %bb.18:
	movq	(%rax), %rcx
	movq	_STRUCT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_31
## %bb.19:
	movq	32(%rax), %r13
	testq	%r13, %r13
	je	LBB0_31
## %bb.20:
	leaq	L_.str.2(%rip), %r12
	movq	_POINTER@GOTPCREL(%rip), %r15
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r13)
	leaq	L_.str(%rip), %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_STRUCT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %r13
	testq	%r13, %r13
	je	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 24(%rax)
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	cmpq	(%rsi), %rcx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_FORWARD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%rax), %rdi
	movq	%r15, %rsi
	callq	_streq
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rcx
	movl	$3, %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_debug
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$40, %edi
	callq	_xcalloc
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, (%rsi)
	movq	%rdx, 16(%rax)
	movq	%rbx, 8(%rax)
	jmp	LBB0_14
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r13)
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r13), %r13
	testq	%r13, %r13
	je	LBB0_31
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	callq	_streq
	testl	%eax, %eax
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	$0, 24(%rax)
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	_STRUCT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_FORWARD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_30
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	24(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_streq
	testl	%eax, %eax
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%r13), %rcx
	movl	$3, %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_debug
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$40, %edi
	callq	_xcalloc
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movslq	(%r14), %rdx
	leal	1(%rdx), %ecx
	movl	%ecx, (%r14)
	movq	%rdx, 16(%rax)
	movq	%rbx, 8(%rax)
	jmp	LBB0_29
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmem"

L_.str.1:                               ## @.str.1
	.asciz	"id_space"

L_.str.2:                               ## @.str.2
	.asciz	"is_vmem"

L_.str.3:                               ## @.str.3
	.asciz	"vmem_t"

	.comm	_TYPEDEF,8,3                    ## @TYPEDEF
	.comm	_STRUCT,8,3                     ## @STRUCT
	.comm	_POINTER,8,3                    ## @POINTER
	.comm	_FORWARD,8,3                    ## @FORWARD
L_.str.4:                               ## @.str.4
	.asciz	"Fixed %s->%s => ptr struct vmem bug\n"

	.no_dead_strip	_fix_ptr_to_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_ptr_to_struct
_fix_ptr_to_struct:                     ; @fix_ptr_to_struct
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_lookupname
	cbz	x0, LBB0_28
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _TYPEDEF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TYPEDEF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lookupname
Lloh7:
	adrp	x26, _STRUCT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _STRUCT@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x24, [x0, #32]
	cbz	x24, LBB0_6
; %bb.5:
	mov	x21, #0
Lloh9:
	adrp	x25, _POINTER@GOTPAGE
Lloh10:
	ldr	x25, [x25, _POINTER@GOTPAGEOFF]
Lloh11:
	adrp	x27, _FORWARD@GOTPAGE
Lloh12:
	ldr	x27, [x27, _FORWARD@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
Lloh15:
	adrp	x23, l_.str.4@PAGE
Lloh16:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_6:
	mov	x21, #0
LBB0_7:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lookupname
	cbz	x0, LBB0_28
; %bb.8:
	ldr	x8, [x0]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.9:
	ldr	x27, [x0, #32]
	cbz	x27, LBB0_28
; %bb.10:
Lloh19:
	adrp	x22, l_.str.2@PAGE
Lloh20:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh21:
	adrp	x28, _POINTER@GOTPAGE
Lloh22:
	ldr	x28, [x28, _POINTER@GOTPAGEOFF]
Lloh23:
	adrp	x24, _FORWARD@GOTPAGE
Lloh24:
	ldr	x24, [x24, _FORWARD@GOTPAGEOFF]
Lloh25:
	adrp	x23, l_.str@PAGE
Lloh26:
	add	x23, x23, l_.str@PAGEOFF
Lloh27:
	adrp	x25, l_.str.1@PAGE
Lloh28:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x21, [x24]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_7
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	ldr	x10, [x26]
	ldr	x11, [x27]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x8, #24]
	mov	x1, x22
	bl	_streq
	cbz	w0, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x3, [x24, #8]
	mov	w0, #3
	mov	x1, x23
	mov	x2, x22
	bl	_debug
	cbnz	x21, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #40
	bl	_xcalloc
	mov	x21, x0
	ldr	x8, [x25]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	stp	x20, x9, [x0, #8]
	str	x8, [x0]
	b	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	str	x21, [x27]
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x27, [x27, #16]
	cbz	x27, LBB0_28
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27, #8]
	mov	x1, x22
	bl	_streq
	cbz	w0, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x8]
	ldr	x10, [x28]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	ldr	x10, [x26]
	ldr	x11, [x24]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x8, #24]
	mov	x1, x23
	bl	_streq
	cbz	w0, LBB0_20
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x3, [x27, #8]
	mov	w0, #3
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x25
	bl	_debug
	cbnz	x21, LBB0_19
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #40
	bl	_xcalloc
	mov	x21, x0
	ldr	x8, [x28]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	stp	x20, x9, [x0, #8]
	str	x8, [x0]
	b	LBB0_19
LBB0_28:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmem"

l_.str.1:                               ; @.str.1
	.asciz	"id_space"

l_.str.2:                               ; @.str.2
	.asciz	"is_vmem"

l_.str.3:                               ; @.str.3
	.asciz	"vmem_t"

	.comm	_TYPEDEF,8,3                    ; @TYPEDEF
	.comm	_STRUCT,8,3                     ; @STRUCT
	.comm	_POINTER,8,3                    ; @POINTER
	.comm	_FORWARD,8,3                    ; @FORWARD
l_.str.4:                               ; @.str.4
	.asciz	"Fixed %s->%s => ptr struct vmem bug\n"

	.no_dead_strip	_fix_ptr_to_struct
.subsections_via_symbols
