	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_external_section        ## -- Begin function create_external_section
	.p2align	4, 0x90
_create_external_section:               ## @create_external_section
	.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	%r9, %r14
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_elf_newscn
	movq	%rax, %r13
	testq	%rax, %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	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, 72(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 64(%rbx)
	movq	48(%rbp), %rax
	movq	%rax, 32(%rbx)
	movq	40(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	56(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 56(%rbx)
	movq	%r13, 48(%rbx)
	movq	16(%rbp), %rax
	movq	%rax, 40(%rbx)
	movl	$1, 20(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_insert_to_sec_list
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gelf_getshdr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movq	32(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	40(%rbx), %rax
	movq	%rax, -80(%rbp)
	movups	24(%rbx), %xmm0
	movaps	%xmm0, -96(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gelf_update_shdr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_8:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_add_to_shstrtab
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.9:
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_elf_newdata
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_errx
LBB0_12:
	movq	40(%rbp), %rax
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	%r15, 8(%r14)
	movl	24(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_13:
	movq	_SYMTAB_INTACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_newscn() failed: %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"gelf_getshdr() failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"gelf_update_shdr() failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"elf_newdata() failed: %s"

	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
	.comm	_SYMTAB_INTACT,4,2              ## @SYMTAB_INTACT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_external_section        ; -- Begin function create_external_section
	.p2align	2
_create_external_section:               ; @create_external_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	str	w7, [sp, #4]                    ; 4-byte Folded Spill
	stp	x6, x3, [sp, #8]                ; 16-byte Folded Spill
	mov	x26, x5
	mov	x25, x4
	mov	x28, x2
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_elf_newscn
	mov	x24, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_errx
LBB0_2:
	ldr	w19, [x29, #40]
	ldp	x27, x21, [x29, #24]
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
	ldr	x22, [x29, #16]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x8, x28, [x23]
	stp	x25, x26, [x23, #64]
	stp	x27, x21, [x23, #24]
	mov	x21, x25
	stp	x24, xzr, [x23, #48]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x23, #40]
	mov	w8, #1
	stp	w19, w8, [x23, #16]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #1
	bl	_insert_to_sec_list
	add	x1, sp, #32
	mov	x0, x24
	bl	_gelf_getshdr
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w26, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x26
	bl	_errx
LBB0_6:
	ldr	x8, [x23, #40]
	stp	x8, x22, [sp, #48]
	ldur	q0, [x23, #24]
	str	q0, [sp, #32]
	add	x1, sp, #32
	mov	x0, x24
	bl	_gelf_update_shdr
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	w0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w26, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x26
	bl	_errx
LBB0_8:
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_add_to_shstrtab
	cbz	x19, LBB0_13
; %bb.9:
	cbz	x21, LBB0_13
; %bb.10:
	mov	x0, x24
	bl	_elf_newdata
	mov	x24, x0
	cbnz	x0, LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x25
	bl	_errx
LBB0_12:
	stp	xzr, x27, [x24, #24]
	stp	x21, x19, [x24, #8]
Lloh25:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	stp	w8, w9, [x24]
LBB0_13:
Lloh28:
	adrp	x8, _SYMTAB_INTACT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SYMTAB_INTACT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x23
	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
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_newscn() failed: %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"gelf_getshdr() failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"gelf_update_shdr() failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"elf_newdata() failed: %s"

	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
	.comm	_SYMTAB_INTACT,4,2              ; @SYMTAB_INTACT
.subsections_via_symbols
