	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_template_arg
_write_template_arg:                    ## @write_template_arg
	.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	%edi, %ebx
	callq	_TREE_CODE
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_MANGLE_TRACE_TREE
	movq	_TREE_LIST@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_TREE_VALUE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DECL_P
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	%rax, %r14
LBB0_3:
	movl	%ebx, %edi
	callq	_TREE_CODE
	movq	_NOP_EXPR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	_REFERENCE_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_TREE_OPERAND
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	_ADDR_EXPR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_gcc_assert
	movl	$2, %edi
	callq	_abi_version_at_least
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_TREE_OPERAND
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TREE_OPERAND
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_G@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	movl	%ebx, %edi
	callq	_TYPE_P
	testq	%rax, %rax
	je	LBB0_9
## %bb.24:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_type                     ## TAILCALL
LBB0_9:
	movq	_TEMPLATE_DECL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_10
## %bb.25:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_template_template_arg    ## TAILCALL
LBB0_10:
	movl	%r14d, %edi
	callq	_TREE_CODE_CLASS
	movq	_tcc_constant@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_PTRMEM_CST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_26
LBB0_12:
	movl	$2, %edi
	callq	_abi_version_at_least
	movq	_CONST_DECL@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	cmpl	(%r15), %r14d
	jne	LBB0_14
LBB0_26:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_template_arg_literal     ## TAILCALL
LBB0_14:
	movl	%ebx, %edi
	callq	_DECL_P
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	cmpl	(%r15), %r14d
	jne	LBB0_18
## %bb.16:
	movl	$2, %edi
	callq	_abi_version_at_least
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_G@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_18:
	movl	$76, %edi
	callq	_write_char
	movl	$3, %edi
	callq	_abi_version_at_least
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
	callq	_write_string
	jmp	LBB0_21
LBB0_23:
	movl	$88, %edi
	callq	_write_char
	movl	%ebx, %edi
	callq	_write_expression
	jmp	LBB0_22
LBB0_19:
	movq	_G@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$90, %edi
	callq	_write_char
LBB0_21:
	movl	%ebx, %edi
	callq	_write_encoding
LBB0_22:
	movl	$69, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_char                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"template-arg"

	.comm	_TREE_LIST,4,2                  ## @TREE_LIST
	.comm	_NOP_EXPR,8,3                   ## @NOP_EXPR
	.comm	_REFERENCE_TYPE,8,3             ## @REFERENCE_TYPE
	.comm	_ADDR_EXPR,8,3                  ## @ADDR_EXPR
	.comm	_G,4,2                          ## @G
	.comm	_TEMPLATE_DECL,4,2              ## @TEMPLATE_DECL
	.comm	_tcc_constant,8,3               ## @tcc_constant
	.comm	_PTRMEM_CST,4,2                 ## @PTRMEM_CST
	.comm	_CONST_DECL,4,2                 ## @CONST_DECL
L_.str.1:                               ## @.str.1
	.asciz	"_Z"

	.no_dead_strip	_write_template_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_template_arg
_write_template_arg:                    ; @write_template_arg
	.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, x0
	bl	_TREE_CODE
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_MANGLE_TRACE_TREE
Lloh2:
	adrp	x8, _TREE_LIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TREE_LIST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_TREE_VALUE
	mov	x19, x0
	bl	_DECL_P
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_TREE_TYPE
	mov	x19, x0
	bl	_TREE_CODE
	mov	x20, x0
LBB0_3:
	mov	x0, x19
	bl	_TREE_CODE
Lloh5:
	adrp	x8, _NOP_EXPR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NOP_EXPR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_TREE_TYPE
	bl	_TREE_CODE
Lloh8:
	adrp	x8, _REFERENCE_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REFERENCE_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_TREE_OPERAND
	bl	_TREE_CODE
Lloh11:
	adrp	x8, _ADDR_EXPR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADDR_EXPR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_gcc_assert
	mov	w0, #2
	bl	_abi_version_at_least
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_TREE_OPERAND
	mov	w1, #0
	bl	_TREE_OPERAND
	mov	x19, x0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _G@GOTPAGE
Lloh15:
	ldr	x8, [x8, _G@GOTPAGEOFF]
	mov	w9, #1
Lloh16:
	str	w9, [x8]
LBB0_8:
	mov	x0, x19
	bl	_TYPE_P
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, 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
LBB0_10:
Lloh17:
	adrp	x8, _TEMPLATE_DECL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TEMPLATE_DECL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, 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_template_template_arg
LBB0_12:
	mov	x0, x20
	bl	_TREE_CODE_CLASS
Lloh20:
	adrp	x8, _tcc_constant@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tcc_constant@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _PTRMEM_CST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PTRMEM_CST@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	x0, x8
	ccmp	w20, w9, #4, eq
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #2
	bl	_abi_version_at_least
Lloh26:
	adrp	x21, _CONST_DECL@GOTPAGE
Lloh27:
	ldr	x21, [x21, _CONST_DECL@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_16
LBB0_15:
	mov	x0, 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_template_arg_literal
LBB0_16:
	mov	x0, x19
	bl	_DECL_P
	cbz	x0, LBB0_22
; %bb.17:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_20
; %bb.18:
	mov	w0, #2
	bl	_abi_version_at_least
	cbnz	x0, LBB0_20
; %bb.19:
Lloh28:
	adrp	x8, _G@GOTPAGE
Lloh29:
	ldr	x8, [x8, _G@GOTPAGEOFF]
	mov	w9, #1
Lloh30:
	str	w9, [x8]
LBB0_20:
	mov	w0, #76
	bl	_write_char
	mov	w0, #3
	bl	_abi_version_at_least
	cbz	x0, LBB0_23
; %bb.21:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_write_string
	b	LBB0_24
LBB0_22:
	mov	w0, #88
	bl	_write_char
	mov	x0, x19
	bl	_write_expression
	b	LBB0_25
LBB0_23:
Lloh33:
	adrp	x8, _G@GOTPAGE
Lloh34:
	ldr	x8, [x8, _G@GOTPAGEOFF]
	mov	w9, #1
Lloh35:
	str	w9, [x8]
	mov	w0, #90
	bl	_write_char
LBB0_24:
	mov	x0, x19
	bl	_write_encoding
LBB0_25:
	mov	w0, #69
	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_char
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"template-arg"

	.comm	_TREE_LIST,4,2                  ; @TREE_LIST
	.comm	_NOP_EXPR,8,3                   ; @NOP_EXPR
	.comm	_REFERENCE_TYPE,8,3             ; @REFERENCE_TYPE
	.comm	_ADDR_EXPR,8,3                  ; @ADDR_EXPR
	.comm	_G,4,2                          ; @G
	.comm	_TEMPLATE_DECL,4,2              ; @TEMPLATE_DECL
	.comm	_tcc_constant,8,3               ; @tcc_constant
	.comm	_PTRMEM_CST,4,2                 ; @PTRMEM_CST
	.comm	_CONST_DECL,4,2                 ; @CONST_DECL
l_.str.1:                               ; @.str.1
	.asciz	"_Z"

	.no_dead_strip	_write_template_arg
.subsections_via_symbols
