	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elfcore_write_note             ## -- Begin function elfcore_write_note
	.p2align	4, 0x90
_elfcore_write_note:                    ## @elfcore_write_note
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	16(%rbp), %r15d
	testq	%rcx, %rcx
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	leal	3(%r15), %eax
	andl	$-4, %eax
	leal	15(%r14), %r13d
	andl	$-4, %r13d
	addl	%eax, %r13d
	movl	(%rbx), %esi
	addl	%r13d, %esi
	movq	%r12, %rdi
	callq	_realloc
	movq	%rax, %r12
	movslq	(%rbx), %r15
	leal	(%r15,%r13), %eax
	movl	16(%rbp), %r13d
	movl	%eax, (%rbx)
	movl	16(%r12,%r15), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_H_PUT_32
	movl	12(%r12,%r15), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_H_PUT_32
	movl	8(%r12,%r15), %edx
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_H_PUT_32
	movq	(%r12,%r15), %r15
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	leaq	(%r15,%r14), %rdi
	movq	%r14, %rbx
	andq	$3, %rbx
	je	LBB0_5
## %bb.6:
	movl	$4, %esi
	subq	%rbx, %rsi
	xorq	$3, %rbx
	callq	___bzero
	addq	%rbx, %r14
	addq	%r14, %r15
	incq	%r15
	jmp	LBB0_7
LBB0_5:
	movq	%rdi, %r15
LBB0_7:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %eax
	andl	$3, %eax
	je	LBB0_9
## %bb.8:
	movslq	%r13d, %rcx
	addq	%rcx, %r15
	movl	$4, %esi
	subl	%eax, %esi
	movq	%r15, %rdi
	callq	___bzero
LBB0_9:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elfcore_write_note             ; -- Begin function elfcore_write_note
	.p2align	2
_elfcore_write_note:                    ; @elfcore_write_note
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x6
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	mov	x26, x2
	mov	x21, x1
	mov	x25, x0
	cbz	x3, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_strlen
	add	w8, w0, #1
	sxtw	x22, w8
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	add	w8, w19, #3
	and	w8, w8, #0xfffffffc
	ldr	w9, [x26]
	add	w10, w22, #15
	and	w10, w10, #0xfffffffc
	add	w27, w10, w8
	add	w1, w27, w9
	mov	x0, x21
	bl	_realloc
	mov	x21, x0
	ldrsw	x8, [x26]
	add	x28, x0, x8
	add	w8, w27, w8
	str	w8, [x26]
	ldr	w2, [x28, #16]
	mov	x0, x25
	mov	x1, x22
	bl	_H_PUT_32
	ldr	w2, [x28, #12]
	mov	x0, x25
	mov	x1, x19
	bl	_H_PUT_32
	ldr	w2, [x28, #8]
	mov	x0, x25
	mov	x1, x24
	bl	_H_PUT_32
	ldr	x24, [x28]
	cbz	x23, LBB0_7
; %bb.4:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	add	x0, x24, x22
	ands	x8, x22, #0x3
	b.eq	LBB0_6
; %bb.5:
	eor	x23, x8, #0x3
	mov	w9, #4
	sub	x1, x9, x8
	bl	_bzero
	add	x8, x22, x23
	add	x8, x8, x24
	add	x24, x8, #1
	b	LBB0_7
LBB0_6:
	mov	x24, x0
LBB0_7:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ands	w8, w19, #0x3
	b.eq	LBB0_9
; %bb.8:
	add	x0, x24, w19, sxtw
	mov	w9, #4
	sub	w1, w9, w8
	bl	_bzero
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
