	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grep_close                     ## -- Begin function grep_close
	.p2align	4, 0x90
_grep_close:                            ## @grep_close
	.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
	movl	(%rdi), %edi
	callq	_close
	movq	_filebehave@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FILE_MMAP@GOTPCREL(%rip), %rcx
	movq	_buffer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_fsiz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_munmap
	movq	$0, (%rbx)
	xorl	%edi, %edi
LBB0_2:
	movq	_bufpos@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	movq	_bufrem@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lnbuf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	movq	_lnbuflen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filebehave,8,3                 ## @filebehave
	.comm	_FILE_MMAP,8,3                  ## @FILE_MMAP
	.comm	_buffer,8,3                     ## @buffer
	.comm	_fsiz,4,2                       ## @fsiz
	.comm	_bufpos,8,3                     ## @bufpos
	.comm	_bufrem,8,3                     ## @bufrem
	.comm	_lnbuf,8,3                      ## @lnbuf
	.comm	_lnbuflen,8,3                   ## @lnbuflen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grep_close                     ; -- Begin function grep_close
	.p2align	2
_grep_close:                            ; @grep_close
	.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
	ldr	w0, [x0]
	bl	_close
Lloh0:
	adrp	x8, _filebehave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filebehave@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FILE_MMAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FILE_MMAP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x19, _buffer@GOTPAGE
Lloh7:
	ldr	x19, [x19, _buffer@GOTPAGEOFF]
	ldr	x0, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _fsiz@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fsiz@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_munmap
	mov	x0, #0
	str	xzr, [x19]
LBB0_2:
Lloh11:
	adrp	x8, _bufpos@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bufpos@GOTPAGEOFF]
Lloh13:
	str	x0, [x8]
Lloh14:
	adrp	x8, _bufrem@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bufrem@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x19, _lnbuf@GOTPAGE
Lloh18:
	ldr	x19, [x19, _lnbuf@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
Lloh19:
	adrp	x8, _lnbuflen@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lnbuflen@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_filebehave,8,3                 ; @filebehave
	.comm	_FILE_MMAP,8,3                  ; @FILE_MMAP
	.comm	_buffer,8,3                     ; @buffer
	.comm	_fsiz,4,2                       ; @fsiz
	.comm	_bufpos,8,3                     ; @bufpos
	.comm	_bufrem,8,3                     ; @bufrem
	.comm	_lnbuf,8,3                      ; @lnbuf
	.comm	_lnbuflen,8,3                   ; @lnbuflen
.subsections_via_symbols
