	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_ssl_connection
_init_ssl_connection:                   ## @init_ssl_connection
	.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	%rdi, %r13
	movq	_dtlslisten@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_stateless@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	orq	%rax, %rcx
	je	LBB0_1
## %bb.7:
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_ADDR_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_DTLSv1_listen
	movl	%eax, %r15d
	testl	%r15d, %r15d
	jle	LBB0_21
LBB0_13:
	movl	$-1, -44(%rbp)
	cmpq	$0, (%r12)
	movq	%rbx, %rax
	je	LBB0_17
## %bb.14:
	movq	%r13, %rdi
	callq	_SSL_get_wbio
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, %rbx
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_BIO_get_fd
	movl	-44(%rbp), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_BIO_connect
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BIO_ctrl_set_connected
	movq	%r14, %rdi
	callq	_BIO_ADDR_free
	movq	%r12, %rax
LBB0_17:
	movq	$0, (%rax)
	movq	%r13, %rdi
	callq	_SSL_accept
	testl	%eax, %eax
	jle	LBB0_18
LBB0_24:
	movq	%r13, %rdi
	callq	_print_connection_info
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_1:
	movq	_bio_s_out@GOTPCREL(%rip), %r12
	movq	_srp_callback_parm@GOTPCREL(%rip), %r14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r13, %rdi
	callq	_SSL_accept
	testl	%eax, %eax
	jg	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	callq	_SSL_accept
	movl	%eax, %r15d
	testl	%eax, %eax
	jg	LBB0_24
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_is_retryable
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_WANT_X509_LOOKUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12), %edi
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	(%r14), %rdi
	callq	_SRP_user_pwd_free
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	callq	_SRP_VBASE_get1_by_user
	movq	%rax, (%r14)
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jns	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_SSL_waiting_for_async
	testq	%rax, %rax
	jne	LBB0_2
## %bb.29:
	movl	$1, %r15d
	jmp	LBB0_30
LBB0_11:
	movq	%r13, %rdi
	callq	_SSL_stateless
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	jg	LBB0_13
LBB0_21:
	movq	%r14, %rdi
	callq	_BIO_ADDR_free
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_9:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_39
LBB0_20:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r14, %rdi
	callq	_BIO_ADDR_free
	jmp	LBB0_39
LBB0_18:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_27:
	xorl	%r15d, %r15d
LBB0_30:
	movq	_dtlslisten@GOTPCREL(%rip), %r12
LBB0_31:
	movq	(%r12), %rax
	movq	_stateless@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	setne	%al
	je	LBB0_33
## %bb.32:
	testl	%r15d, %r15d
	je	LBB0_35
LBB0_33:
	testb	%al, %al
	jne	LBB0_36
## %bb.34:
	testl	%ebx, %ebx
	je	LBB0_36
LBB0_35:
	movq	_bio_s_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_36:
	movq	_bio_err@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%r13, %rdi
	callq	_SSL_get_verify_result
	movq	_X509_V_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.37:
	movl	(%r14), %ebx
	movq	%rax, %rdi
	callq	_X509_verify_cert_error_string
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_38:
	movl	(%r14), %edi
	callq	_ERR_print_errors
LBB0_39:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dtlslisten,8,3                 ## @dtlslisten
	.comm	_stateless,8,3                  ## @stateless
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR - memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR - unable to connect\n"

	.comm	_SSL_ERROR_WANT_X509_LOOKUP,8,3 ## @SSL_ERROR_WANT_X509_LOOKUP
	.comm	_bio_s_out,4,2                  ## @bio_s_out
L_.str.2:                               ## @.str.2
	.asciz	"LOOKUP during accept %s\n"

	.comm	_srp_callback_parm,16,3         ## @srp_callback_parm
L_.str.3:                               ## @.str.3
	.asciz	"LOOKUP done %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"LOOKUP not successful\n"

L_.str.5:                               ## @.str.5
	.asciz	"DELAY\n"

L_.str.6:                               ## @.str.6
	.asciz	"ERROR\n"

	.comm	_X509_V_OK,8,3                  ## @X509_V_OK
L_.str.7:                               ## @.str.7
	.asciz	"verify error:%s\n"

	.comm	_TLS_ST_SR_CLNT_HELLO,8,3       ## @TLS_ST_SR_CLNT_HELLO
	.no_dead_strip	_init_ssl_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ssl_connection
_init_ssl_connection:                   ; @init_ssl_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x25, _dtlslisten@GOTPAGE
Lloh1:
	ldr	x25, [x25, _dtlslisten@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x22, _stateless@GOTPAGE
Lloh3:
	ldr	x22, [x22, _stateless@GOTPAGEOFF]
	ldr	x9, [x22]
	orr	x9, x8, x9
	cbz	x9, LBB0_8
; %bb.1:
	cbz	x8, LBB0_19
; %bb.2:
	bl	_BIO_ADDR_new
	cbz	x0, LBB0_21
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_DTLSv1_listen
	mov	x21, x0
	cmp	w21, #1
	b.lt	LBB0_20
LBB0_4:
	mov	w8, #-1
	str	w8, [sp, #12]
	ldr	x8, [x25]
	cbz	x8, LBB0_23
; %bb.5:
	mov	x0, x19
	bl	_SSL_get_wbio
	cbz	x0, LBB0_22
; %bb.6:
	mov	x21, x0
	add	x1, sp, #12
	bl	_BIO_get_fd
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	w2, #0
	bl	_BIO_connect
	cbz	x0, LBB0_22
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_BIO_ctrl_set_connected
	mov	x0, x20
	bl	_BIO_ADDR_free
Lloh4:
	adrp	x8, _dtlslisten@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dtlslisten@GOTPAGEOFF]
	b	LBB0_24
LBB0_8:
Lloh6:
	adrp	x27, _SSL_ERROR_WANT_X509_LOOKUP@GOTPAGE
Lloh7:
	ldr	x27, [x27, _SSL_ERROR_WANT_X509_LOOKUP@GOTPAGEOFF]
Lloh8:
	adrp	x28, _bio_s_out@GOTPAGE
Lloh9:
	ldr	x28, [x28, _bio_s_out@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, _srp_callback_parm@GOTPAGE
Lloh13:
	ldr	x26, [x26, _srp_callback_parm@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str.4@PAGE
Lloh15:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh16:
	adrp	x22, l_.str.3@PAGE
Lloh17:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x19
	bl	_SSL_accept
	cmp	w0, #0
	b.gt	LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x1, x21
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_BIO_printf
	mov	x0, x19
	bl	_SSL_accept
	mov	x24, x0
	cmp	w0, #1
	b.ge	LBB0_25
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_is_retryable
	mov	x23, x0
	mov	x0, x19
	mov	x1, x24
	bl	_SSL_get_error
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w0, [x28]
	ldr	w8, [x26, #8]
	str	x8, [sp]
	mov	x1, x20
	bl	_BIO_printf
	ldr	x0, [x26]
	bl	_SRP_user_pwd_free
	ldp	w1, w0, [x26, #8]
	bl	_SRP_VBASE_get1_by_user
	mov	x8, x0
	str	x0, [x26]
	ldr	w0, [x28]
	cbz	x8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x1, x22
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	tbz	w24, #31, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_SSL_waiting_for_async
	cbnz	x0, LBB0_9
; %bb.18:
	mov	w21, #1
	b	LBB0_28
LBB0_19:
	mov	x0, x19
	bl	_SSL_stateless
	mov	x21, x0
	mov	x20, #0
	cmp	w21, #1
	b.ge	LBB0_4
LBB0_20:
	mov	x0, x20
	bl	_BIO_ADDR_free
	mov	w23, #0
	b	LBB0_29
LBB0_21:
Lloh18:
	adrp	x8, _bio_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	b	LBB0_36
LBB0_22:
Lloh23:
	adrp	x8, _bio_err@GOTPAGE
Lloh24:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	mov	x0, x20
	bl	_BIO_ADDR_free
	b	LBB0_36
LBB0_23:
Lloh28:
	adrp	x8, _stateless@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stateless@GOTPAGEOFF]
LBB0_24:
	str	xzr, [x8]
	mov	x0, x19
	bl	_SSL_accept
	cmp	w0, #0
	b.le	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_print_connection_info
	mov	w0, #1
	b	LBB0_37
LBB0_26:
	mov	x21, x0
	mov	w23, #0
	b	LBB0_29
LBB0_27:
	mov	w21, #0
LBB0_28:
Lloh30:
	adrp	x22, _stateless@GOTPAGE
Lloh31:
	ldr	x22, [x22, _stateless@GOTPAGEOFF]
LBB0_29:
	ldr	x8, [x25]
	ldr	x9, [x22]
	orr	x8, x8, x9
	cmp	x8, #0
	cset	w8, ne
	ccmp	w21, #0, #0, ne
	b.eq	LBB0_32
; %bb.30:
	tbnz	w8, #0, LBB0_33
; %bb.31:
	cbz	w23, LBB0_33
LBB0_32:
Lloh32:
	adrp	x8, _bio_s_out@GOTPAGE
Lloh33:
	ldr	x8, [x8, _bio_s_out@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_BIO_printf
	mov	w0, #1
	b	LBB0_37
LBB0_33:
Lloh37:
	adrp	x20, _bio_err@GOTPAGE
Lloh38:
	ldr	x20, [x20, _bio_err@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_printf
	mov	x0, x19
	bl	_SSL_get_verify_result
Lloh41:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.34:
	ldr	w19, [x20]
	bl	_X509_verify_cert_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_BIO_printf
LBB0_35:
	ldr	w0, [x20]
	bl	_ERR_print_errors
LBB0_36:
	mov	w0, #0
LBB0_37:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_dtlslisten,8,3                 ; @dtlslisten
	.comm	_stateless,8,3                  ; @stateless
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR - memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR - unable to connect\n"

	.comm	_SSL_ERROR_WANT_X509_LOOKUP,8,3 ; @SSL_ERROR_WANT_X509_LOOKUP
	.comm	_bio_s_out,4,2                  ; @bio_s_out
l_.str.2:                               ; @.str.2
	.asciz	"LOOKUP during accept %s\n"

	.comm	_srp_callback_parm,16,3         ; @srp_callback_parm
l_.str.3:                               ; @.str.3
	.asciz	"LOOKUP done %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"LOOKUP not successful\n"

l_.str.5:                               ; @.str.5
	.asciz	"DELAY\n"

l_.str.6:                               ; @.str.6
	.asciz	"ERROR\n"

	.comm	_X509_V_OK,8,3                  ; @X509_V_OK
l_.str.7:                               ; @.str.7
	.asciz	"verify error:%s\n"

	.comm	_TLS_ST_SR_CLNT_HELLO,8,3       ; @TLS_ST_SR_CLNT_HELLO
	.no_dead_strip	_init_ssl_connection
.subsections_via_symbols
