	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uds_close
_uds_close:                             ## @uds_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movq	_UDS_CTX_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_2
## %bb.1:
	callq	_close
LBB0_2:
	movq	16(%rbx), %rax
	movq	_UDS_SIDE_SERVER_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	24(%rbx), %r14
	xorl	%eax, %eax
	callq	_getpid
	cmpq	%rax, %r14
	jne	LBB0_6
## %bb.4:
	movq	32(%rbx), %rax
	xorl	%edi, %edi
	cmpb	$0, (%rax)
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	32(%rbx), %rdi
	callq	_unlink
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_pjdlog_errno
LBB0_6:
	movq	$0, 24(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDS_CTX_MAGIC,8,3              ## @UDS_CTX_MAGIC
	.comm	_UDS_SIDE_SERVER_LISTEN,8,3     ## @UDS_SIDE_SERVER_LISTEN
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to unlink socket file %s"

	.no_dead_strip	_uds_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uds_close
_uds_close:                             ; @uds_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _UDS_CTX_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UDS_CTX_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x0, [x19, #8]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	bl	_close
LBB0_2:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _UDS_SIDE_SERVER_LISTEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UDS_SIDE_SERVER_LISTEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x20, [x19, #24]
	bl	_getpid
	cmp	x20, x0
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #32]
	ldrb	w8, [x8]
	cmp	w8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x0, [x19, #32]
	bl	_unlink
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x19, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pjdlog_errno
LBB0_6:
	str	xzr, [x19, #24]
	str	xzr, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UDS_CTX_MAGIC,8,3              ; @UDS_CTX_MAGIC
	.comm	_UDS_SIDE_SERVER_LISTEN,8,3     ; @UDS_SIDE_SERVER_LISTEN
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to unlink socket file %s"

	.no_dead_strip	_uds_close
.subsections_via_symbols
