	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adist_receiver                 ## -- Begin function adist_receiver
	.p2align	4, 0x90
_adist_receiver:                        ## @adist_receiver
	.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, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	callq	_proto_close
	movq	$0, 16(%r15)
	movl	%ebx, (%r15)
	jmp	LBB0_8
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_pjdlog_errno
	movq	16(%r15), %rdi
	callq	_proto_close
	movq	$0, 16(%r15)
	jmp	LBB0_8
LBB0_4:
	movq	_adcfg@GOTPCREL(%rip), %r13
	movq	%r14, (%r13)
	movq	_adhost@GOTPCREL(%rip), %r12
	movq	%r15, (%r12)
	xorl	%eax, %eax
	callq	_pjdlog_mode_get
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_pjdlog_debug_get
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_descriptors_cleanup
	movl	%r14d, %edi
	callq	_pjdlog_init
	movl	%ebx, %edi
	callq	_pjdlog_debug_set
	movq	(%r12), %rax
	movl	8(%rax), %ebx
	movl	12(%rax), %edi
	callq	_role2str
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pjdlog_prefix_set
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_PJDLOG_VERIFY
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	movq	(%r13), %rax
	movl	(%rax), %esi
	callq	_proto_timeout
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pjdlog_errno
LBB0_6:
	xorl	%eax, %eax
	callq	_init_environment
	movq	(%r12), %rax
	movl	$-1, 4(%rax)
	xorl	%eax, %eax
	callq	_receiver_directory_open
	movq	_ADIST_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rax
	movl	12(%rax), %edi
	callq	_role2str
	movq	(%r12), %rcx
	movl	8(%rcx), %r8d
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	movl	%eax, %ecx
	callq	_sandbox
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_pjdlog_info
	xorl	%eax, %eax
	callq	_receiver_connect
	movq	_recv_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rcx
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	_disk_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	(%r12), %rdi
	callq	_send_thread
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to fork"

	.comm	_adcfg,8,3                      ## @adcfg
	.comm	_adhost,8,3                     ## @adhost
L_.str.1:                               ## @.str.1
	.asciz	"[%s] (%s) "

	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Unable to set connection timeout"

	.comm	_ADIST_USER,4,2                 ## @ADIST_USER
L_.str.3:                               ## @.str.3
	.asciz	"auditdistd: %s (%s)"

	.comm	_EX_CONFIG,4,2                  ## @EX_CONFIG
L_.str.4:                               ## @.str.4
	.asciz	"Privileges successfully dropped."

	.comm	_recv_thread,4,2                ## @recv_thread
	.comm	_disk_thread,4,2                ## @disk_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adist_receiver                 ; -- Begin function adist_receiver
	.p2align	2
_adist_receiver:                        ; @adist_receiver
	.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, x1
	mov	x21, x0
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_proto_close
	str	xzr, [x19, #16]
	str	w20, [x19]
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pjdlog_errno
	ldr	x0, [x19, #16]
	bl	_proto_close
	str	xzr, [x19, #16]
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x22, _adcfg@GOTPAGE
Lloh6:
	ldr	x22, [x22, _adcfg@GOTPAGEOFF]
	str	x21, [x22]
Lloh7:
	adrp	x21, _adhost@GOTPAGE
Lloh8:
	ldr	x21, [x21, _adhost@GOTPAGEOFF]
	str	x19, [x21]
	bl	_pjdlog_mode_get
	mov	x19, x0
	bl	_pjdlog_debug_get
	mov	x20, x0
	ldr	x0, [x21]
	bl	_descriptors_cleanup
	mov	x0, x19
	bl	_pjdlog_init
	mov	x0, x20
	bl	_pjdlog_debug_set
	ldr	x8, [x21]
	ldp	w19, w0, [x8, #8]
	bl	_role2str
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pjdlog_prefix_set
	add	x0, sp, #12
	bl	_sigemptyset
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
Lloh11:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	cmp	x0, #0
	cset	w0, eq
	bl	_PJDLOG_VERIFY
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_proto_timeout
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_errno
LBB0_6:
	bl	_init_environment
	ldr	x8, [x21]
	mov	w9, #-1
	str	w9, [x8, #4]
	bl	_receiver_directory_open
Lloh19:
	adrp	x8, _ADIST_USER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADIST_USER@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	bl	_role2str
	mov	x3, x0
	ldr	x8, [x21]
	ldr	w4, [x8, #8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_sandbox
	cbnz	x0, LBB0_9
; %bb.7:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pjdlog_info
	bl	_receiver_connect
Lloh26:
	adrp	x8, _recv_thread@GOTPAGE
Lloh27:
	ldr	x8, [x8, _recv_thread@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	x3, [x21]
	add	x0, sp, #8
	mov	x1, #0
	bl	_pthread_create
	cmp	w0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
Lloh29:
	adrp	x8, _disk_thread@GOTPAGE
Lloh30:
	ldr	x8, [x8, _disk_thread@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	x3, [x21]
	add	x0, sp, #8
	mov	x1, #0
	bl	_pthread_create
	cmp	w0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x0, [x21]
	bl	_send_thread
LBB0_8:
	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
LBB0_9:
Lloh32:
	adrp	x8, _EX_CONFIG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EX_CONFIG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to fork"

	.comm	_adcfg,8,3                      ; @adcfg
	.comm	_adhost,8,3                     ; @adhost
l_.str.1:                               ; @.str.1
	.asciz	"[%s] (%s) "

	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Unable to set connection timeout"

	.comm	_ADIST_USER,4,2                 ; @ADIST_USER
l_.str.3:                               ; @.str.3
	.asciz	"auditdistd: %s (%s)"

	.comm	_EX_CONFIG,4,2                  ; @EX_CONFIG
l_.str.4:                               ; @.str.4
	.asciz	"Privileges successfully dropped."

	.comm	_recv_thread,4,2                ; @recv_thread
	.comm	_disk_thread,4,2                ; @disk_thread
.subsections_via_symbols
