	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connectlog
_connectlog:                            ## @connectlog
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LogFile@GOTPCREL(%rip), %r14
	cmpl	$-1, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movq	_SOCK_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	__socket
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_16
LBB0_2:
	movq	_status@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_NOCONN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_16
## %bb.3:
	movl	$12, -40(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	__PATH_LOG_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$12, %edx
	callq	__connect
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	_CONNPRIV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	cmpq	(%rbx), %rax
	je	LBB0_7
	jmp	LBB0_10
LBB0_4:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_10
LBB0_7:
	movl	-36(%rbp), %edi
	movq	__PATH_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$12, %edx
	callq	__connect
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	movq	_CONNDEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_10:
	cmpq	(%rbx), %rax
	je	LBB0_11
LBB0_14:
	cmpq	(%rbx), %rax
	jne	LBB0_16
LBB0_15:
	movl	(%r14), %edi
	callq	__close
	movl	$-1, (%r14)
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_14
LBB0_11:
	movl	-36(%rbp), %edi
	movq	__PATH_OLDLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$12, %edx
	callq	__connect
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	movq	_CONNDEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	cmpq	(%rbx), %rax
	je	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	je	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LogFile,4,2                    ## @LogFile
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
	.comm	_status,8,3                     ## @status
	.comm	_NOCONN,8,3                     ## @NOCONN
	.comm	__PATH_LOG_PRIV,4,2             ## @_PATH_LOG_PRIV
	.comm	_CONNPRIV,8,3                   ## @CONNPRIV
	.comm	__PATH_LOG,4,2                  ## @_PATH_LOG
	.comm	_CONNDEF,8,3                    ## @CONNDEF
	.comm	__PATH_OLDLOG,4,2               ## @_PATH_OLDLOG
	.no_dead_strip	_connectlog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connectlog
_connectlog:                            ; @connectlog
	.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
Lloh0:
	adrp	x19, _LogFile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LogFile@GOTPAGEOFF]
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _SOCK_CLOEXEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOCK_CLOEXEC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	__socket
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_2:
Lloh11:
	adrp	x21, _status@GOTPAGE
Lloh12:
	ldr	x21, [x21, _status@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh13:
	adrp	x20, _NOCONN@GOTPAGE
Lloh14:
	ldr	x20, [x20, _NOCONN@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.3:
	mov	w8, #12
Lloh15:
	adrp	x9, _AF_UNIX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AF_UNIX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w8, [sp]
	str	w9, [sp, #8]
Lloh18:
	adrp	x8, __PATH_LOG_PRIV@GOTPAGE
Lloh19:
	ldr	x8, [x8, __PATH_LOG_PRIV@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #12
	bl	__connect
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _CONNPRIV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONNPRIV@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x21]
LBB0_6:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	w0, [sp, #4]
Lloh24:
	adrp	x8, __PATH_LOG@GOTPAGE
Lloh25:
	ldr	x8, [x8, __PATH_LOG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #12
	bl	__connect
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _CONNDEF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CONNDEF@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21]
LBB0_10:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	w0, [sp, #4]
Lloh30:
	adrp	x8, __PATH_OLDLOG@GOTPAGE
Lloh31:
	ldr	x8, [x8, __PATH_OLDLOG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #12
	bl	__connect
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _CONNDEF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CONNDEF@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_14
LBB0_13:
	ldr	x8, [x21]
LBB0_14:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x19]
	bl	__close
	mov	w8, #-1
	str	w8, [x19]
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_LogFile,4,2                    ; @LogFile
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
	.comm	_status,8,3                     ; @status
	.comm	_NOCONN,8,3                     ; @NOCONN
	.comm	__PATH_LOG_PRIV,4,2             ; @_PATH_LOG_PRIV
	.comm	_CONNPRIV,8,3                   ; @CONNPRIV
	.comm	__PATH_LOG,4,2                  ; @_PATH_LOG
	.comm	_CONNDEF,8,3                    ; @CONNDEF
	.comm	__PATH_OLDLOG,4,2               ; @_PATH_OLDLOG
	.no_dead_strip	_connectlog
.subsections_via_symbols
