	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openimage                      ## -- Begin function openimage
	.p2align	4, 0x90
_openimage:                             ## @openimage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	$1024, %edi                     ## imm = 0x400
	callq	_malloc
	movq	%rax, %rbx
	movl	$1024, %edi                     ## imm = 0x400
	callq	_malloc
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movl	$1024, %edi                     ## imm = 0x400
	callq	_malloc
	movq	32(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rax, (%rcx)
	movq	_read_foo@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	%r14d, 24(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_foo,4,2                   ## @read_foo
	.comm	_IMGFILE,4,2                    ## @IMGFILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openimage                      ; -- Begin function openimage
	.p2align	2
_openimage:                             ; @openimage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #1024
	bl	_malloc
	mov	x20, x0
	mov	w0, #1024
	bl	_malloc
	str	x0, [x20, #32]
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	mov	w0, #1024
	bl	_malloc
	ldr	x8, [x20, #32]
	str	x0, [x8, #8]
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	ldr	x8, [x20, #32]
	ldr	x9, [x8, #8]
	str	x8, [x9]
Lloh0:
	adrp	x9, _read_foo@GOTPAGE
Lloh1:
	ldr	x9, [x9, _read_foo@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8]
	str	w19, [x20, #24]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_read_foo,4,2                   ; @read_foo
	.comm	_IMGFILE,4,2                    ; @IMGFILE
.subsections_via_symbols
