	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_type_rec                 ## -- Begin function write_type_rec
	.p2align	4, 0x90
_write_type_rec:                        ## @write_type_rec
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_act_arg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	32(%r15), %rdi
	incl	%ebx
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_write_type_rec
	movq	_schema_version@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.2:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	movq	_type_num@GOTPCREL(%rip), %rdi
	movq	_TLS_EXPR_NAT@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rdi), %rax
	je	LBB0_4
## %bb.3:
	movq	_TLS_EXPR_TYPE@GOTPCREL(%rip), %rsi
LBB0_4:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %edi
	callq	_wint
LBB0_5:
	movq	24(%r15), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_tree                     ## TAILCALL
LBB0_6:
	movq	_act_var@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	sete	%cl
	movq	_act_type@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.7:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_assert
	movq	_schema_version@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.8:
	movl	$-6, %edi
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:
	movq	_TLS_TREE_TYPE_VAR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_schema_version@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	je	LBB0_16
## %bb.14:
	movl	$-7, %edi
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.15:
	movq	_TLS_TREE_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_TLS_TYPE_VAR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
LBB0_12:
	callq	_wint
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_tl_get_var_value_num
	movl	%eax, %edi
	callq	_wint
	movl	8(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_var_type_flags           ## TAILCALL
LBB0_16:
	movq	_TLS_TYPE_EXPR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edi
LBB0_18:
	callq	_wint
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_wint
	movl	8(%r15), %edi
	callq	_write_type_flags
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wint                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_act_arg,8,3                    ## @act_arg
	.comm	_schema_version,4,2             ## @schema_version
	.comm	_type_num_value,8,3             ## @type_num_value
	.comm	_type_num,8,3                   ## @type_num
	.comm	_TLS_EXPR_NAT,4,2               ## @TLS_EXPR_NAT
	.comm	_TLS_EXPR_TYPE,4,2              ## @TLS_EXPR_TYPE
	.comm	_act_var,8,3                    ## @act_var
	.comm	_act_type,8,3                   ## @act_type
	.comm	_TLS_TREE_TYPE_VAR,4,2          ## @TLS_TREE_TYPE_VAR
	.comm	_TLS_TYPE_VAR,4,2               ## @TLS_TYPE_VAR
	.comm	_TLS_TREE_TYPE,4,2              ## @TLS_TREE_TYPE
	.comm	_TLS_TYPE_EXPR,4,2              ## @TLS_TYPE_EXPR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_type_rec                 ; -- Begin function write_type_rec
	.p2align	2
_write_type_rec:                        ; @write_type_rec
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _act_arg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _act_arg@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x3
	ldr	x0, [x19, #32]
	add	w1, w21, #1
	mov	x2, x20
	bl	_write_type_rec
Lloh3:
	adrp	x8, _schema_version@GOTPAGE
Lloh4:
	ldr	x8, [x8, _schema_version@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _type_num_value@GOTPAGE
Lloh7:
	ldr	x9, [x9, _type_num_value@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _type_num@GOTPAGE
Lloh10:
	ldr	x10, [x10, _type_num@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh12:
	adrp	x8, _TLS_EXPR_NAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLS_EXPR_NAT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _TLS_EXPR_TYPE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TLS_EXPR_TYPE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_wint
LBB0_3:
	ldr	x0, [x19, #24]
	mov	w1, #0
	mov	x2, x20
	mov	x3, x22
	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_tree
LBB0_4:
Lloh16:
	adrp	x22, _act_var@GOTPAGE
Lloh17:
	ldr	x22, [x22, _act_var@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
Lloh18:
	adrp	x9, _act_type@GOTPAGE
Lloh19:
	ldr	x9, [x9, _act_type@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	cmp	w21, #0
	cset	w0, eq
	bl	_assert
Lloh21:
	adrp	x8, _schema_version@GOTPAGE
Lloh22:
	ldr	x8, [x8, _schema_version@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.6:
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.7:
Lloh24:
	adrp	x8, _TLS_TREE_TYPE_VAR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TLS_TREE_TYPE_VAR@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh26:
	adrp	x8, _schema_version@GOTPAGE
Lloh27:
	ldr	x8, [x8, _schema_version@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_15
; %bb.9:
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.10:
Lloh29:
	adrp	x8, _TLS_TREE_TYPE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TLS_TREE_TYPE@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh31:
	adrp	x8, _TLS_TYPE_VAR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TLS_TYPE_VAR@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #-6
LBB0_14:
	bl	_wint
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_tl_get_var_value_num
	bl	_wint
	ldr	w0, [x19, #8]
	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_var_type_flags
LBB0_15:
Lloh33:
	adrp	x8, _TLS_TYPE_EXPR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLS_TYPE_EXPR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_17:
	mov	w0, #-7
LBB0_18:
	bl	_wint
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_wint
	ldr	w0, [x19, #8]
	bl	_write_type_flags
	mov	x0, x21
	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	_wint
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_act_arg,8,3                    ; @act_arg
	.comm	_schema_version,4,2             ; @schema_version
	.comm	_type_num_value,8,3             ; @type_num_value
	.comm	_type_num,8,3                   ; @type_num
	.comm	_TLS_EXPR_NAT,4,2               ; @TLS_EXPR_NAT
	.comm	_TLS_EXPR_TYPE,4,2              ; @TLS_EXPR_TYPE
	.comm	_act_var,8,3                    ; @act_var
	.comm	_act_type,8,3                   ; @act_type
	.comm	_TLS_TREE_TYPE_VAR,4,2          ; @TLS_TREE_TYPE_VAR
	.comm	_TLS_TYPE_VAR,4,2               ; @TLS_TYPE_VAR
	.comm	_TLS_TREE_TYPE,4,2              ; @TLS_TREE_TYPE
	.comm	_TLS_TYPE_EXPR,4,2              ; @TLS_TYPE_EXPR
.subsections_via_symbols
