	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmtclose                       ## -- Begin function rmtclose
	.p2align	4, 0x90
_rmtclose:                              ## @rmtclose
	.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	_rmtstate@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_TS_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_rmtcall
	movq	_TS_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rmtstate,8,3                   ## @rmtstate
	.comm	_TS_OPEN,8,3                    ## @TS_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close"

L_.str.1:                               ## @.str.1
	.asciz	"C\n"

	.comm	_TS_CLOSED,8,3                  ## @TS_CLOSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmtclose                       ; -- Begin function rmtclose
	.p2align	2
_rmtclose:                              ; @rmtclose
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _rmtstate@GOTPAGE
Lloh1:
	ldr	x19, [x19, _rmtstate@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TS_OPEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TS_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rmtcall
Lloh9:
	adrp	x8, _TS_CLOSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TS_CLOSED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_rmtstate,8,3                   ; @rmtstate
	.comm	_TS_OPEN,8,3                    ; @TS_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close"

l_.str.1:                               ; @.str.1
	.asciz	"C\n"

	.comm	_TS_CLOSED,8,3                  ; @TS_CLOSED
.subsections_via_symbols
