	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_elf
_handle_elf:                            ## @handle_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_elf_begin
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_elf_begin
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	movq	%rax, %r15
	leaq	-84(%rbp), %r13
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_elf_begin
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_30
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r15, %rdi
	callq	_elf_getarhdr
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_elf_kind
	movq	_ELF_K_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_31
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_elf_kind
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	-80(%rbp), %rsi
	callq	_gelf_getehdr
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -80(%rbp)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax
	movq	_ET_CORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_style@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_STYLE_BERKELEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_berkeley_header
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_23
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r13, %rdi
	callq	_berkeley_calc
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_elf_next
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_elf_end
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rsi
	jmp	LBB0_2
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_sysv_header
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_elf_nextscn
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_23
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%r15, %rdi
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdx
	callq	_sysv_calc
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_style@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_STYLE_BERKELEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_sysv_footer
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdx
	callq	_berkeley_footer
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_elf_next
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_elf_end
	jmp	LBB0_3
LBB0_30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_elf_end
	movl	%r12d, %edi
	callq	_close
	movq	_RETURN_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	%r15, %rdi
	callq	_elf_end
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_elf_end
	movl	%r12d, %edi
	callq	_close
	movq	_RETURN_DATAERR@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	leaq	-80(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_handle_core
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_elf_end
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_elf_end
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
	.comm	_ELF_K_NONE,8,3                 ## @ELF_K_NONE
	.comm	_RETURN_DATAERR,4,2             ## @RETURN_DATAERR
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: File format not recognized"

	.comm	_ET_CORE,8,3                    ## @ET_CORE
	.comm	_style,8,3                      ## @style
	.comm	_STYLE_BERKELEY,8,3             ## @STYLE_BERKELEY
L_.str.1:                               ## @.str.1
	.asciz	"ex"

	.comm	_RETURN_OK,4,2                  ## @RETURN_OK
	.no_dead_strip	_handle_elf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_elf
_handle_elf:                            ; @handle_elf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x1, x22
	mov	x2, #0
	bl	_elf_begin
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_elf_begin
	cbz	x0, LBB0_29
; %bb.1:
	mov	x24, x0
Lloh3:
	adrp	x27, _ELF_K_NONE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ELF_K_NONE@GOTPAGEOFF]
Lloh5:
	adrp	x28, _ELF_K_ELF@GOTPAGE
Lloh6:
	ldr	x28, [x28, _ELF_K_ELF@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
Lloh9:
	adrp	x22, _STYLE_BERKELEY@GOTPAGE
Lloh10:
	ldr	x22, [x22, _STYLE_BERKELEY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_warnx
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x20
	bl	_elf_begin
	mov	x24, x0
	cbz	x0, LBB0_29
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x24
	bl	_elf_getarhdr
	mov	x25, x0
	mov	x0, x24
	bl	_elf_kind
	ldr	x8, [x27]
	cmp	x0, x8
	ccmp	x25, #0, #0, eq
	b.eq	LBB0_30
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_elf_kind
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #16
	mov	x0, x24
	bl	_gelf_getehdr
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, _ET_CORE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ET_CORE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_33
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x8, _style@GOTPAGE
Lloh15:
	ldr	x8, [x8, _style@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_berkeley_header
	mov	x0, x24
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x24
	mov	x1, x26
	bl	_elf_nextscn
	mov	x26, x0
	cbz	x0, LBB0_22
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #12
	mov	x0, x26
	bl	_gelf_getshdr
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x0, sp, #12
	bl	_berkeley_calc
	b	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_elf_next
	mov	x26, x0
	mov	x0, x24
	bl	_elf_end
	mov	x1, x21
	cbz	x25, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_sysv_header
	mov	x0, x24
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	mov	x0, x24
	mov	x1, x26
	bl	_elf_nextscn
	mov	x26, x0
	cbz	x0, LBB0_22
LBB0_20:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #12
	mov	x0, x26
	bl	_gelf_getshdr
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x24
	bl	_sysv_calc
	b	LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _style@GOTPAGE
Lloh18:
	ldr	x8, [x8, _style@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x25, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
	mov	x0, x21
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_sysv_footer
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, #0
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_berkeley_footer
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_elf_next
	mov	x26, x0
	mov	x0, x24
	bl	_elf_end
	b	LBB0_3
LBB0_29:
	mov	x0, x20
	bl	_elf_end
	mov	x0, x19
	bl	_close
Lloh22:
	adrp	x8, _RETURN_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RETURN_OK@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:
	mov	x0, x24
	bl	_elf_end
	mov	x0, x20
	bl	_elf_end
	mov	x0, x19
	bl	_close
Lloh24:
	adrp	x8, _RETURN_DATAERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RETURN_DATAERR@GOTPAGEOFF]
LBB0_31:
	ldr	w21, [x8]
LBB0_32:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x24
	bl	_handle_core
	mov	x21, x0
	mov	x0, x24
	bl	_elf_end
	mov	x0, x20
	bl	_elf_end
	mov	x0, x19
	bl	_close
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
	.comm	_ELF_K_NONE,8,3                 ; @ELF_K_NONE
	.comm	_RETURN_DATAERR,4,2             ; @RETURN_DATAERR
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: File format not recognized"

	.comm	_ET_CORE,8,3                    ; @ET_CORE
	.comm	_style,8,3                      ; @style
	.comm	_STYLE_BERKELEY,8,3             ; @STYLE_BERKELEY
l_.str.1:                               ; @.str.1
	.asciz	"ex"

	.comm	_RETURN_OK,4,2                  ; @RETURN_OK
	.no_dead_strip	_handle_elf
.subsections_via_symbols
