	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_sipc_service_unix         ## -- Begin function heim_sipc_service_unix
	.p2align	4, 0x90
_heim_sipc_service_unix:                ## @heim_sipc_service_unix
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rcx
	movq	_AF_UNIX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -36(%rbp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	(%rbx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$1, %esi
	callq	_socket_set_reuseaddr
	callq	_unlink
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_SOMAXCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movl	-40(%rbp), %edi
	movl	$438, %esi                      ## imm = 0x1B6
	callq	_chmod
	movq	_HEIM_SIPC_TYPE_IPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_heim_sipc_stream_listener
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_UNIX_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movl	%ebx, %edi
	callq	_close
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/var/run/.heim_%s-socket"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_errno,4,2                      ## @errno
	.comm	_SOMAXCONN,4,2                  ## @SOMAXCONN
	.comm	_HEIM_SIPC_TYPE_IPC,4,2         ## @HEIM_SIPC_TYPE_IPC
	.comm	_UNIX_SOCKET,4,2                ## @UNIX_SOCKET
	.comm	_LOCAL_CREDS,4,2                ## @LOCAL_CREDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_sipc_service_unix         ; -- Begin function heim_sipc_service_unix
	.p2align	2
_heim_sipc_service_unix:                ; @heim_sipc_service_unix
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_UNIX@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #12]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x0
	bl	_snprintf
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	w1, #1
	bl	_socket_set_reuseaddr
	bl	_unlink
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #8
	bl	_bind
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _SOMAXCONN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOMAXCONN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_listen
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	w0, [sp, #8]
	mov	w1, #438
	bl	_chmod
Lloh10:
	adrp	x8, _HEIM_SIPC_TYPE_IPC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HEIM_SIPC_TYPE_IPC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_heim_sipc_stream_listener
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _UNIX_SOCKET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _UNIX_SOCKET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_close
LBB0_6:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/var/run/.heim_%s-socket"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_errno,4,2                      ; @errno
	.comm	_SOMAXCONN,4,2                  ; @SOMAXCONN
	.comm	_HEIM_SIPC_TYPE_IPC,4,2         ; @HEIM_SIPC_TYPE_IPC
	.comm	_UNIX_SOCKET,4,2                ; @UNIX_SOCKET
	.comm	_LOCAL_CREDS,4,2                ; @LOCAL_CREDS
.subsections_via_symbols
