	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _yp_unbind
__yp_unbind:                            ## @_yp_unbind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$16, -28(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	__getsockname
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movq	24(%rbx), %rdi
	callq	_clnt_destroy
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %r14d
	movl	%r14d, %edi
	callq	__dup
	movl	%eax, %r15d
	movq	24(%rbx), %rdi
	callq	_clnt_destroy
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	__dup2
	movl	%r15d, %edi
	callq	__close
LBB0_6:
	movq	$0, 24(%rbx)
	movl	$-1, (%rbx)
	movl	$-1, 16(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.no_dead_strip	__yp_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _yp_unbind
__yp_unbind:                            ; @_yp_unbind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w8, #16
	str	w8, [sp, #12]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w0, [x19]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	__getsockname
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #24]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
	bl	_clnt_destroy
	b	LBB0_6
LBB0_5:
	ldr	w20, [x19]
	mov	x0, x20
	bl	__dup
	mov	x21, x0
	ldr	x0, [x19, #24]
	bl	_clnt_destroy
	mov	x0, x21
	mov	x1, x20
	bl	__dup2
	mov	x0, x21
	bl	__close
LBB0_6:
	str	xzr, [x19, #24]
	mov	w8, #-1
	str	w8, [x19]
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.no_dead_strip	__yp_unbind
.subsections_via_symbols
