	.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
	cmpl	$2, %edi
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_3
LBB0_2:
	movq	8(%rsi), %r15
LBB0_3:
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %rbx
	movq	_CERT_FILE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_SSL_CTX_use_certificate_chain_file
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movl	(%r12), %esi
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_SSL_CTX_use_PrivateKey_file
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movq	%rbx, %rdi
	callq	_SSL_CTX_check_private_key
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_BIO_new_ssl
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_BIO_new_accept
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_BIO_set_accept_bios
	xorl	%eax, %eax
	callq	_sigsetup
	movq	%r13, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jle	LBB0_18
## %bb.8:
	movq	_done@GOTPCREL(%rip), %rbx
	leaq	-560(%rbp), %r15
	movq	_stdout@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_BIO_read
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	js	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	movl	(%r12), %edi
	callq	_fflush
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r13, %rdi
	callq	_BIO_pop
	movq	%rax, %rdi
	callq	_BIO_free_all
	movq	%r13, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jg	LBB0_9
	jmp	LBB0_18
LBB0_14:
	xorl	%r13d, %r13d
LBB0_18:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
LBB0_20:
	movq	%r13, %rdi
	callq	_BIO_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %eax
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*:4433"

	.comm	_CERT_FILE,4,2                  ## @CERT_FILE
	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
	.comm	_done,4,2                       ## @done
	.comm	_stdout,4,2                     ## @stdout
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
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	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	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, #-72]
Lloh3:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	x20, [x1, #8]
LBB0_3:
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x21, x0
Lloh8:
	adrp	x23, _CERT_FILE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CERT_FILE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_SSL_CTX_use_certificate_chain_file
Lloh10:
	adrp	x22, _EXIT_SUCCESS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EXIT_SUCCESS@GOTPAGEOFF]
	cbz	w0, LBB0_14
; %bb.4:
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _SSL_FILETYPE_PEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_FILETYPE_PEM@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_SSL_CTX_use_PrivateKey_file
	cbz	w0, LBB0_14
; %bb.5:
	mov	x0, x21
	bl	_SSL_CTX_check_private_key
	cbz	w0, LBB0_14
; %bb.6:
	mov	x0, x21
	mov	w1, #0
	bl	_BIO_new_ssl
	mov	x21, x0
	mov	x0, x20
	bl	_BIO_new_accept
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_BIO_set_accept_bios
	bl	_sigsetup
	mov	x0, x20
	bl	_BIO_do_accept
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.8:
Lloh15:
	adrp	x23, _done@GOTPAGE
Lloh16:
	ldr	x23, [x23, _done@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_str@PAGE
Lloh18:
	add	x21, x21, l_str@PAGEOFF
Lloh19:
	adrp	x24, _stdout@GOTPAGE
Lloh20:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #512
	bl	_BIO_read
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x0
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w3, [x24]
	add	x0, sp, #8
	mov	w1, #1
	bl	_fwrite
	ldr	w0, [x24]
	bl	_fflush
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_9 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_9
	b	LBB0_15
LBB0_14:
	mov	x20, #0
LBB0_15:
	ldr	w8, [x22]
	cmp	w19, w8
	b.eq	LBB0_17
; %bb.16:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
LBB0_17:
	mov	x0, x20
	bl	_BIO_free
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x19
	add	sp, sp, #528
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w19, [x22]
	b	LBB0_15
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*:4433"

	.comm	_CERT_FILE,4,2                  ; @CERT_FILE
	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
	.comm	_done,4,2                       ; @done
	.comm	_stdout,4,2                     ; @stdout
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
l_str:                                  ; @str
	.asciz	"Done"

.subsections_via_symbols
