	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_allocate_elf           ## -- Begin function _libelf_allocate_elf
	.p2align	4, 0x90
__libelf_allocate_elf:                  ## @_libelf_allocate_elf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$80, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, (%rbx)
	movq	$0, 72(%rbx)
	movq	_ELFDATANONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_ELFCLASSNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_ELF_C_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$-1, 4(%rbx)
	movq	$0, 48(%rbx)
	movq	_ELF_K_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_version@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIBELF_PRIVATE
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_3
LBB0_1:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LIBELF_SET_ERROR
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_errno,4,2                      ## @errno
	.comm	_ELFDATANONE,4,2                ## @ELFDATANONE
	.comm	_ELFCLASSNONE,4,2               ## @ELFCLASSNONE
	.comm	_ELF_C_NULL,4,2                 ## @ELF_C_NULL
	.comm	_ELF_K_NONE,4,2                 ## @ELF_K_NONE
	.comm	_version,4,2                    ## @version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _libelf_allocate_elf
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__libelf_allocate_elf
	.p2align	2
__libelf_allocate_elf:                  ; @_libelf_allocate_elf
	.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	w0, #80
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [x19, #72]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh2:
	adrp	x8, _ELFDATANONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ELFDATANONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ELFCLASSNONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ELFCLASSNONE@GOTPAGEOFF]
	str	w8, [x19, #64]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _ELF_C_NULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ELF_C_NULL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	str	xzr, [x19, #48]
Lloh11:
	adrp	x8, _ELF_K_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ELF_K_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
Lloh14:
	adrp	x8, _version@GOTPAGE
Lloh15:
	ldr	x8, [x8, _version@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_LIBELF_PRIVATE
	str	w0, [x19, #12]
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_LIBELF_SET_ERROR
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_errno,4,2                      ; @errno
	.comm	_ELFDATANONE,4,2                ; @ELFDATANONE
	.comm	_ELFCLASSNONE,4,2               ; @ELFCLASSNONE
	.comm	_ELF_C_NULL,4,2                 ; @ELF_C_NULL
	.comm	_ELF_K_NONE,4,2                 ; @ELF_K_NONE
	.comm	_version,4,2                    ; @version
.subsections_via_symbols
