	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_exec_client
_tls_exec_client:                       ## @tls_exec_client
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %edi
	callq	_pjdlog_debug_set
	leaq	L_.str(%rip), %rdi
	callq	_pjdlog_prefix_set
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_proto_set
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_4:
	movw	$12079, 4(%r13)                 ## imm = 0x2F2F
	movl	$980444020, (%r13)              ## imm = 0x3A706374
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_5:
	movl	16(%rbp), %ebx
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_7:
	movw	$12079, 4(%r12)                 ## imm = 0x2F2F
	movl	$980444020, (%r12)              ## imm = 0x3A706374
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_proto_connect
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.8:
	xorl	%eax, %eax
	callq	_SSL_load_error_strings
	xorl	%eax, %eax
	callq	_SSL_library_init
	xorl	%eax, %eax
	callq	_TLS_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_10:
	leaq	L_.str.5(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_sandbox
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_pjdlog_debug
	movq	_SSL_OP_NO_SSLv2@GOTPCREL(%rip), %rax
	movq	_SSL_OP_NO_SSLv3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SSL_CTX_set_options
	movq	%r13, %rdi
	callq	_SSL_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_14:
	movq	-72(%rbp), %rdi
	callq	_proto_descriptor
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_block
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_SSL_set_fd
	cmpl	$1, %eax
	je	LBB0_16
## %bb.15:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_pjdlog_exitx
LBB0_16:
	movq	%rbx, %rdi
	callq	_SSL_connect
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ssl_check_error
	movl	%r14d, %edi
	callq	_nonblock
	movl	%r12d, %edi
	callq	_nonblock
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_tls_certificate_verify
	movl	$1, -52(%rbp)
	leaq	-52(%rbp), %r12
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	movq	_ENOBUFS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r13), %eax
	cmpl	(%rbx), %eax
	je	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	(%r15), %eax
	je	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r14d, %edi
	movl	$-1, %esi
	callq	_wait_for_fd
	jmp	LBB0_17
LBB0_18:
	testl	%eax, %eax
	je	LBB0_25
## %bb.19:
	movl	%r14d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tls_loop
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_pjdlog_exit
LBB0_25:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_pjdlog_debug
	xorl	%edi, %edi
	callq	_exit
LBB0_26:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[TLS sandbox] (client) "

L_.str.1:                               ## @.str.1
	.asciz	"tcp:port"

	.comm	_EX_TEMPFAIL,4,2                ## @EX_TEMPFAIL
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate memory."

L_.str.3:                               ## @.str.3
	.asciz	"tcp://"

L_.str.4:                               ## @.str.4
	.asciz	"SSL_CTX_new() failed."

L_.str.5:                               ## @.str.5
	.asciz	"proto_tls client: %s"

	.comm	_EX_CONFIG,4,2                  ## @EX_CONFIG
L_.str.6:                               ## @.str.6
	.asciz	"Unable to sandbox TLS client."

L_.str.7:                               ## @.str.7
	.asciz	"Privileges successfully dropped."

	.comm	_SSL_OP_NO_SSLv2,4,2            ## @SSL_OP_NO_SSLv2
	.comm	_SSL_OP_NO_SSLv3,4,2            ## @SSL_OP_NO_SSLv3
L_.str.8:                               ## @.str.8
	.asciz	"SSL_new() failed."

L_.str.9:                               ## @.str.9
	.asciz	"SSL_set_fd() failed."

	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.10:                              ## @.str.10
	.asciz	"send() failed"

L_.str.11:                              ## @.str.11
	.asciz	"Connection terminated."

	.no_dead_strip	_tls_exec_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_exec_client
_tls_exec_client:                       ; @tls_exec_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x6
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x7
	bl	_pjdlog_debug_set
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pjdlog_prefix_set
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_proto_set
	cbz	x24, LBB0_4
; %bb.1:
	mov	x0, x24
	bl	_strdup
	mov	x24, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_exitx
LBB0_3:
	mov	w8, #12079
	strh	w8, [x24, #4]
	mov	w8, #25460
	movk	w8, #14960, lsl #16
	str	w8, [x24]
LBB0_4:
	mov	x0, x21
	bl	_strdup
	mov	x25, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_exitx
LBB0_6:
	mov	w8, #12079
	strh	w8, [x25, #4]
	mov	w8, #25460
	movk	w8, #14960, lsl #16
	str	w8, [x25]
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	bl	_proto_connect
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.7:
	bl	_SSL_load_error_strings
	bl	_SSL_library_init
	bl	_TLS_client_method
	bl	_SSL_CTX_new
	mov	x23, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_pjdlog_exitx
LBB0_9:
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	w1, #1
	mov	x3, x21
	bl	_sandbox
	cbz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _EX_CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EX_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_pjdlog_exitx
LBB0_11:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_pjdlog_debug
Lloh28:
	adrp	x8, _SSL_OP_NO_SSLv2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSL_OP_NO_SSLv2@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SSL_OP_NO_SSLv3@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SSL_OP_NO_SSLv3@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x23
	bl	_SSL_CTX_set_options
	mov	x0, x23
	bl	_SSL_new
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.12:
Lloh34:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_pjdlog_exitx
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_proto_descriptor
	mov	x22, x0
	bl	_block
	mov	x0, x21
	mov	x1, x22
	bl	_SSL_set_fd
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.14:
Lloh39:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_pjdlog_exitx
LBB0_15:
	mov	x0, x21
	bl	_SSL_connect
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ssl_check_error
	mov	x0, x19
	bl	_nonblock
	mov	x0, x22
	bl	_nonblock
	mov	x0, x21
	mov	x1, x20
	bl	_tls_certificate_verify
	mov	w8, #1
	str	w8, [sp, #4]
Lloh44:
	adrp	x20, _errno@GOTPAGE
Lloh45:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh46:
	adrp	x22, _EINTR@GOTPAGE
Lloh47:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
Lloh48:
	adrp	x23, _ENOBUFS@GOTPAGE
Lloh49:
	ldr	x23, [x23, _ENOBUFS@GOTPAGEOFF]
Lloh50:
	adrp	x24, _EAGAIN@GOTPAGE
Lloh51:
	ldr	x24, [x24, _EAGAIN@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #4
	mov	w3, #0
	bl	_send
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x22]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_wait_for_fd
	b	LBB0_16
LBB0_20:
	cbz	w0, LBB0_23
; %bb.21:
	mov	x0, x19
	mov	x1, x21
	bl	_tls_loop
	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
	add	sp, sp, #96
	ret
LBB0_22:
Lloh52:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_pjdlog_exit
LBB0_23:
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_pjdlog_debug
	mov	w0, #0
	bl	_exit
LBB0_24:
Lloh59:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[TLS sandbox] (client) "

l_.str.1:                               ; @.str.1
	.asciz	"tcp:port"

	.comm	_EX_TEMPFAIL,4,2                ; @EX_TEMPFAIL
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate memory."

l_.str.3:                               ; @.str.3
	.asciz	"tcp://"

l_.str.4:                               ; @.str.4
	.asciz	"SSL_CTX_new() failed."

l_.str.5:                               ; @.str.5
	.asciz	"proto_tls client: %s"

	.comm	_EX_CONFIG,4,2                  ; @EX_CONFIG
l_.str.6:                               ; @.str.6
	.asciz	"Unable to sandbox TLS client."

l_.str.7:                               ; @.str.7
	.asciz	"Privileges successfully dropped."

	.comm	_SSL_OP_NO_SSLv2,4,2            ; @SSL_OP_NO_SSLv2
	.comm	_SSL_OP_NO_SSLv3,4,2            ; @SSL_OP_NO_SSLv3
l_.str.8:                               ; @.str.8
	.asciz	"SSL_new() failed."

l_.str.9:                               ; @.str.9
	.asciz	"SSL_set_fd() failed."

	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.10:                              ; @.str.10
	.asciz	"send() failed"

l_.str.11:                              ; @.str.11
	.asciz	"Connection terminated."

	.no_dead_strip	_tls_exec_client
.subsections_via_symbols
