	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_ctf_data
_copy_ctf_data:                         ## @copy_ctf_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -40(%rbp)
	movq	_read_ctf_save_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %r8
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %r9d
	callq	_read_ctf
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_terminate
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mktmpname
	movq	_tmpname@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	-32(%rbp), %rdi
	movq	_CTF_COMPRESS@GOTPCREL(%rip), %rcx
	movq	_CTF_SWAP_BYTES@GOTPCREL(%rip), %rdx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_write_ctf
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_rename
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movslq	(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_terminate
LBB0_4:
	movl	(%r15), %edi
	callq	_free
	movq	-32(%rbp), %rdi
	callq	_tdata_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_ctf_save_cb,4,2           ## @read_ctf_save_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No CTF data found in source file %s\n"

L_.str.1:                               ## @.str.1
	.asciz	".ctf"

	.comm	_tmpname,4,2                    ## @tmpname
	.comm	_CTF_COMPRESS,4,2               ## @CTF_COMPRESS
	.comm	_CTF_SWAP_BYTES,4,2             ## @CTF_SWAP_BYTES
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't rename temp file %s to %s"

	.no_dead_strip	_copy_ctf_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_ctf_data
_copy_ctf_data:                         ; @copy_ctf_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _read_ctf_save_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read_ctf_save_cb@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #1
	mov	x2, #0
	mov	w5, #1
	bl	_read_ctf
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x1, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_terminate
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mktmpname
	mov	x2, x0
Lloh7:
	adrp	x21, _tmpname@GOTPAGE
Lloh8:
	ldr	x21, [x21, _tmpname@GOTPAGEOFF]
	str	w0, [x21]
	ldr	x0, [sp, #16]
Lloh9:
	adrp	x8, _CTF_COMPRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTF_COMPRESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CTF_SWAP_BYTES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CTF_SWAP_BYTES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w3, w8, w9
	mov	x1, x19
	bl	_write_ctf
	ldr	w0, [x21]
	mov	x1, x19
	bl	_rename
	cbz	x0, LBB0_4
; %bb.3:
	ldrsw	x1, [x21]
	str	x19, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_terminate
LBB0_4:
	ldr	w0, [x21]
	bl	_free
	ldr	x0, [sp, #16]
	bl	_tdata_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_read_ctf_save_cb,4,2           ; @read_ctf_save_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No CTF data found in source file %s\n"

l_.str.1:                               ; @.str.1
	.asciz	".ctf"

	.comm	_tmpname,4,2                    ; @tmpname
	.comm	_CTF_COMPRESS,4,2               ; @CTF_COMPRESS
	.comm	_CTF_SWAP_BYTES,4,2             ; @CTF_SWAP_BYTES
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't rename temp file %s to %s"

	.no_dead_strip	_copy_ctf_data
.subsections_via_symbols
