	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_delete_type                ## -- Begin function ctf_delete_type
	.p2align	4, 0x90
_ctf_delete_type:                       ## @ctf_delete_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ctf_dtd_lookup
	movq	%rax, %r14
	movq	_LCTF_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.1:
	movq	%rbx, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movl	%r15d, %esi
	callq	_ctf_lookup_by_id
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ctf_dtd_lookup
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.7:
	cmpq	$0, (%r14)
	jne	LBB0_9
## %bb.8:
	cmpl	$2, 4(%rbx)
	jl	LBB0_10
LBB0_9:
	movq	_ECTF_REFERENCED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	_ECTF_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctf_set_errno                  ## TAILCALL
LBB0_5:
	movq	_ECTF_NOTDYN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ctf_set_errno
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ctf_dtd_delete
	movq	_LCTF_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_LCTF_RDWR,4,2                  ## @LCTF_RDWR
	.comm	_ECTF_RDONLY,4,2                ## @ECTF_RDONLY
	.comm	_CTF_ERR,4,2                    ## @CTF_ERR
	.comm	_ECTF_NOTDYN,4,2                ## @ECTF_NOTDYN
	.comm	_ECTF_REFERENCED,4,2            ## @ECTF_REFERENCED
	.comm	_LCTF_DIRTY,4,2                 ## @LCTF_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_delete_type                ; -- Begin function ctf_delete_type
	.p2align	2
_ctf_delete_type:                       ; @ctf_delete_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_ctf_dtd_lookup
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _LCTF_RDWR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCTF_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x20, x0
	str	x19, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_ctf_lookup_by_id
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_ctf_dtd_lookup
	cbz	x0, LBB0_11
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_12
LBB0_6:
Lloh3:
	adrp	x8, _ECTF_REFERENCED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECTF_REFERENCED@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _ECTF_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECTF_RDONLY@GOTPAGEOFF]
Lloh7:
	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
	add	sp, sp, #64
	b	_ctf_set_errno
LBB0_8:
Lloh8:
	adrp	x8, _ECTF_NOTDYN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECTF_NOTDYN@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ctf_set_errno
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh10:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_ctf_dtd_delete
	mov	w0, #0
Lloh13:
	adrp	x8, _LCTF_DIRTY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LCTF_DIRTY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LCTF_RDWR,4,2                  ; @LCTF_RDWR
	.comm	_ECTF_RDONLY,4,2                ; @ECTF_RDONLY
	.comm	_CTF_ERR,4,2                    ; @CTF_ERR
	.comm	_ECTF_NOTDYN,4,2                ; @ECTF_NOTDYN
	.comm	_ECTF_REFERENCED,4,2            ; @ECTF_REFERENCED
	.comm	_LCTF_DIRTY,4,2                 ; @LCTF_DIRTY
.subsections_via_symbols
