	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_open_db                     ## -- Begin function yp_open_db
	.p2align	4, 0x90
_yp_open_db:                            ## @yp_open_db
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$2, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_YP_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_yp_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_YP_BADARGS@GOTPCREL(%rip), %r13
	cmpb	$46, (%r12)
	je	LBB0_8
## %bb.1:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	_yp_errno@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	movl	(%r13), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_yp_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %r8
	movq	%r12, %r9
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PERM_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DB_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_dbopen
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.5:
	movq	_YP_BADDB@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_4:
	movq	_YP_YPERR@GOTPCREL(%rip), %r13
LBB0_6:
	movq	_yp_errno@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.7:
	movq	_YP_NOMAP@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_YP_TRUE,4,2                    ## @YP_TRUE
	.comm	_yp_errno,4,2                   ## @yp_errno
	.comm	_YP_BADARGS,4,2                 ## @YP_BADARGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s/%s"

	.comm	_yp_dir,8,3                     ## @yp_dir
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PERM_SECURE,4,2                ## @PERM_SECURE
	.comm	_DB_HASH,4,2                    ## @DB_HASH
	.comm	_errno,4,2                      ## @errno
	.comm	_YP_NOMAP,4,2                   ## @YP_NOMAP
	.comm	_YP_BADDB,4,2                   ## @YP_BADDB
	.comm	_YP_YPERR,4,2                   ## @YP_YPERR
	.comm	_YP_NODOM,4,2                   ## @YP_NODOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_open_db                     ; -- Begin function yp_open_db
	.p2align	2
_yp_open_db:                            ; @yp_open_db
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #2
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _YP_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _YP_TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x23, _yp_errno@GOTPAGE
Lloh12:
	ldr	x23, [x23, _yp_errno@GOTPAGEOFF]
	str	w8, [x23]
	ldrb	w8, [x1]
	cmp	w8, #46
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_6
LBB0_2:
Lloh13:
	adrp	x8, _YP_BADARGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _YP_BADARGS@GOTPAGEOFF]
LBB0_3:
	mov	x0, #0
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh18:
	adrp	x8, _yp_dir@GOTPAGE
Lloh19:
	ldr	x8, [x8, _yp_dir@GOTPAGEOFF]
Lloh20:
	ldr	x3, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x4, x20
	mov	x5, x19
	bl	_snprintf
Lloh23:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _PERM_SECURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PERM_SECURE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _DB_HASH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DB_HASH@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, #0
	bl	_dbopen
	cbnz	x0, LBB0_4
; %bb.7:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _YP_YPERR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _YP_YPERR@GOTPAGEOFF]
Lloh37:
	adrp	x10, _YP_BADDB@GOTPAGE
Lloh38:
	ldr	x10, [x10, _YP_BADDB@GOTPAGEOFF]
	cmp	w8, #130
	csel	x9, x10, x9, eq
Lloh39:
	adrp	x10, _YP_NOMAP@GOTPAGE
Lloh40:
	ldr	x10, [x10, _YP_NOMAP@GOTPAGEOFF]
	cmp	w8, #128
	csel	x8, x10, x9, eq
	b	LBB0_3
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_YP_TRUE,4,2                    ; @YP_TRUE
	.comm	_yp_errno,4,2                   ; @yp_errno
	.comm	_YP_BADARGS,4,2                 ; @YP_BADARGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s/%s"

	.comm	_yp_dir,8,3                     ; @yp_dir
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PERM_SECURE,4,2                ; @PERM_SECURE
	.comm	_DB_HASH,4,2                    ; @DB_HASH
	.comm	_errno,4,2                      ; @errno
	.comm	_YP_NOMAP,4,2                   ; @YP_NOMAP
	.comm	_YP_BADDB,4,2                   ; @YP_BADDB
	.comm	_YP_YPERR,4,2                   ; @YP_YPERR
	.comm	_YP_NODOM,4,2                   ; @YP_NODOM
.subsections_via_symbols
