	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_import                     ## -- Begin function ctf_import
	.p2align	4, 0x90
_ctf_import:                            ## @ctf_import
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	cmpq	%rsi, %rbx
	je	LBB0_4
## %bb.2:
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.6:
	movq	8(%r14), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_7
LBB0_8:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_ctf_close
LBB0_10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	_LCTF_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	incq	(%r14)
LBB0_12:
	movq	%r14, 16(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ctf_set_errno                  ## TAILCALL
LBB0_7:
	movq	_ECTF_DMODEL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ECTF_DMODEL,4,2                ## @ECTF_DMODEL
	.comm	_LCTF_CHILD,4,2                 ## @LCTF_CHILD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_import                     ; -- Begin function ctf_import
	.p2align	2
_ctf_import:                            ; @ctf_import
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x1
	cmp	x19, x1
	b.eq	LBB0_10
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_ctf_close
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _LCTF_CHILD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCTF_CHILD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_9:
	str	x20, [x19, #16]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ctf_set_errno
LBB0_12:
Lloh5:
	adrp	x8, _ECTF_DMODEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECTF_DMODEL@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ECTF_DMODEL,4,2                ; @ECTF_DMODEL
	.comm	_LCTF_CHILD,4,2                 ; @LCTF_CHILD
.subsections_via_symbols
