	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctf_add_generic
_ctf_add_generic:                       ## @ctf_add_generic
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	_CTF_ADD_NONROOT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_CTF_ADD_ROOT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_LCTF_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_CTF_INDEX_TO_TYPE
	movq	_CTF_MAX_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.5:
	movq	_ECTF_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_ECTF_RDONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	$16, %edi
	callq	_ctf_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	callq	_ctf_strdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_ctf_free
LBB0_11:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctf_set_errno                  ## TAILCALL
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movq	8(%rbx), %rdi
	leaq	1(%rdi), %rax
	movq	%rax, 8(%rbx)
	movq	_LCTF_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	callq	_CTF_INDEX_TO_TYPE
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	%r12, (%r15)
	movq	%r13, 8(%r15)
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_strlen
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, 4(%rbx)
LBB0_16:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ctf_dtd_insert
	movq	_LCTF_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r15, (%r14)
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTF_ADD_NONROOT,8,3            ## @CTF_ADD_NONROOT
	.comm	_CTF_ADD_ROOT,8,3               ## @CTF_ADD_ROOT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LCTF_RDWR,4,2                  ## @LCTF_RDWR
	.comm	_ECTF_RDONLY,4,2                ## @ECTF_RDONLY
	.comm	_CTF_MAX_TYPE,8,3               ## @CTF_MAX_TYPE
	.comm	_ECTF_FULL,4,2                  ## @ECTF_FULL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_LCTF_CHILD,4,2                 ## @LCTF_CHILD
	.comm	_LCTF_DIRTY,4,2                 ## @LCTF_DIRTY
	.no_dead_strip	_ctf_add_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctf_add_generic
_ctf_add_generic:                       ; @ctf_add_generic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CTF_ADD_NONROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTF_ADD_NONROOT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CTF_ADD_ROOT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTF_ADD_ROOT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _LCTF_RDWR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCTF_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x3
	mov	x22, x2
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_CTF_INDEX_TO_TYPE
Lloh9:
	adrp	x8, _CTF_MAX_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTF_MAX_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _ECTF_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECTF_FULL@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x8, _ECTF_RDONLY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ECTF_RDONLY@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	w0, #16
	bl	_ctf_alloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	cbz	x22, LBB0_12
; %bb.8:
	mov	x0, x22
	bl	_ctf_strdup
	mov	x23, x0
	cbnz	x0, LBB0_13
; %bb.9:
	mov	x0, x21
	mov	w1, #16
	bl	_ctf_free
LBB0_10:
Lloh18:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ctf_set_errno
LBB0_12:
	mov	x23, #0
LBB0_13:
	ldr	x0, [x19, #8]
	add	x8, x0, #1
	str	x8, [x19, #8]
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _LCTF_CHILD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LCTF_CHILD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_CTF_INDEX_TO_TYPE
	mov	x22, x0
	mov	x0, x21
	mov	w1, #16
	bl	_bzero
	stp	x23, x22, [x21]
	cbz	x23, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_strlen
	ldr	w8, [x19, #4]
	add	w8, w0, w8
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_ctf_dtd_insert
Lloh23:
	adrp	x8, _LCTF_DIRTY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LCTF_DIRTY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	str	x21, [x20]
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CTF_ADD_NONROOT,8,3            ; @CTF_ADD_NONROOT
	.comm	_CTF_ADD_ROOT,8,3               ; @CTF_ADD_ROOT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LCTF_RDWR,4,2                  ; @LCTF_RDWR
	.comm	_ECTF_RDONLY,4,2                ; @ECTF_RDONLY
	.comm	_CTF_MAX_TYPE,8,3               ; @CTF_MAX_TYPE
	.comm	_ECTF_FULL,4,2                  ; @ECTF_FULL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_LCTF_CHILD,4,2                 ; @LCTF_CHILD
	.comm	_LCTF_DIRTY,4,2                 ; @LCTF_DIRTY
	.no_dead_strip	_ctf_add_generic
.subsections_via_symbols
