	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nis_search                     ## -- Begin function nis_search
	.p2align	4, 0x90
_nis_search:                            ## @nis_search
	.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	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_gopt@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_2:
	movq	_has_yp_order@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.4:
	movl	(%r14), %edi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rsi
	callq	_yp_order
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movslq	-44(%rbp), %rax
	cmpq	%rax, (%rbx)
	jl	LBB0_6
LBB0_8:
	movl	(%r14), %ebx
	movq	%r15, %r14
	movq	%r15, %rdi
	callq	_strlen
	leaq	-60(%rbp), %r9
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_yp_match
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.9:
	movq	_CFM_SUN_MAP_SYNTAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	(%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sun_entry2amd
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_XFREE
	xorl	%eax, %eax
	cmpq	$1, (%r15)
	sbbl	%eax, %eax
	jmp	LBB0_18
LBB0_1:
	xorl	%eax, %eax
	callq	_determine_nis_domain
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_2
LBB0_7:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -44(%rbp)
	cltq
	movq	%rax, %rcx
	subq	(%rbx), %rcx
	cmpq	8(%r14), %rcx
	jle	LBB0_8
LBB0_6:
	movq	%rax, (%rbx)
	movl	$-1, %eax
	jmp	LBB0_18
LBB0_19:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_nis_isup
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	negl	%ecx
	sbbl	%eax, %eax
	orl	(%rdx), %eax
	jmp	LBB0_18
LBB0_12:
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_yperr_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_plog
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gopt,16,3                      ## @gopt
	.comm	_has_yp_order,4,2               ## @has_yp_order
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CFM_SUN_MAP_SYNTAX,4,2         ## @CFM_SUN_MAP_SYNTAX
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nis_search: %s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nis_search                     ; -- Begin function nis_search
	.p2align	2
_nis_search:                            ; @nis_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _gopt@GOTPAGE
Lloh1:
	ldr	x24, [x24, _gopt@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_10
LBB0_1:
Lloh2:
	adrp	x8, _has_yp_order@GOTPAGE
Lloh3:
	ldr	x8, [x8, _has_yp_order@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.3:
	ldr	w0, [x24]
	add	x2, sp, #8
	mov	x1, x19
	bl	_yp_order
	cbnz	w0, LBB0_16
; %bb.4:
	ldrsw	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x9, x8
	b.lt	LBB0_12
LBB0_5:
	ldr	w23, [x24]
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	add	x5, sp, #12
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x4, x20
	bl	_yp_match
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CFM_SUN_MAP_SYNTAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CFM_SUN_MAP_SYNTAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_14
LBB0_7:
	cbz	w0, LBB0_18
; %bb.8:
	cmp	w0, #128
	b.ne	LBB0_15
; %bb.9:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	bl	_determine_nis_domain
	cbnz	w0, LBB0_18
	b	LBB0_1
LBB0_11:
	mov	x0, #0
	bl	_time
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #8]
	sxtw	x8, w0
	ldr	x9, [x23]
	ldr	x10, [x24, #8]
	sub	x9, x8, x9
	cmp	x9, x10
	b.le	LBB0_5
LBB0_12:
	str	x8, [x23]
	mov	w0, #-1
	b	LBB0_18
LBB0_13:
	mov	x0, x22
	mov	x1, x19
	bl	_nis_isup
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, #0
	csinv	w0, w8, wzr, eq
	b	LBB0_18
LBB0_14:
	ldr	x19, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_sun_entry2amd
	str	x0, [x20]
	mov	x0, x19
	bl	_XFREE
	ldr	x8, [x20]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_18
LBB0_15:
Lloh13:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	bl	_yperr_string
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_plog
LBB0_16:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_gopt,16,3                      ; @gopt
	.comm	_has_yp_order,4,2               ; @has_yp_order
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CFM_SUN_MAP_SYNTAX,4,2         ; @CFM_SUN_MAP_SYNTAX
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nis_search: %s: %s"

.subsections_via_symbols
