	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -564(%rbp)                ## 4-byte Spill
	leaq	8(%rsi), %rax
	movq	%rax, -576(%rbp)
	decl	%edi
	movl	%edi, -580(%rbp)
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_SSL_CONF_CTX_new
	movq	%rax, %rbx
	movq	_SSL_CONF_FLAG_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SSL_CONF_CTX_set_flags
	movq	_SSL_CONF_FLAG_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SSL_CONF_CTX_set_flags
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SSL_CONF_CTX_set_ssl_ctx
	movq	8(%r14), %rax
	leaq	L_.str(%rip), %r12
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	leaq	-580(%rbp), %r13
	leaq	-576(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	movq	%rax, -576(%rbp)
	addl	$-2, -580(%rbp)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$45, (%rax)
	jne	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_SSL_CONF_cmd_argv
	cmpl	$-3, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-576(%rbp), %rax
	jne	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-576(%rbp), %rax
	movq	8(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_18
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_20:
	movq	%rbx, %rdi
	callq	_SSL_CONF_CTX_finish
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_BIO_new_ssl
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_BIO_new_accept
	testq	%rax, %rax
	movl	-564(%rbp), %r13d               ## 4-byte Reload
	je	LBB0_24
## %bb.25:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_BIO_set_accept_bios
	movq	%r15, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jle	LBB0_13
## %bb.26:
	leaq	-560(%rbp), %rbx
	leaq	L_str(%rip), %r12
	movq	_stdout@GOTPCREL(%rip), %r14
	jmp	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r12, %rdi
	callq	_puts
	movq	%r15, %rdi
	callq	_BIO_pop
	movq	%rax, %rdi
	callq	_BIO_free_all
	movq	%r15, %rdi
	callq	_BIO_do_accept
	testq	%rax, %rax
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_BIO_read
	testl	%eax, %eax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	testl	%eax, %eax
	js	LBB0_13
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	movl	(%r14), %edi
	callq	_fflush
	jmp	LBB0_27
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_22
LBB0_24:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-576(%rbp), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-576(%rbp), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_22:
	movl	(%rbx), %edi
	callq	_ERR_print_errors_fp
	jmp	LBB0_12
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-576(%rbp), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_5:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movl	-564(%rbp), %r13d               ## 4-byte Reload
LBB0_13:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
LBB0_15:
	movq	%r15, %rdi
	callq	_BIO_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.31:
	movl	%r13d, %eax
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	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
	.comm	_SSL_CONF_FLAG_SERVER,4,2       ## @SSL_CONF_FLAG_SERVER
	.comm	_SSL_CONF_FLAG_CERTIFICATE,4,2  ## @SSL_CONF_FLAG_CERTIFICATE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Missing argument for %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error in command %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"-port"

L_.str.4:                               ## @.str.4
	.asciz	"Missing -port argument\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unknown argument %s\n"

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

	.comm	_stdout,4,2                     ## @stdout
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_SSL_CERT_SET_FIRST,4,2         ## @SSL_CERT_SET_FIRST
	.comm	_SSL_CERT_SET_NEXT,4,2          ## @SSL_CERT_SET_NEXT
	.comm	_XN_FLAG_ONELINE,4,2            ## @XN_FLAG_ONELINE
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, #544
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXIT_FAILURE@GOTPAGEOFF]
	stur	x8, [x29, #-56]
Lloh5:
	ldr	w19, [x9]
	add	x8, x1, #8
	str	x8, [sp, #16]
	sub	w8, w0, #1
	str	w8, [sp, #12]
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x20, x0
	bl	_SSL_CONF_CTX_new
	mov	x21, x0
Lloh6:
	adrp	x8, _SSL_CONF_FLAG_SERVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_CONF_FLAG_SERVER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SSL_CONF_CTX_set_flags
Lloh9:
	adrp	x8, _SSL_CONF_FLAG_CERTIFICATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_CONF_FLAG_CERTIFICATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SSL_CONF_CTX_set_flags
	mov	x0, x21
	mov	x1, x20
	bl	_SSL_CONF_CTX_set_ssl_ctx
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_11
; %bb.1:
Lloh12:
	adrp	x22, l_.str@PAGE
Lloh13:
	add	x22, x22, l_.str@PAGEOFF
Lloh14:
	adrp	x23, l_.str.3@PAGE
Lloh15:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #16
	str	x8, [sp, #16]
	ldr	w9, [sp, #12]
	sub	w9, w9, #2
	str	w9, [sp, #12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	cbz	x8, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x8]
	cmp	w8, #45
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	add	x2, sp, #16
	mov	x0, x21
	bl	_SSL_CONF_cmd_argv
	cmn	w0, #3
	b.eq	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w0, #31, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x8]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_29
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	x22, [x8, #8]
	cbnz	x22, LBB0_2
; %bb.10:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_24
LBB0_11:
Lloh21:
	adrp	x22, l_.str@PAGE
Lloh22:
	add	x22, x22, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x21
	bl	_SSL_CONF_CTX_finish
	cbz	w0, LBB0_20
; %bb.13:
	mov	x0, x20
	mov	w1, #0
	bl	_BIO_new_ssl
	mov	x21, x0
	mov	x0, x22
	bl	_BIO_new_accept
	mov	x20, x0
	cbz	x0, LBB0_25
; %bb.14:
	mov	x0, x20
	mov	x1, x21
	bl	_BIO_set_accept_bios
	mov	x0, x20
	bl	_BIO_do_accept
	cmp	x0, #1
	b.lt	LBB0_25
; %bb.15:
Lloh23:
	adrp	x21, l_str@PAGE
Lloh24:
	add	x21, x21, l_str@PAGEOFF
Lloh25:
	adrp	x22, _stdout@GOTPAGE
Lloh26:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 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.lt	LBB0_25
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #512
	bl	_BIO_read
	mov	x2, x0
	cbz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	tbnz	w2, #31, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w3, [x22]
	add	x0, sp, #24
	mov	w1, #1
	bl	_fwrite
	ldr	w0, [x22]
	bl	_fflush
	b	LBB0_17
LBB0_20:
Lloh27:
	adrp	x20, _stderr@GOTPAGE
Lloh28:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_24
LBB0_22:
Lloh36:
	adrp	x20, _stderr@GOTPAGE
Lloh37:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_23:
	bl	_fprintf
	ldr	w0, [x20]
	bl	_ERR_print_errors_fp
LBB0_24:
	mov	x20, #0
LBB0_25:
Lloh40:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w19, w8
	b.eq	LBB0_27
; %bb.26:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
LBB0_27:
	mov	x0, x20
	bl	_BIO_free
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.28:
	mov	x0, x19
	add	sp, sp, #544
	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_29:
Lloh49:
	adrp	x8, _stderr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_24
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*:4433"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_SSL_CONF_FLAG_SERVER,4,2       ; @SSL_CONF_FLAG_SERVER
	.comm	_SSL_CONF_FLAG_CERTIFICATE,4,2  ; @SSL_CONF_FLAG_CERTIFICATE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Missing argument for %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error in command %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"-port"

l_.str.4:                               ; @.str.4
	.asciz	"Missing -port argument\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unknown argument %s\n"

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

	.comm	_stdout,4,2                     ; @stdout
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_SSL_CERT_SET_FIRST,4,2         ; @SSL_CERT_SET_FIRST
	.comm	_SSL_CERT_SET_NEXT,4,2          ; @SSL_CERT_SET_NEXT
	.comm	_XN_FLAG_ONELINE,4,2            ; @XN_FLAG_ONELINE
l_str:                                  ; @str
	.asciz	"Done"

.subsections_via_symbols
