	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daemon_conn_thread
_daemon_conn_thread:                    ## @daemon_conn_thread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_NEVERBLEED_AUTH_TOKEN_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_read_nbytes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	_daemon_vars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	-56(%rbp), %rdi
	movl	%r12d, %esi
	callq	_expbuf_read
	testq	%rax, %rax
	je	LBB0_5
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_warnf
LBB0_28:
	leaq	-56(%rbp), %rdi
	callq	_expbuf_dispose
	movl	%r12d, %edi
	callq	_close
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-56(%rbp), %r14
	leaq	L_.str.4(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_expbuf_shift_str
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_setuidgid_stub
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_priv_enc_stub
	jmp	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_priv_dec_stub
	jmp	LBB0_14
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_sign_stub
	jmp	LBB0_14
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_load_key_stub
	jmp	LBB0_14
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_del_rsa_key_stub
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jne	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_expbuf_write
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_expbuf_dispose
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_expbuf_read
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rdi
	cmoveq	%rax, %rdi
	jmp	LBB0_2
LBB0_27:
	leaq	L_.str.10(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warnf
	jmp	LBB0_28
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NEVERBLEED_AUTH_TOKEN_SIZE,4,2 ## @NEVERBLEED_AUTH_TOKEN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to receive authencication token from client"

	.comm	_daemon_vars,8,3                ## @daemon_vars
L_.str.1:                               ## @.str.1
	.asciz	"client authentication failed"

	.comm	_errno,8,3                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"read error"

L_.str.3:                               ## @.str.3
	.asciz	"failed to parse request"

L_.str.4:                               ## @.str.4
	.asciz	"priv_enc"

L_.str.5:                               ## @.str.5
	.asciz	"priv_dec"

L_.str.6:                               ## @.str.6
	.asciz	"sign"

L_.str.7:                               ## @.str.7
	.asciz	"load_key"

L_.str.8:                               ## @.str.8
	.asciz	"del_rsa_key"

L_.str.9:                               ## @.str.9
	.asciz	"setuidgid"

L_.str.10:                              ## @.str.10
	.asciz	"unknown command:%s"

L_.str.11:                              ## @.str.11
	.asciz	"write error"

L_.str.12:                              ## @.str.12
	.asciz	"connection closed by client"

	.no_dead_strip	_daemon_conn_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daemon_conn_thread
_daemon_conn_thread:                    ; @daemon_conn_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x21, _NEVERBLEED_AUTH_TOKEN_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NEVERBLEED_AUTH_TOKEN_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_read_nbytes
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh9:
	adrp	x8, _daemon_vars@GOTPAGE
Lloh10:
	ldr	x8, [x8, _daemon_vars@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	sub	x0, x29, #96
	mov	x1, x19
	bl	_expbuf_read
	cbz	x0, LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_warnf
LBB0_8:
	sub	x0, x29, #96
	bl	_expbuf_dispose
	mov	x0, x19
	bl	_close
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.9:
	mov	x0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh22:
	adrp	x20, l_.str.4@PAGE
Lloh23:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh24:
	adrp	x21, l_.str.5@PAGE
Lloh25:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh26:
	adrp	x22, l_.str.6@PAGE
Lloh27:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh28:
	adrp	x23, l_.str.7@PAGE
Lloh29:
	add	x23, x23, l_.str.7@PAGEOFF
Lloh30:
	adrp	x24, l_.str.8@PAGE
Lloh31:
	add	x24, x24, l_.str.8@PAGEOFF
Lloh32:
	adrp	x25, l_.str.9@PAGE
Lloh33:
	add	x25, x25, l_.str.9@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #96
	bl	_expbuf_shift_str
	cbz	x0, LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, x0
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	mov	x1, x25
	bl	_strcmp
	cbnz	x0, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_setuidgid_stub
	cbz	x0, LBB0_24
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_priv_enc_stub
	cbz	x0, LBB0_24
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_priv_dec_stub
	cbz	x0, LBB0_24
	b	LBB0_8
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_sign_stub
	cbz	x0, LBB0_24
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_load_key_stub
	cbz	x0, LBB0_24
	b	LBB0_8
LBB0_23:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_del_rsa_key_stub
	cbnz	x0, LBB0_8
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	mov	x1, x19
	bl	_expbuf_write
	cbnz	x0, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x0, x29, #96
	bl	_expbuf_dispose
	sub	x0, x29, #96
	mov	x1, x19
	bl	_expbuf_read
	cbz	x0, LBB0_11
	b	LBB0_5
LBB0_26:
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	str	xzr, [x8]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_27:
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, l_.str.11@PAGE
Lloh43:
	add	x9, x9, l_.str.11@PAGEOFF
Lloh44:
	adrp	x10, l_.str.12@PAGE
Lloh45:
	add	x10, x10, l_.str.12@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	b	LBB0_7
LBB0_28:
	str	x26, [sp, #-16]!
Lloh46:
	adrp	x0, l_.str.10@PAGE
Lloh47:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_warnf
	add	sp, sp, #16
	b	LBB0_8
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_NEVERBLEED_AUTH_TOKEN_SIZE,4,2 ; @NEVERBLEED_AUTH_TOKEN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to receive authencication token from client"

	.comm	_daemon_vars,8,3                ; @daemon_vars
l_.str.1:                               ; @.str.1
	.asciz	"client authentication failed"

	.comm	_errno,8,3                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"read error"

l_.str.3:                               ; @.str.3
	.asciz	"failed to parse request"

l_.str.4:                               ; @.str.4
	.asciz	"priv_enc"

l_.str.5:                               ; @.str.5
	.asciz	"priv_dec"

l_.str.6:                               ; @.str.6
	.asciz	"sign"

l_.str.7:                               ; @.str.7
	.asciz	"load_key"

l_.str.8:                               ; @.str.8
	.asciz	"del_rsa_key"

l_.str.9:                               ; @.str.9
	.asciz	"setuidgid"

l_.str.10:                              ; @.str.10
	.asciz	"unknown command:%s"

l_.str.11:                              ; @.str.11
	.asciz	"write error"

l_.str.12:                              ; @.str.12
	.asciz	"connection closed by client"

	.no_dead_strip	_daemon_conn_thread
.subsections_via_symbols
