	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_generate                 ## -- Begin function close_generate
	.p2align	4, 0x90
_close_generate:                        ## @close_generate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_headerfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_headerbase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_fclose
LBB0_2:
	movq	_privheaderfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_fclose
LBB0_4:
	movq	_templatefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_fclose
LBB0_6:
	movq	_logfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdi
	jmp	LBB0_9
LBB0_7:
	xorl	%edi, %edi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_headerfile,8,3                 ## @headerfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#endif /* __%s_h__ */\n"

	.comm	_headerbase,8,3                 ## @headerbase
	.comm	_privheaderfile,8,3             ## @privheaderfile
	.comm	_templatefile,8,3               ## @templatefile
	.comm	_logfile,8,3                    ## @logfile
L_.str.1:                               ## @.str.1
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_generate                 ; -- Begin function close_generate
	.p2align	2
_close_generate:                        ; @close_generate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _headerfile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _headerfile@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _headerbase@GOTPAGE
Lloh3:
	ldr	x8, [x8, _headerbase@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fclose
LBB0_2:
Lloh7:
	adrp	x8, _privheaderfile@GOTPAGE
Lloh8:
	ldr	x8, [x8, _privheaderfile@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_fclose
LBB0_4:
Lloh10:
	adrp	x8, _templatefile@GOTPAGE
Lloh11:
	ldr	x8, [x8, _templatefile@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_fclose
LBB0_6:
Lloh13:
	adrp	x19, _logfile@GOTPAGE
Lloh14:
	ldr	x19, [x19, _logfile@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fclose
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_headerfile,8,3                 ; @headerfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#endif /* __%s_h__ */\n"

	.comm	_headerbase,8,3                 ; @headerbase
	.comm	_privheaderfile,8,3             ; @privheaderfile
	.comm	_templatefile,8,3               ; @templatefile
	.comm	_logfile,8,3                    ; @logfile
l_.str.1:                               ; @.str.1
	.asciz	"\n"

.subsections_via_symbols
