	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ypproc_next_2_svc              ## -- Begin function ypproc_next_2_svc
	.p2align	4, 0x90
_ypproc_next_2_svc:                     ## @ypproc_next_2_svc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	leaq	_ypproc_next_2_svc.res(%rip), %rsi
	callq	_yp_valid_domain
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_log_debug
	movq	_YP_NOMAP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movl	4(%rbx), %r15d
	leal	1(%r15), %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_strncpy
	movq	%r14, -56(%rbp)
	movq	_user_name_tree@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_env@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	4(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_RB_FIND
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	4(%rax), %esi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdx
	callq	_RB_INSERT
	movl	(%r12), %edi
	movq	(%r13), %rsi
	addq	$4, %rsi
	movq	%r15, %rdx
	callq	_RB_NEXT
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdx
	callq	_RB_REMOVE
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_9:
	movq	(%rbx), %rbx
LBB0_10:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rax,%rbx), %r15
	leaq	(%rax,%rbx), %rdi
	incq	%rdi
	callq	_strlen
	cltq
	leaq	(%rax,%r15), %rdx
	addq	$2, %rdx
	leaq	_ypproc_next_2_svc.res(%rip), %rdi
	movq	%rdx, %rsi
	callq	_yp_make_keyval
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_12:
	movl	4(%rbx), %r15d
	leal	1(%r15), %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.13:
	movq	%rax, %r14
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_strncpy
	movq	%r14, -48(%rbp)
	movq	_group_name_tree@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_env@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_RB_FIND
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdx
	callq	_RB_INSERT
	movl	(%r12), %edi
	movq	(%r13), %rsi
	movq	%r15, %rdx
	callq	_RB_NEXT
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_RB_REMOVE
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_15:
	movq	8(%rbx), %rbx
	jmp	LBB0_10
LBB0_4:
	movq	_YP_YPERR@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, _ypproc_next_2_svc.res(%rip)
LBB0_18:
	leaq	_ypproc_next_2_svc.res(%rip), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_YP_NOKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _ypproc_next_2_svc.res(%rip)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ypproc_next_2_svc.res,8,3 ## @ypproc_next_2_svc.res
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"passwd.byname"

L_.str.1:                               ## @.str.1
	.asciz	"master.passwd.byname"

	.comm	_YP_YPERR,8,3                   ## @YP_YPERR
	.comm	_user_name_tree,4,2             ## @user_name_tree
	.comm	_env,8,3                        ## @env
	.comm	_YP_NOKEY,8,3                   ## @YP_NOKEY
L_.str.2:                               ## @.str.2
	.asciz	"group.byname"

	.comm	_group_name_tree,4,2            ## @group_name_tree
L_.str.3:                               ## @.str.3
	.asciz	"unknown map %s"

	.comm	_YP_NOMAP,8,3                   ## @YP_NOMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ypproc_next_2_svc              ; -- Begin function ypproc_next_2_svc
	.p2align	2
_ypproc_next_2_svc:                     ; @ypproc_next_2_svc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x1, _ypproc_next_2_svc.res@PAGE
Lloh1:
	add	x1, x1, _ypproc_next_2_svc.res@PAGEOFF
	bl	_yp_valid_domain
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w1, [x20]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_debug
Lloh10:
	adrp	x8, _YP_NOMAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _YP_NOMAP@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	ldr	w21, [x20, #4]
	add	w0, w21, #1
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_15
; %bb.6:
	mov	x19, x0
	ldr	w1, [x20, #8]
	mov	x2, x21
	bl	_strncpy
Lloh12:
	adrp	x21, _user_name_tree@GOTPAGE
Lloh13:
	ldr	x21, [x21, _user_name_tree@GOTPAGEOFF]
	str	x19, [sp]
	ldr	w0, [x21]
Lloh14:
	adrp	x22, _env@GOTPAGE
Lloh15:
	ldr	x22, [x22, _env@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x2, sp
	bl	_RB_FIND
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x2, sp
	bl	_RB_INSERT
	ldr	w0, [x21]
	ldr	x8, [x22]
	add	x1, x8, #4
	mov	x2, sp
	bl	_RB_NEXT
	mov	x20, x0
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x2, sp
	bl	_RB_REMOVE
	cbz	x20, LBB0_18
LBB0_8:
	ldr	x20, [x20]
LBB0_9:
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	add	x20, x20, w8, sxtw
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	add	x1, x20, w8, sxtw
Lloh16:
	adrp	x0, _ypproc_next_2_svc.res@PAGE
Lloh17:
	add	x0, x0, _ypproc_next_2_svc.res@PAGEOFF
	mov	x2, x1
	bl	_yp_make_keyval
LBB0_10:
	mov	x0, x19
	bl	_free
	b	LBB0_17
LBB0_11:
	ldr	w21, [x20, #4]
	add	w0, w21, #1
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_15
; %bb.12:
	mov	x19, x0
	ldr	w1, [x20, #8]
	mov	x2, x21
	bl	_strncpy
Lloh18:
	adrp	x21, _group_name_tree@GOTPAGE
Lloh19:
	ldr	x21, [x21, _group_name_tree@GOTPAGEOFF]
	str	x19, [sp, #8]
	ldr	w0, [x21]
Lloh20:
	adrp	x22, _env@GOTPAGE
Lloh21:
	ldr	x22, [x22, _env@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x2, sp
	bl	_RB_FIND
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x2, sp
	bl	_RB_INSERT
	ldr	w0, [x21]
	ldr	x1, [x22]
	mov	x2, sp
	bl	_RB_NEXT
	mov	x20, x0
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x2, sp
	bl	_RB_REMOVE
	cbz	x20, LBB0_18
LBB0_14:
	ldr	x20, [x20, #8]
	b	LBB0_9
LBB0_15:
Lloh22:
	adrp	x8, _YP_YPERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _YP_YPERR@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	adrp	x9, _ypproc_next_2_svc.res@PAGE
	str	x8, [x9, _ypproc_next_2_svc.res@PAGEOFF]
LBB0_17:
Lloh24:
	adrp	x0, _ypproc_next_2_svc.res@PAGE
Lloh25:
	add	x0, x0, _ypproc_next_2_svc.res@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
Lloh26:
	adrp	x8, _YP_NOKEY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _YP_NOKEY@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	adrp	x9, _ypproc_next_2_svc.res@PAGE
	str	x8, [x9, _ypproc_next_2_svc.res@PAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ypproc_next_2_svc.res,8,3 ; @ypproc_next_2_svc.res
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"passwd.byname"

l_.str.1:                               ; @.str.1
	.asciz	"master.passwd.byname"

	.comm	_YP_YPERR,8,3                   ; @YP_YPERR
	.comm	_user_name_tree,4,2             ; @user_name_tree
	.comm	_env,8,3                        ; @env
	.comm	_YP_NOKEY,8,3                   ; @YP_NOKEY
l_.str.2:                               ; @.str.2
	.asciz	"group.byname"

	.comm	_group_name_tree,4,2            ; @group_name_tree
l_.str.3:                               ; @.str.3
	.asciz	"unknown map %s"

	.comm	_YP_NOMAP,8,3                   ; @YP_NOMAP
.subsections_via_symbols
