	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nclose                     ## -- Begin function res_nclose
	.p2align	4, 0x90
_res_nclose:                            ## @res_nclose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	callq	__close
	movl	$-1, (%r14)
	movq	_RES_F_VC@GOTPCREL(%rip), %rax
	movq	_RES_F_CONN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 4(%r14)
LBB0_2:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %edi
	cmpl	$-1, %edi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	__close
	movq	16(%r14), %rcx
	movl	$-1, (%rcx,%rbx,4)
	movl	8(%r14), %eax
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_F_VC,4,2                   ## @RES_F_VC
	.comm	_RES_F_CONN,4,2                 ## @RES_F_CONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nclose                     ; -- Begin function res_nclose
	.p2align	2
_res_nclose:                            ; @res_nclose
	.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
	ldr	w0, [x0]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	__close
	mov	w8, #-1
	str	w8, [x19]
Lloh0:
	adrp	x8, _RES_F_VC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_F_VC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RES_F_CONN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RES_F_CONN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x20, #0
	ldr	x9, [x19, #16]
	mov	w21, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x9, x20, lsl #2]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	__close
	ldr	x9, [x19, #16]
	str	w21, [x9, x20, lsl #2]
	ldr	w8, [x19, #8]
	b	LBB0_4
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_F_VC,4,2                   ; @RES_F_VC
	.comm	_RES_F_CONN,4,2                 ; @RES_F_CONN
.subsections_via_symbols
