	.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	$56, %rsp
	.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)
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.3:
	movq	8(%rsi), %rbx
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_host_bind
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_BR_SSL_BUFSIZE_BIDI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, %edi
	callq	_accept_client
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	leaq	-84(%rbp), %r12
	leaq	-49(%rbp), %r14
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_br_ssl_engine_last_error
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %edi
	callq	_close
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	_BR_SSL_BUFSIZE_BIDI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, %edi
	callq	_accept_client
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	js	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_CHAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHAIN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BR_KEYTYPE_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	_SKEY@GOTPCREL(%rip), %r8
	callq	_br_ssl_server_init_full_ec
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_br_ssl_engine_set_buffer
	movq	%rbx, %rdi
	callq	_br_ssl_server_reset
	movq	_sock_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sock_write@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rcx
	movq	%rcx, %r9
	callq	_br_sslio_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_br_sslio_read
	testq	%rax, %rax
	js	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_br_sslio_read
	testq	%rax, %rax
	js	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-49(%rbp), %ecx
	cmpb	$13, %cl
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	$0, %eax
	cmpb	$10, %cl
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	$1, %eax
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_HTTP_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strlen
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_br_sslio_write_all
	movq	%r12, %rdi
	callq	_br_sslio_close
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_17
LBB0_18:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
LBB0_1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_BR_SSL_BUFSIZE_BIDI,4,2        ## @BR_SSL_BUFSIZE_BIDI
	.comm	_CHAIN,4,2                      ## @CHAIN
	.comm	_CHAIN_LEN,4,2                  ## @CHAIN_LEN
	.comm	_BR_KEYTYPE_RSA,4,2             ## @BR_KEYTYPE_RSA
	.comm	_SKEY,4,2                       ## @SKEY
	.comm	_sock_read,4,2                  ## @sock_read
	.comm	_sock_write,4,2                 ## @sock_write
	.comm	_HTTP_RES,4,2                   ## @HTTP_RES
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL closed (correctly).\n"

L_.str.1:                               ## @.str.1
	.asciz	"SSL error: %d\n"

	.comm	_BR_KEYTYPE_EC,4,2              ## @BR_KEYTYPE_EC
.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, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.1:
	ldr	x19, [x1, #8]
Lloh3:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_signal
	mov	x0, #0
	mov	x1, x19
	bl	_host_bind
	tbnz	w0, #31, LBB0_18
; %bb.2:
	mov	x19, x0
	mov	x25, sp
Lloh9:
	adrp	x8, _BR_SSL_BUFSIZE_BIDI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BR_SSL_BUFSIZE_BIDI@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	x9, x24
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	bl	_accept_client
	stur	w0, [x29, #-92]
	tbnz	w0, #31, LBB0_17
; %bb.3:
Lloh14:
	adrp	x28, _CHAIN_LEN@GOTPAGE
Lloh15:
	ldr	x28, [x28, _CHAIN_LEN@GOTPAGEOFF]
Lloh16:
	adrp	x21, _BR_KEYTYPE_RSA@GOTPAGE
Lloh17:
	ldr	x21, [x21, _BR_KEYTYPE_RSA@GOTPAGEOFF]
Lloh18:
	adrp	x20, _SKEY@GOTPAGE
Lloh19:
	ldr	x20, [x20, _SKEY@GOTPAGEOFF]
Lloh20:
	adrp	x22, _sock_read@GOTPAGE
Lloh21:
	ldr	x22, [x22, _sock_read@GOTPAGEOFF]
Lloh22:
	adrp	x26, _sock_write@GOTPAGE
Lloh23:
	ldr	x26, [x26, _sock_write@GOTPAGEOFF]
Lloh24:
	adrp	x27, _stderr@GOTPAGE
Lloh25:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh26:
	adrp	x8, _HTTP_RES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HTTP_RES@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #100
	mov	x1, x23
	bl	_br_sslio_write_all
	sub	x0, x29, #100
	bl	_br_sslio_close
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	x0, x29, #96
	bl	_br_ssl_engine_last_error
	mov	x8, x0
	ldr	w0, [x27]
	cbz	w8, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_8 Depth=1
	str	x8, [sp, #-16]!
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldur	w0, [x29, #-92]
	bl	_close
	mov	sp, x25
	mov	x25, sp
Lloh31:
	adrp	x8, _BR_SSL_BUFSIZE_BIDI@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BR_SSL_BUFSIZE_BIDI@GOTPAGEOFF]
Lloh33:
	ldr	w24, [x8]
	mov	x9, x24
Lloh34:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh35:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x0, x19
	bl	_accept_client
	stur	w0, [x29, #-92]
	tbnz	w0, #31, LBB0_17
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
Lloh36:
	adrp	x8, _CHAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CHAIN@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x28]
	ldr	w3, [x21]
	sub	x0, x29, #96
	mov	x4, x20
	bl	_br_ssl_server_init_full_ec
	sub	x0, x29, #96
	mov	x1, x23
	mov	x2, x24
	mov	w3, #1
	bl	_br_ssl_engine_set_buffer
	sub	x0, x29, #96
	bl	_br_ssl_server_reset
	ldr	w2, [x22]
	ldr	w4, [x26]
	sub	x0, x29, #100
	sub	x1, x29, #96
	sub	x3, x29, #92
	sub	x5, x29, #92
	bl	_br_sslio_init
	sub	x0, x29, #100
	sub	x1, x29, #101
	mov	w2, #1
	bl	_br_sslio_read
	tbnz	x0, #63, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	w23, #0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	sub	x0, x29, #100
	sub	x1, x29, #101
	mov	w2, #1
	bl	_br_sslio_read
	tbnz	x0, #63, LBB0_5
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w8, [x29, #-101]
	cmp	w8, #13
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cmp	w8, #10
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	cbnz	w23, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w23, #1
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_7
LBB0_17:
	mov	sp, x25
LBB0_18:
Lloh41:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_BR_SSL_BUFSIZE_BIDI,4,2        ; @BR_SSL_BUFSIZE_BIDI
	.comm	_CHAIN,4,2                      ; @CHAIN
	.comm	_CHAIN_LEN,4,2                  ; @CHAIN_LEN
	.comm	_BR_KEYTYPE_RSA,4,2             ; @BR_KEYTYPE_RSA
	.comm	_SKEY,4,2                       ; @SKEY
	.comm	_sock_read,4,2                  ; @sock_read
	.comm	_sock_write,4,2                 ; @sock_write
	.comm	_HTTP_RES,4,2                   ; @HTTP_RES
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL closed (correctly).\n"

l_.str.1:                               ; @.str.1
	.asciz	"SSL error: %d\n"

	.comm	_BR_KEYTYPE_EC,4,2              ; @BR_KEYTYPE_EC
.subsections_via_symbols
