	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_add_union                  ## -- Begin function ctf_add_union
	.p2align	4, 0x90
_ctf_add_union:                         ## @ctf_add_union
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_ctf_hash_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ctf_type_kind
	movq	_CTF_K_FORWARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ctf_dtd_lookup
	movq	%rax, -40(%rbp)
	jmp	LBB0_5
LBB0_4:
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_ctf_add_generic
	movl	%eax, %ebx
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
LBB0_5:
	movq	_CTF_K_UNION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_CTF_TYPE_INFO
	movq	-40(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTF_K_FORWARD,8,3              ## @CTF_K_FORWARD
	.comm	_CTF_ERR,4,2                    ## @CTF_ERR
	.comm	_CTF_K_UNION,4,2                ## @CTF_K_UNION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_add_union                  ; -- Begin function ctf_add_union
	.p2align	2
_ctf_add_union:                         ; @ctf_add_union
	.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, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x2, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	mov	x0, x20
	mov	x1, x20
	mov	x2, x21
	bl	_ctf_hash_lookup
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w1, [x0]
	mov	x0, x20
	bl	_ctf_type_kind
Lloh0:
	adrp	x8, _CTF_K_FORWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTF_K_FORWARD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w21, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_ctf_dtd_lookup
	str	x0, [sp, #8]
	b	LBB0_5
LBB0_4:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ctf_add_generic
	mov	x21, x0
Lloh3:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _CTF_K_UNION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTF_K_UNION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	bl	_CTF_TYPE_INFO
	ldr	x8, [sp, #8]
	str	w0, [x8, #8]
	str	xzr, [x8]
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CTF_K_FORWARD,8,3              ; @CTF_K_FORWARD
	.comm	_CTF_ERR,4,2                    ; @CTF_ERR
	.comm	_CTF_K_UNION,4,2                ; @CTF_K_UNION
.subsections_via_symbols
