	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_print_object
_elf_print_object:                      ## @elf_print_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.1:
	movl	%eax, %ebx
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, %rdi
	callq	_elf_kind
	cmpl	$130, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_13:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_14:
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_11:
	movq	(%r14), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_elf_print_ar
	jmp	LBB0_12
LBB0_7:
	movq	_PRINT_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
LBB0_9:
	movq	%r14, %rdi
	callq	_elf_print_elf
LBB0_12:
	movq	24(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elf_end                        ## TAILCALL
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open %s failed"

	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
L_.str.1:                               ## @.str.1
	.asciz	"elf_begin() failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"Not an ELF file."

	.comm	_PRINT_FILENAME,4,2             ## @PRINT_FILENAME
L_.str.3:                               ## @.str.3
	.asciz	"\n%s:\n"

L_.str.4:                               ## @.str.4
	.asciz	"Internal: libelf returned unknown elf kind."

	.no_dead_strip	_elf_print_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_print_object
_elf_print_object:                      ; @elf_print_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_elf_begin
	str	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_elf_kind
	cmp	w0, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w0, #128
	b.ne	LBB0_13
; %bb.5:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	x1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_warn
LBB0_7:
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_elf_print_ar
	b	LBB0_12
LBB0_9:
	ldr	w8, [x19, #16]
Lloh12:
	adrp	x9, _PRINT_FILENAME@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRINT_FILENAME@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x1, [x19]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_11:
	mov	x0, x19
	bl	_elf_print_elf
LBB0_12:
	ldr	x0, [x19, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_elf_end
LBB0_13:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_warnx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open %s failed"

	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
l_.str.1:                               ; @.str.1
	.asciz	"elf_begin() failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"Not an ELF file."

	.comm	_PRINT_FILENAME,4,2             ; @PRINT_FILENAME
l_.str.3:                               ; @.str.3
	.asciz	"\n%s:\n"

l_.str.4:                               ; @.str.4
	.asciz	"Internal: libelf returned unknown elf kind."

	.no_dead_strip	_elf_print_object
.subsections_via_symbols
