	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ctf_common
_read_ctf_common:                       ## @read_ctf_common
	.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
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	testq	%rsi, %rsi
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rsi, %rcx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%r13, %rdx
	callq	_debug
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_version
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_terminate
LBB0_2:
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_elfterminate
LBB0_4:
	movq	%r12, %rdi
	callq	_elf_kind
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	movl	%ebx, (%rsp)
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_read_archive
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_read_file
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_elf_kind
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_terminate
LBB0_9:
	movq	%r12, %rdi
	callq	_elf_end
	movl	%r14d, %edi
	callq	_close
	movl	%ebx, %eax
	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	"Reading %s (label %s)\n"

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

	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"%s: Cannot open for reading"

	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
L_.str.3:                               ## @.str.3
	.asciz	"Cannot read"

L_.str.4:                               ## @.str.4
	.asciz	"%s: Unknown elf kind %d\n"

	.no_dead_strip	_read_ctf_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ctf_common
_read_ctf_common:                       ; @read_ctf_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x1, #0
	csel	x3, x8, x1, eq
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	bl	_debug
Lloh4:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_elf_version
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_terminate
LBB0_2:
Lloh12:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_elf_begin
	mov	x25, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_elfterminate
LBB0_4:
	mov	x0, x25
	bl	_elf_kind
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	bl	_read_archive
	mov	x20, x0
	b	LBB0_9
LBB0_7:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_read_file
	mov	x20, x0
	b	LBB0_9
LBB0_8:
	mov	x0, x25
	bl	_elf_kind
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_terminate
	mov	w20, #0
LBB0_9:
	mov	x0, x25
	bl	_elf_end
	mov	x0, x19
	bl	_close
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading %s (label %s)\n"

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

	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"%s: Cannot open for reading"

	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
l_.str.3:                               ; @.str.3
	.asciz	"Cannot read"

l_.str.4:                               ; @.str.4
	.asciz	"%s: Unknown elf kind %d\n"

	.no_dead_strip	_read_ctf_common
.subsections_via_symbols
