	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_nscd_connection__         ## -- Begin function open_nscd_connection__
	.p2align	4, 0x90
_open_nscd_connection__:                ## @open_nscd_connection__
	.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
	movq	_open_nscd_connection@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_PF_LOCAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_strlcpy
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	5(%rax), %edx
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_fcntl
	movl	$1, %edi
	movl	$12, %esi
	callq	_calloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	%r14d, (%r12)
	xorl	%eax, %eax
	callq	_kqueue
	movq	%rax, %rbx
	movl	%ebx, 4(%r12)
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	setne	%dil
	callq	_assert
	movq	_EVFILT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	$0, (%rsp)
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EV_SET
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	xorl	%eax, %eax
	callq	_kqueue
	movq	%rax, %rbx
	movl	%ebx, 8(%r12)
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	setne	%dil
	callq	_assert
	movq	_EVFILT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	_open_nscd_connection@GOTPCREL(%rip), %r13
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EV_SET
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %edi
	callq	_close
	xorl	%r12d, %r12d
LBB0_3:
	movl	(%r13), %edi
	callq	_TRACE_OUT
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_open_nscd_connection,4,2       ## @open_nscd_connection
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EVFILT_WRITE,4,2               ## @EVFILT_WRITE
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EVFILT_READ,4,2                ## @EVFILT_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open_nscd_connection__         ; -- Begin function open_nscd_connection__
	.p2align	2
_open_nscd_connection__:                ; @open_nscd_connection__
	.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	x20, x0
Lloh0:
	adrp	x22, _open_nscd_connection@GOTPAGE
Lloh1:
	ldr	x22, [x22, _open_nscd_connection@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TRACE_IN
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
Lloh2:
	adrp	x21, _PF_LOCAL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PF_LOCAL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	ldr	w8, [x21]
	str	w8, [sp, #4]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_strlcpy
	bl	_strlen
	add	w2, w0, #5
	mov	x1, sp
	mov	x0, x19
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fcntl
	mov	w0, #1
	mov	w1, #12
	bl	_calloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	str	w19, [x20]
	bl	_kqueue
	mov	x21, x0
	str	w21, [x20, #4]
	cmn	w21, #1
	cset	w0, ne
	bl	_assert
Lloh13:
	adrp	x8, _EVFILT_WRITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVFILT_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x23, _EV_ADD@GOTPAGE
Lloh17:
	ldr	x23, [x23, _EV_ADD@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	x1, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	bl	_kqueue
	mov	x21, x0
	str	w21, [x20, #8]
	cmn	w21, #1
	cset	w0, ne
	bl	_assert
Lloh18:
	adrp	x8, _EVFILT_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVFILT_READ@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	x1, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_close
	mov	x20, #0
LBB0_3:
	ldr	w0, [x22]
	bl	_TRACE_OUT
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_open_nscd_connection,4,2       ; @open_nscd_connection
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EVFILT_WRITE,4,2               ; @EVFILT_WRITE
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EVFILT_READ,4,2                ; @EVFILT_READ
.subsections_via_symbols
