	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_req
_handle_req:                            ## @handle_req
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_fd_set_block
	cmpq	$0, 8(%r15)
	je	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	8(%r15), %rdi
	leaq	-1095(%rbp), %rsi
	movl	$6, %edx
	callq	_SSL_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jg	LBB0_11
## %bb.8:
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_log_crypto_err
	jmp	LBB0_18
LBB0_1:
	movq	%rbx, -1104(%rbp)               ## 8-byte Spill
	leaq	-1095(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %rbx
	movq	_EAGAIN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jg	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r14), %rdi
	je	LBB0_2
## %bb.6:
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_log_err
	jmp	LBB0_18
LBB0_10:
	movq	-1104(%rbp), %rbx               ## 8-byte Reload
LBB0_11:
	movb	$0, -1089(%rbp)
	cmpl	$6, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	leaq	-1095(%rbp), %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, %r14
	leaq	-1088(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_ssl_read_line
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	_UNBOUND_CONTROL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	leaq	-58(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_snprintf
	leaq	-1095(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-1095(%rbp), %rdx
	leaq	-1088(%rbp), %rcx
	xorl	%eax, %eax
	callq	_verbose
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_ssl_printf
	jmp	LBB0_18
LBB0_17:
	movq	_VERB_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-1088(%rbp), %rbx
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_verbose
	movq	%r14, %rdi
	movl	(%r14), %ecx
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_execute_cmd
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ## @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not SSL_read"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"could not recv: %s"

L_.str.2:                               ## @.str.2
	.asciz	"UBCT"

	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
L_.str.3:                               ## @.str.3
	.asciz	"control connection has bad magic string"

L_.str.4:                               ## @.str.4
	.asciz	"UBCT%d "

	.comm	_UNBOUND_CONTROL_VERSION,4,2    ## @UNBOUND_CONTROL_VERSION
L_.str.5:                               ## @.str.5
	.asciz	"control connection had bad version %s, cmd: %s"

L_.str.6:                               ## @.str.6
	.asciz	"error version mismatch\n"

	.comm	_VERB_DETAIL,4,2                ## @VERB_DETAIL
L_.str.7:                               ## @.str.7
	.asciz	"control cmd: %s"

	.no_dead_strip	_handle_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_req
_handle_req:                            ; @handle_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #1072
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_fd_set_block
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.1:
	bl	_ERR_clear_error
	ldr	x0, [x19, #8]
	add	x1, sp, #23
	mov	w2, #6
	bl	_SSL_read
	mov	x1, x0
	cmp	w0, #0
	b.le	LBB0_10
LBB0_2:
	strb	wzr, [sp, #29]
	cmp	w1, #6
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #23
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
	b	LBB0_16
LBB0_5:
Lloh10:
	adrp	x21, _errno@GOTPAGE
Lloh11:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh12:
	adrp	x22, _EINTR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
Lloh14:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x1, sp, #23
	mov	w2, #6
	mov	w3, #0
	bl	_recv
	mov	x1, x0
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x1, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21]
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_6
; %bb.9:
	bl	_strerror
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	b	LBB0_16
LBB0_10:
	ldr	x0, [x19, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_SSL_get_error
Lloh18:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.11:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_crypto_err
	b	LBB0_16
LBB0_12:
	add	x1, sp, #30
	mov	x0, x19
	mov	w2, #1024
	bl	_ssl_read_line
	cbz	w0, LBB0_16
; %bb.13:
Lloh23:
	adrp	x8, _UNBOUND_CONTROL_VERSION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UNBOUND_CONTROL_VERSION@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	sub	x0, x29, #66
	mov	w1, #10
	bl	_snprintf
	add	x21, sp, #23
	add	x0, sp, #23
	sub	x1, x29, #66
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x8, sp, #30
	stp	x21, x8, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_verbose
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ssl_printf
	b	LBB0_16
LBB0_15:
Lloh35:
	adrp	x8, _VERB_DETAIL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VERB_DETAIL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x8, sp, #30
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_verbose
	ldr	w3, [x20]
	add	x2, sp, #30
	mov	x0, x20
	mov	x1, x19
	bl	_execute_cmd
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #1072
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ; @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not SSL_read"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"could not recv: %s"

l_.str.2:                               ; @.str.2
	.asciz	"UBCT"

	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
l_.str.3:                               ; @.str.3
	.asciz	"control connection has bad magic string"

l_.str.4:                               ; @.str.4
	.asciz	"UBCT%d "

	.comm	_UNBOUND_CONTROL_VERSION,4,2    ; @UNBOUND_CONTROL_VERSION
l_.str.5:                               ; @.str.5
	.asciz	"control connection had bad version %s, cmd: %s"

l_.str.6:                               ; @.str.6
	.asciz	"error version mismatch\n"

	.comm	_VERB_DETAIL,4,2                ; @VERB_DETAIL
l_.str.7:                               ; @.str.7
	.asciz	"control cmd: %s"

	.no_dead_strip	_handle_req
.subsections_via_symbols
