	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adist_sender                   ## -- Begin function adist_sender
	.p2align	4, 0x90
_adist_sender:                          ## @adist_sender
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	24(%rsi), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	$-1, %edx
	movq	%r14, %rcx
	callq	_proto_connect
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_4
## %bb.11:
	movl	%eax, (%rbx)
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_proto_recv                     ## TAILCALL
LBB0_10:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pjdlog_errno                   ## TAILCALL
LBB0_2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pjdlog_errno
	movq	(%r14), %rdi
	callq	_proto_close
	movq	$0, (%r14)
	jmp	LBB0_9
LBB0_4:
	movq	_adcfg@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_adhost@GOTPCREL(%rip), %r15
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	callq	_pjdlog_mode_get
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_pjdlog_debug_get
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	24(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_proto_send
	movq	(%r15), %rdi
	callq	_descriptors_cleanup
	movl	%r14d, %edi
	callq	_pjdlog_init
	movl	%ebx, %edi
	callq	_pjdlog_debug_set
	movq	(%r15), %rax
	movl	12(%rax), %ebx
	movl	16(%rax), %edi
	callq	_role2str
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pjdlog_prefix_set
	movq	(%r15), %rax
	movl	20(%rax), %edi
	xorl	%esi, %esi
	callq	_trail_new
	movq	_adist_trail@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	_ADIST_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rax
	movl	16(%rax), %edi
	callq	_role2str
	movq	(%r15), %rcx
	movl	12(%rcx), %r8d
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	movl	%eax, %ecx
	callq	_sandbox
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pjdlog_info
	movq	(%r14), %rdi
	callq	_trail_dirfd
	movl	%eax, %edi
	callq	_wait_for_dir_init
	xorl	%eax, %eax
	callq	_init_environment
	xorl	%eax, %eax
	callq	_sender_connect
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movl	8(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pjdlog_info
LBB0_8:
	movq	(%r15), %rax
	movl	$1, 4(%rax)
	movq	_guard_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	_send_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	_recv_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	callq	_read_thread
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EX_OSFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_13:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair://"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create connection sockets between child and parent"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to fork"

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Successfully connected to %s."

	.comm	_guard_thread,4,2               ## @guard_thread
	.comm	_send_thread,4,2                ## @send_thread
	.comm	_recv_thread,4,2                ## @recv_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adist_sender                   ; -- Begin function adist_sender
	.p2align	2
_adist_sender:                          ; @adist_sender
	.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	x20, x1
	mov	x21, x0
	add	x19, x1, #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	mov	w2, #-1
	mov	x3, x19
	bl	_proto_connect
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	str	w0, [x20]
	ldr	x0, [x20, #24]
	mov	x1, #0
	mov	w2, #0
	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
	b	_proto_recv
LBB0_4:
Lloh2:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_pjdlog_errno
LBB0_5:
Lloh7:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_errno
	ldr	x0, [x19]
	bl	_proto_close
	str	xzr, [x19]
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x8, _adcfg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _adcfg@GOTPAGEOFF]
Lloh14:
	str	x21, [x8]
Lloh15:
	adrp	x21, _adhost@GOTPAGE
Lloh16:
	ldr	x21, [x21, _adhost@GOTPAGEOFF]
	str	x20, [x21]
	bl	_pjdlog_mode_get
	mov	x19, x0
	bl	_pjdlog_debug_get
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x0, [x8, #24]
	mov	x1, #0
	mov	w2, #0
	bl	_proto_send
	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, #12]
	bl	_role2str
	mov	x2, x0
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pjdlog_prefix_set
	ldr	x8, [x21]
	ldr	w0, [x8, #20]
	mov	w1, #0
	bl	_trail_new
Lloh19:
	adrp	x20, _adist_trail@GOTPAGE
Lloh20:
	ldr	x20, [x20, _adist_trail@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.7:
Lloh21:
	adrp	x8, _ADIST_USER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADIST_USER@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	ldr	x8, [x21]
	ldr	w0, [x8, #16]
	bl	_role2str
	mov	x3, x0
	ldr	x8, [x21]
	ldr	w4, [x8, #12]
Lloh24:
	adrp	x2, l_.str.4@PAGE
Lloh25:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_sandbox
	cbnz	x0, LBB0_13
; %bb.8:
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pjdlog_info
	ldr	x0, [x20]
	bl	_trail_dirfd
	bl	_wait_for_dir_init
	bl	_init_environment
	bl	_sender_connect
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pjdlog_info
LBB0_10:
	ldr	x8, [x21]
	mov	w9, #1
	str	w9, [x8, #4]
Lloh30:
	adrp	x8, _guard_thread@GOTPAGE
Lloh31:
	ldr	x8, [x8, _guard_thread@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	cmp	w0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
Lloh33:
	adrp	x8, _send_thread@GOTPAGE
Lloh34:
	ldr	x8, [x8, _send_thread@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	cmp	w0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
Lloh36:
	adrp	x8, _recv_thread@GOTPAGE
Lloh37:
	ldr	x8, [x8, _recv_thread@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	cmp	w0, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	mov	x0, #0
	bl	_read_thread
LBB0_11:
	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_12:
Lloh39:
	adrp	x8, _EX_OSFILE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EX_OSFILE@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_exit
LBB0_13:
Lloh42:
	adrp	x8, _EX_CONFIG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EX_CONFIG@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair://"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create connection sockets between child and parent"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to fork"

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Successfully connected to %s."

	.comm	_guard_thread,4,2               ; @guard_thread
	.comm	_send_thread,4,2                ; @send_thread
	.comm	_recv_thread,4,2                ; @recv_thread
.subsections_via_symbols
