	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_elf_version
	movq	_EV_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_2:
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_4:
	movq	_ETF_ELF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movl	%eax, 72(%rbx)
	movq	_ELFCLASSNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movl	%eax, 64(%rbx)
	movq	_ELFDATANONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%rbx)
	movq	$0, 48(%rbx)
	leaq	40(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	36(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	32(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	28(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	24(%rbx), %rdi
	callq	_STAILQ_INIT
	leaq	20(%rbx), %rdi
	callq	_STAILQ_INIT
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_TAILQ_INIT
	xorl	%eax, %eax
	callq	_ELFTC_GETPROGNAME
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rdi
	cmovneq	%rax, %rdi
	movq	%rdi, 8(%rbx)
	leaq	L_.str.3(%rip), %rsi
	callq	_strrcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_strip_main
	jmp	LBB0_12
LBB0_6:
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strrcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_mcs_main
	jmp	LBB0_12
LBB0_8:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strrcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	8(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strrcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	callq	_warnx
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_elfcopy_main
LBB0_12:
	movq	%rbx, %rdi
	callq	_free_sec_add
	movq	%rbx, %rdi
	callq	_free_sec_act
	movq	%rbx, %rdi
	callq	_free
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_EV_NONE,8,3                    ## @EV_NONE
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ELF library initialization failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"calloc failed"

	.comm	_ETF_ELF,4,2                    ## @ETF_ELF
	.comm	_ELFCLASSNONE,4,2               ## @ELFCLASSNONE
	.comm	_ELFDATANONE,4,2                ## @ELFDATANONE
L_.str.2:                               ## @.str.2
	.asciz	"elfcopy"

L_.str.3:                               ## @.str.3
	.asciz	"strip"

L_.str.4:                               ## @.str.4
	.asciz	"mcs"

L_.str.5:                               ## @.str.5
	.asciz	"objcopy"

L_.str.6:                               ## @.str.6
	.asciz	"program mode not known, defaulting to elfcopy"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.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 main
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_elf_version
Lloh3:
	adrp	x8, _EV_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x22, _EXIT_FAILURE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EXIT_FAILURE@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x22]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_2:
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
Lloh12:
	adrp	x8, _ETF_ELF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETF_ELF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #72]
Lloh15:
	adrp	x9, _ELFCLASSNONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ELFCLASSNONE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #64]
Lloh18:
	adrp	x8, _ELFDATANONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ELFDATANONE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, w9, [x21, #56]
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	str	xzr, [x21, #48]
	add	x0, x21, #40
	bl	_STAILQ_INIT
	add	x0, x21, #36
	bl	_STAILQ_INIT
	add	x0, x21, #32
	bl	_STAILQ_INIT
	add	x0, x21, #28
	bl	_STAILQ_INIT
	add	x0, x21, #24
	bl	_STAILQ_INIT
	add	x0, x21, #20
	bl	_STAILQ_INIT
	add	x0, x21, #16
	bl	_TAILQ_INIT
	bl	_ELFTC_GETPROGNAME
Lloh23:
	adrp	x8, l_.str.2@PAGE
Lloh24:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	str	x0, [x21, #8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strrcmp
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_strip_main
	b	LBB0_12
LBB0_6:
	ldr	x0, [x21, #8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strrcmp
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mcs_main
	b	LBB0_12
LBB0_8:
	ldr	x0, [x21, #8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strrcmp
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x21, #8]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strrcmp
	cbz	x0, LBB0_11
; %bb.10:
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_elfcopy_main
LBB0_12:
	mov	x0, x21
	bl	_free_sec_add
	mov	x0, x21
	bl	_free_sec_act
	mov	x0, x21
	bl	_free
Lloh35:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_EV_NONE,8,3                    ; @EV_NONE
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ELF library initialization failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"calloc failed"

	.comm	_ETF_ELF,4,2                    ; @ETF_ELF
	.comm	_ELFCLASSNONE,4,2               ; @ELFCLASSNONE
	.comm	_ELFDATANONE,4,2                ; @ELFDATANONE
l_.str.2:                               ; @.str.2
	.asciz	"elfcopy"

l_.str.3:                               ; @.str.3
	.asciz	"strip"

l_.str.4:                               ; @.str.4
	.asciz	"mcs"

l_.str.5:                               ; @.str.5
	.asciz	"objcopy"

l_.str.6:                               ; @.str.6
	.asciz	"program mode not known, defaulting to elfcopy"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
