	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imsg_close                     ## -- Begin function imsg_close
	.p2align	4, 0x90
_imsg_close:                            ## @imsg_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rsi), %rax
	movq	_IMSGF_HASFD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	notl	%ecx
	movl	8(%rax), %edx
	andl	%edx, %ecx
	movl	%ecx, 8(%rax)
	cmpl	$-1, (%rsi)
	je	LBB0_2
## %bb.1:
	orl	%r8d, %edx
	movl	%edx, 8(%rax)
LBB0_2:
	movq	8(%rsi), %rcx
	movq	%rcx, (%rax)
	popq	%rbp
	jmp	_ibuf_close                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMSGF_HASFD,4,2                ## @IMSGF_HASFD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imsg_close                     ; -- Begin function imsg_close
	.p2align	2
_imsg_close:                            ; @imsg_close
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _IMSGF_HASFD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMSGF_HASFD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x8, #8]
	bic	w11, w10, w9
	str	w11, [x8, #8]
	ldr	w11, [x1]
	cmn	w11, #1
	b.eq	LBB0_2
; %bb.1:
	orr	w9, w10, w9
	str	w9, [x8, #8]
LBB0_2:
	ldr	x9, [x1, #8]
	str	x9, [x8]
	b	_ibuf_close
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMSGF_HASFD,4,2                ; @IMSGF_HASFD
.subsections_via_symbols
