	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_init                        ## -- Begin function yp_init
	.p2align	4, 0x90
_yp_init:                               ## @yp_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_fatal
LBB0_2:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_TAILQ_INIT
	movq	_env@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	%rbx, (%r14)
	movq	_YPPROG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_YPVERS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_pmap_unset
	movq	_RPC_ANYSOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_svcudp_create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_4:
	movl	(%r12), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_svctcp_create
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_6:
	movq	8(%rbx), %rdi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	_yp_dispatch@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_svc_register
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_fatal
LBB0_8:
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_svc_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_env,8,3                        ## @env
	.comm	_YPPROG,4,2                     ## @YPPROG
	.comm	_YPVERS,4,2                     ## @YPVERS
	.comm	_RPC_ANYSOCK,4,2                ## @RPC_ANYSOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create udp service"

L_.str.1:                               ## @.str.1
	.asciz	"cannot create tcp service"

	.comm	_yp_dispatch,4,2                ## @yp_dispatch
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
L_.str.2:                               ## @.str.2
	.asciz	"unable to register (YPPROG, YPVERS, udp)"

	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
L_.str.3:                               ## @.str.3
	.asciz	"unable to register (YPPROG, YPVERS, tcp)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_init                        ; -- Begin function yp_init
	.p2align	2
_yp_init:                               ; @yp_init
	.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	x20, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_fatal
LBB0_2:
	add	x0, x19, #16
	bl	_TAILQ_INIT
Lloh0:
	adrp	x8, _env@GOTPAGE
Lloh1:
	ldr	x8, [x8, _env@GOTPAGEOFF]
Lloh2:
	str	x20, [x8]
	str	x19, [x20]
Lloh3:
	adrp	x20, _YPPROG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _YPPROG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x21, _YPVERS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _YPVERS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pmap_unset
Lloh7:
	adrp	x22, _RPC_ANYSOCK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RPC_ANYSOCK@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_svcudp_create
	str	x0, [x19, #8]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_4:
	ldr	w0, [x22]
	mov	w1, #0
	mov	w2, #0
	bl	_svctcp_create
	str	x0, [x19]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_6:
	ldr	x0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh13:
	adrp	x22, _yp_dispatch@GOTPAGE
Lloh14:
	ldr	x22, [x22, _yp_dispatch@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh15:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	bl	_svc_register
	cbnz	w0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_8:
	ldr	x0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w3, [x22]
Lloh20:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	bl	_svc_register
	cbz	w0, LBB0_10
; %bb.9:
	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
LBB0_10:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_fatal
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_env,8,3                        ; @env
	.comm	_YPPROG,4,2                     ; @YPPROG
	.comm	_YPVERS,4,2                     ; @YPVERS
	.comm	_RPC_ANYSOCK,4,2                ; @RPC_ANYSOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create udp service"

l_.str.1:                               ; @.str.1
	.asciz	"cannot create tcp service"

	.comm	_yp_dispatch,4,2                ; @yp_dispatch
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
l_.str.2:                               ; @.str.2
	.asciz	"unable to register (YPPROG, YPVERS, udp)"

	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
l_.str.3:                               ; @.str.3
	.asciz	"unable to register (YPPROG, YPVERS, tcp)"

.subsections_via_symbols
