	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$520, %rsp                      ## imm = 0x208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_CONF_modules_load_file
	testq	%rax, %rax
	jle	LBB0_1
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SSL_CTX_config
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_BIO_new_ssl
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_BIO_new_accept
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_BIO_set_accept_bios
	movq	%rbx, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jle	LBB0_4
## %bb.12:
	leaq	-560(%rbp), %r15
	leaq	L_str(%rip), %r12
	movq	_stdout@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	movl	(%r13), %edi
	callq	_fflush
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_BIO_read
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%eax, %eax
	jns	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_BIO_should_retry
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_BIO_pop
	movq	%rax, %rdi
	callq	_BIO_free_all
	movq	%rbx, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jg	LBB0_13
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
LBB0_6:
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.18:
	movl	%r14d, %eax
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*:4433"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"cmod.cnf"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Error processing config file\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"Error configuring server.\n"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_str:                                  ## @str
	.asciz	"Done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_CONF_modules_load_file
Lloh10:
	adrp	x22, _stderr@GOTPAGE
Lloh11:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.1:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_SSL_CTX_config
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_BIO_new_ssl
	mov	x21, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BIO_new_accept
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_BIO_set_accept_bios
	mov	x0, x20
	bl	_BIO_do_accept
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.4:
Lloh16:
	adrp	x21, l_str@PAGE
Lloh17:
	add	x21, x21, l_str@PAGEOFF
Lloh18:
	adrp	x23, _stdout@GOTPAGE
Lloh19:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	w1, #1
	bl	_fwrite
	ldr	w0, [x23]
	bl	_fflush
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #512
	bl	_BIO_read
	mov	x2, x0
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbz	w2, #31, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_BIO_should_retry
	cbnz	x0, LBB0_6
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_puts
	mov	x0, x20
	bl	_BIO_pop
	bl	_BIO_free_all
	mov	x0, x20
	bl	_BIO_do_accept
	cmp	x0, #1
	b.ge	LBB0_6
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	ldr	w0, [x22]
	bl	_fprintf
	mov	x20, #0
LBB0_13:
Lloh24:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w19, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x22]
	bl	_ERR_print_errors_fp
LBB0_15:
	mov	x0, x20
	bl	_BIO_free
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	add	sp, sp, #528
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*:4433"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"cmod.cnf"

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

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Error processing config file\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"Error configuring server.\n"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_str:                                  ; @str
	.asciz	"Done"

.subsections_via_symbols
