	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_opt_type                 ## -- Begin function write_opt_type
	.p2align	4, 0x90
_write_opt_type:                        ## @write_opt_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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_schema_version@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_2
## %bb.1:
	movl	$-20, %edi
	callq	_wint
LBB0_2:
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_tl_get_var_value_num
	movl	%eax, %edi
	callq	_wint
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_wint
	movq	%rbx, %rdi
	callq	_assert
	movq	8(%rbx), %rdi
	cmpl	$128, (%rdi)
	jne	LBB0_7
## %bb.3:
	movl	4(%rdi), %eax
	movq	_act_array@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.8:
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_array                    ## TAILCALL
LBB0_4:
	movq	_act_type@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.5:
	movq	_act_var@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.6:
	movq	_act_arg@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
LBB0_7:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_9:
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_type_rec                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_schema_version,4,2             ## @schema_version
	.comm	_act_array,4,2                  ## @act_array
	.comm	_act_type,4,2                   ## @act_type
	.comm	_act_var,4,2                    ## @act_var
	.comm	_act_arg,4,2                    ## @act_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_opt_type                 ; -- Begin function write_opt_type
	.p2align	2
_write_opt_type:                        ; @write_opt_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _schema_version@GOTPAGE
Lloh1:
	ldr	x8, [x8, _schema_version@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	b.gt	LBB0_2
; %bb.1:
	mov	w0, #-20
	bl	_wint
LBB0_2:
	ldr	x8, [x21, #16]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_tl_get_var_value_num
	bl	_wint
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_wint
	mov	x0, x21
	bl	_assert
	ldr	x0, [x21, #8]
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _act_array@GOTPAGE
Lloh4:
	ldr	x9, [x9, _act_array@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_write_array
LBB0_5:
Lloh6:
	adrp	x9, _act_type@GOTPAGE
Lloh7:
	ldr	x9, [x9, _act_type@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _act_var@GOTPAGE
Lloh10:
	ldr	x10, [x10, _act_var@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _act_arg@GOTPAGE
Lloh13:
	ldr	x11, [x11, _act_arg@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_7
; %bb.6:
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_write_type_rec
LBB0_7:
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_schema_version,4,2             ; @schema_version
	.comm	_act_array,4,2                  ; @act_array
	.comm	_act_type,4,2                   ; @act_type
	.comm	_act_var,4,2                    ; @act_var
	.comm	_act_arg,4,2                    ; @act_arg
.subsections_via_symbols
