	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_elf_program_header
_copy_elf_program_header:               ## @copy_elf_program_header
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_elf_elfheader
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -80(%rbp)
	movq	%rbx, %rdi
	callq	_elf_elfheader
	movl	(%rax), %r14d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_elf_tdata
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_34
## %bb.1:
	movq	8(%rax), %r13
	leaq	-80(%rbp), %rcx
	movq	_PT_NULL@GOTPCREL(%rip), %rdx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, 28(%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	addq	$32, %r14
	movq	%r14, %rcx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	_PT_NULL@GOTPCREL(%rip), %rdx
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addq	$40, %r13
	cmpl	%r14d, %ebx
	je	LBB0_33
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	movq	(%r13), %rax
	cmpq	(%rdx), %rax
	je	LBB0_32
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_elf_section_data
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ELF_IS_SECTION_IN_SEGMENT_FILE
	testq	%r15, %r15
	movq	%r15, %rcx
	cmoveq	%rbx, %rcx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovneq	%rcx, %r15
	setne	%dl
	addl	%edx, %r12d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	leal	72(,%r12,8), %esi
	movl	$80, %eax
	cmovel	%eax, %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_bfd_zalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	$0, 32(%rax)
	movq	(%r13), %r10
	movq	%r10, (%rax)
	movl	36(%r13), %eax
	movl	%eax, 72(%r14)
	movl	$1, 8(%r14)
	movq	24(%r13), %r8
	movq	%r8, 64(%r14)
	movl	$1, 12(%r14)
	movl	32(%r13), %edx
	movl	%edx, 56(%r14)
	movl	$1, 16(%r14)
	movq	$0, 48(%r14)
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rdx
	setge	%r9b
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%r9b, %esi
	movl	%esi, 20(%r14)
	movl	$0, 24(%r14)
	movq	_PT_LOAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, %r10
	je	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rcx), %rbx
	cmpq	%rbx, %rdi
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	16(%r13), %rdi
	movl	16(%rcx), %eax
	imull	(%rcx), %eax
	addq	%rax, %rbx
	cmpq	%rbx, %rdi
	setge	%dil
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%dil, %eax
	movl	%eax, 24(%r14)
	movq	%rdx, %rbx
	testb	%al, %al
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, %r10
	cmoveq	%rbx, %rdx
	testb	%dil, %dil
	jne	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	%r9b, %r9b
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %ecx
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	subq	%r8, %rax
	movq	%rax, 48(%r14)
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=2
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_31
LBB0_28:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_elf_section_data
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ELF_IS_SECTION_IN_SEGMENT_FILE
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	movl	(%r15), %eax
	movq	40(%r14), %rcx
	movl	%ebx, %edx
	incl	%ebx
	movl	%eax, (%rcx,%rdx,4)
	cmpl	%r12d, %ebx
	jne	LBB0_30
	jmp	LBB0_31
LBB0_33:
	movq	-80(%rbp), %rbx
LBB0_34:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_elf_tdata
	movq	%rbx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_35:
	movq	(%rax), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_PT_NULL,8,3                    ## @PT_NULL
	.comm	_PT_LOAD,8,3                    ## @PT_LOAD
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_copy_elf_program_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_elf_program_header
_copy_elf_program_header:               ; @copy_elf_program_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	bl	_elf_elfheader
	mov	x20, x0
	str	xzr, [sp, #40]
	mov	x0, x19
	bl	_elf_elfheader
	ldr	w21, [x0]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_elf_tdata
	cbz	w21, LBB0_31
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w27, #0
	ldr	x22, [x0, #8]
	add	x20, sp, #40
Lloh3:
	adrp	x28, _PT_NULL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PT_NULL@GOTPAGEOFF]
	movi.2s	v8, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w19, [x24, #28]
	ldp	x20, x8, [sp, #24]              ; 16-byte Folded Reload
	str	x24, [x8]
	mov	x25, x21
	mov	x21, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	add	x22, x22, #40
	cmp	w27, w21
	b.eq	LBB0_30
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
	ldr	x8, [x22]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x24, [x8]
	cbz	x24, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	mov	w19, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_elf_section_data
	mov	x1, x22
	bl	_ELF_IS_SECTION_IN_SEGMENT_FILE
	cmp	x23, #0
	csel	x8, x24, x23, eq
	cmp	x0, #0
	csel	x23, x23, x8, eq
	cinc	w19, w19, ne
	ldr	x24, [x24, #8]
	cbnz	x24, LBB0_7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #0
	mov	x23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w19, #3
	add	w8, w8, #72
	cmp	w19, #0
	mov	w9, #80
	csel	w1, w9, w8, eq
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_bfd_zalloc
	cbz	x0, LBB0_33
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	x13, x0
	str	xzr, [x13, #32]!
	ldp	x9, x11, [x22]
	str	x9, [x0]
	ldr	w8, [x22, #36]
	str	w8, [x0, #72]
	ldr	x8, [x22, #24]
	str	x8, [x0, #64]
	str	d8, [x0, #8]
	ldr	w10, [x22, #32]
	str	w10, [x0, #56]
	mov	w10, #1
	str	w10, [x0, #16]
	str	xzr, [x0, #48]
	cbz	x11, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	ldr	x16, [sp]                       ; 8-byte Folded Reload
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x22, #16]
	ldr	x16, [sp]                       ; 8-byte Folded Reload
	ldr	x12, [x16, #8]
	cmp	x10, x12
	cset	w10, ge
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	w10, wzr, [x24, #20]
Lloh5:
	adrp	x12, _PT_LOAD@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PT_LOAD@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	str	x13, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x25, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x12
	b.eq	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x16, #24]
	cmp	x11, x13
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x22, #16]
	add	x11, x14, x11
	ldr	w14, [x16]
	ldr	w15, [x16, #16]
	mul	w14, w15, w14
	add	x13, x13, x14
	cmp	x11, x13
	cset	w11, ge
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x12
	cset	w9, eq
	str	w11, [x24, #24]
Lloh8:
	adrp	x12, _TRUE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	tst	w9, w11
	csel	x25, x12, x25, ne
	tbnz	w11, #0, LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w10, #0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x23, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23, #16]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x9, w9
	sub	x8, x9, x8
	str	x8, [x24, #48]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x21
	mov	x21, x25
	cbz	w19, LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x23, LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_2
LBB0_28:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_elf_section_data
	mov	x1, x22
	bl	_ELF_IS_SECTION_IN_SEGMENT_FILE
	cbz	x0, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	ldr	w8, [x23]
	ldr	x9, [x24, #40]
	str	w8, [x9, w20, uxtw #2]
	add	w8, w20, #1
	mov	x20, x8
	cmp	w8, w19
	b.ne	LBB0_27
	b	LBB0_2
LBB0_30:
	ldr	x19, [sp, #40]
	b	LBB0_32
LBB0_31:
	mov	x19, #0
LBB0_32:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_elf_tdata
	str	x19, [x0]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_34:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_PT_NULL,8,3                    ; @PT_NULL
	.comm	_PT_LOAD,8,3                    ; @PT_LOAD
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_copy_elf_program_header
.subsections_via_symbols
