	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dnsc_handle_curved_request     ## -- Begin function dnsc_handle_curved_request
	.p2align	4, 0x90
_dnsc_handle_curved_request:            ## @dnsc_handle_curved_request
	.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	24(%rsi), %r12
	movl	$0, (%rsi)
	movl	$1, %r14d
	cmpl	$0, 4(%r12)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_VERB_ALGO@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_dnsc_find_cert
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movl	(%r12), %r8d
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dnscrypt_server_uncurve
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	movq	%rbx, %rdi
	callq	_comm_point_drop_reply
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	$1, (%rbx)
	movl	(%r12), %edi
	callq	_sldns_buffer_rewind
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle request called on DNSCrypt socket"

L_.str.1:                               ## @.str.1
	.asciz	"dnscrypt: Failed to uncurve"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dnsc_handle_curved_request     ; -- Begin function dnsc_handle_curved_request
	.p2align	2
_dnsc_handle_curved_request:            ; @dnsc_handle_curved_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x1, #24]
	str	wzr, [x1]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldr	w1, [x21]
	mov	x0, x20
	bl	_dnsc_find_cert
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	ldp	w3, w2, [x19, #4]
	ldr	w4, [x21]
	mov	x0, x20
	bl	_dnscrypt_server_uncurve
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	mov	x0, x19
	bl	_comm_point_drop_reply
	mov	w20, #0
	b	LBB0_6
LBB0_4:
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w20, #1
	str	w20, [x19]
	ldr	w0, [x21]
	bl	_sldns_buffer_rewind
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle request called on DNSCrypt socket"

l_.str.1:                               ; @.str.1
	.asciz	"dnscrypt: Failed to uncurve"

.subsections_via_symbols
