	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_close                    ## -- Begin function netif_close
	.p2align	4, 0x90
_netif_close:                           ## @netif_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SOPEN_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_sockets@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %rdi
	callq	_netif_detach
	movq	(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOPEN_MAX,4,2                  ## @SOPEN_MAX
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_sockets,8,3                    ## @sockets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netif_close                    ; -- Begin function netif_close
	.p2align	2
_netif_close:                           ; @netif_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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _SOPEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOPEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _sockets@GOTPAGE
Lloh4:
	ldr	x19, [x19, _sockets@GOTPAGEOFF]
	ldr	x8, [x19]
	sbfiz	x20, x0, #3, #32
	ldr	x0, [x8, x20]
	bl	_netif_detach
	mov	w0, #0
	ldr	x8, [x19]
	str	xzr, [x8, x20]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EBADF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SOPEN_MAX,4,2                  ; @SOPEN_MAX
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_sockets,8,3                    ; @sockets
.subsections_via_symbols
