	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_open_object            ## -- Begin function _libelf_open_object
	.p2align	4, 0x90
__libelf_open_object:                   ## @_libelf_open_object
	.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
	movq	%rsi, %r12
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	sete	%al
	movq	_ELF_C_RDWR@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	sete	%cl
	orb	%al, %cl
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %r15
	cmpq	%rsi, (%r15)
	movl	%edx, %ebx
	movl	%edi, %r14d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	leaq	-72(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	-64(%rbp), %r13d
	movq	-72(%rbp), %rbx
	movq	%rbx, -56(%rbp)
	movl	%r13d, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	%r13d, %edi
	callq	_S_ISCHR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r13d, %edi
	callq	_S_ISFIFO
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %edi
	callq	_S_ISSOCK
	testl	%eax, %eax
	je	LBB0_22
LBB0_5:
	cmpq	%r12, (%r15)
	jne	LBB0_10
## %bb.6:
	xorl	%eax, %eax
	callq	__libelf_allocate_elf
	testq	%rax, %rax
	je	LBB0_31
## %bb.7:
	movq	%rax, %rbx
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__libelf_init_elf
	movq	_byteorder@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIBELF_PRIVATE
	movl	%eax, 24(%rbx)
	movl	%r14d, (%rbx)
	movq	%r12, 16(%rbx)
	movl	%r13d, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	jne	LBB0_32
## %bb.8:
	movq	_LIBELF_F_SPECIAL_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_32
LBB0_9:
	movq	_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LIBELF_SET_ERROR
LBB0_31:
	xorl	%ebx, %ebx
LBB0_32:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r13d, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.12:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	%rax, %r13
	movl	%r14d, %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpq	%rbx, %rax
	jne	LBB0_29
## %bb.14:
	movq	_LIBELF_F_RAWFILE_MALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_18
LBB0_16:
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	__libelf_read_special_file
	testq	%rax, %rax
	je	LBB0_31
## %bb.17:
	movq	%rax, %r13
	movq	_LIBELF_F_RAWFILE_MALLOC@GOTPCREL(%rip), %rax
	movq	_LIBELF_F_SPECIAL_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	-56(%rbp), %rbx
LBB0_18:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	__libelf_memory
	testq	%rax, %rax
	je	LBB0_27
## %bb.19:
	movq	%rax, %rbx
	movq	_ELF_C_RDWR@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_23
## %bb.20:
	movq	8(%rbx), %rax
	movq	_ELF_K_AR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	callq	_elf_end
LBB0_22:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	orl	%r15d, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	%r12, 16(%rbx)
	jmp	LBB0_32
LBB0_24:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	jmp	LBB0_32
LBB0_27:
	movq	_LIBELF_F_RAWFILE_MALLOC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_LIBELF_F_RAWFILE_MMAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%edi, %edi
	testl	%r15d, %eax
	setne	%dil
	callq	_assert
	testl	%r15d, (%rbx)
	jne	LBB0_30
	jmp	LBB0_31
LBB0_29:
	movq	_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LIBELF_SET_ERROR
LBB0_30:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_READ,8,3                 ## @ELF_C_READ
	.comm	_ELF_C_RDWR,8,3                 ## @ELF_C_RDWR
	.comm	_ELF_C_WRITE,8,3                ## @ELF_C_WRITE
	.comm	_IO,4,2                         ## @IO
	.comm	_errno,4,2                      ## @errno
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELF_K_ELF,4,2                  ## @ELF_K_ELF
	.comm	_byteorder,4,2                  ## @byteorder
	.comm	_LIBELF_F_SPECIAL_FILE,4,2      ## @LIBELF_F_SPECIAL_FILE
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_LIBELF_F_RAWFILE_MALLOC,4,2    ## @LIBELF_F_RAWFILE_MALLOC
	.comm	_LIBELF_F_RAWFILE_MMAP,4,2      ## @LIBELF_F_RAWFILE_MMAP
	.comm	_ELF_K_AR,8,3                   ## @ELF_K_AR
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_open_object            ; -- Begin function _libelf_open_object
	.p2align	2
__libelf_open_object:                   ; @_libelf_open_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
Lloh3:
	adrp	x24, _ELF_C_RDWR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ELF_C_RDWR@GOTPAGEOFF]
	ldr	x8, [x24]
	ccmp	x8, x1, #4, ne
Lloh5:
	adrp	x25, _ELF_C_WRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ELF_C_WRITE@GOTPAGEOFF]
	ldr	x8, [x25]
	ccmp	x8, x1, #4, ne
	cset	w0, eq
	bl	_assert
	add	x1, sp, #8
	mov	x0, x20
	bl	_fstat
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	w23, [sp, #16]
	ldr	x22, [sp, #8]
	str	x22, [sp, #24]
	mov	x0, x23
	bl	_S_ISREG
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_S_ISCHR
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x23
	bl	_S_ISFIFO
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_S_ISSOCK
	cbz	w0, LBB0_21
LBB0_5:
	ldr	x8, [x25]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.6:
	bl	__libelf_allocate_elf
	mov	x21, x0
	cbz	x0, LBB0_27
; %bb.7:
Lloh7:
	adrp	x8, _ELF_K_ELF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ELF_K_ELF@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	__libelf_init_elf
Lloh10:
	adrp	x8, _byteorder@GOTPAGE
Lloh11:
	ldr	x8, [x8, _byteorder@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_LIBELF_PRIVATE
	str	w0, [x21, #24]
	str	w20, [x21]
	str	x19, [x21, #16]
	mov	x0, x23
	bl	_S_ISREG
	cbnz	x0, LBB0_27
; %bb.8:
Lloh13:
	adrp	x8, _LIBELF_F_SPECIAL_FILE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LIBELF_F_SPECIAL_FILE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	b	LBB0_27
LBB0_9:
Lloh16:
	adrp	x8, _IO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	b	LBB0_25
LBB0_10:
	mov	x0, x23
	bl	_S_ISREG
	cbz	x0, LBB0_15
; %bb.11:
	cbz	x22, LBB0_21
; %bb.12:
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_23
; %bb.13:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_read
	cmp	x0, x22
	b.ne	LBB0_29
; %bb.14:
Lloh22:
	adrp	x8, _LIBELF_F_RAWFILE_MALLOC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LIBELF_F_RAWFILE_MALLOC@GOTPAGEOFF]
Lloh24:
	ldr	w25, [x8]
	b	LBB0_17
LBB0_15:
	add	x1, sp, #24
	mov	x0, x20
	bl	__libelf_read_special_file
	cbz	x0, LBB0_26
; %bb.16:
	mov	x23, x0
Lloh25:
	adrp	x8, _LIBELF_F_RAWFILE_MALLOC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LIBELF_F_RAWFILE_MALLOC@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _LIBELF_F_SPECIAL_FILE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _LIBELF_F_SPECIAL_FILE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w25, w9, w8
	ldr	x22, [sp, #24]
LBB0_17:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	__libelf_memory
	cbz	x0, LBB0_28
; %bb.18:
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x8, x19
	b.ne	LBB0_22
; %bb.19:
	ldr	x8, [x21, #8]
Lloh31:
	adrp	x9, _ELF_K_AR@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ELF_K_AR@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x21
	bl	_elf_end
LBB0_21:
Lloh34:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
	ldr	w8, [x21, #4]
	orr	w8, w8, w25
	stp	w20, w8, [x21]
	str	x19, [x21, #16]
	b	LBB0_27
LBB0_23:
Lloh36:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	mov	w1, #0
LBB0_25:
	bl	_LIBELF_SET_ERROR
LBB0_26:
	mov	x21, #0
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
Lloh38:
	adrp	x19, _LIBELF_F_RAWFILE_MALLOC@GOTPAGE
Lloh39:
	ldr	x19, [x19, _LIBELF_F_RAWFILE_MALLOC@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh40:
	adrp	x9, _LIBELF_F_RAWFILE_MMAP@GOTPAGE
Lloh41:
	ldr	x9, [x9, _LIBELF_F_RAWFILE_MMAP@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w25
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19]
	tst	w8, w25
	b.ne	LBB0_30
	b	LBB0_26
LBB0_29:
Lloh43:
	adrp	x8, _IO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IO@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_LIBELF_SET_ERROR
LBB0_30:
	mov	x0, x23
	bl	_free
	b	LBB0_26
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_READ,8,3                 ; @ELF_C_READ
	.comm	_ELF_C_RDWR,8,3                 ; @ELF_C_RDWR
	.comm	_ELF_C_WRITE,8,3                ; @ELF_C_WRITE
	.comm	_IO,4,2                         ; @IO
	.comm	_errno,4,2                      ; @errno
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELF_K_ELF,4,2                  ; @ELF_K_ELF
	.comm	_byteorder,4,2                  ; @byteorder
	.comm	_LIBELF_F_SPECIAL_FILE,4,2      ; @LIBELF_F_SPECIAL_FILE
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_LIBELF_F_RAWFILE_MALLOC,4,2    ; @LIBELF_F_RAWFILE_MALLOC
	.comm	_LIBELF_F_RAWFILE_MMAP,4,2      ; @LIBELF_F_RAWFILE_MMAP
	.comm	_ELF_K_AR,8,3                   ; @ELF_K_AR
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
.subsections_via_symbols
