	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_ssl_line
_write_ssl_line:                        ## @write_ssl_line
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rcx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rcx
LBB0_3:
	callq	_snprintf
	leaq	-1072(%rbp), %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	2(%rax), %rcx
	movq	_verb@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpq	$1024, %rcx                     ## imm = 0x400
	jb	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_12
LBB0_6:
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	movw	$2573, -1072(%rbp,%rbx)         ## imm = 0xA0D
	movb	$0, -1070(%rbp,%rbx)
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_SSL_write
	movl	$1, %ebx
	testq	%rax, %rax
	jg	LBB0_12
## %bb.9:
	cmpl	$0, (%r12)
	je	LBB0_10
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_verb,4,2                       ## @verb
L_.str.2:                               ## @.str.2
	.asciz	"SSL_write: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"could not SSL_write %s"

L_str:                                  ## @str
	.asciz	"line too long"

	.no_dead_strip	_write_ssl_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_ssl_line
_write_ssl_line:                        ; @write_ssl_line
	.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, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x3, x2
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x19
LBB0_3:
	bl	_snprintf
	add	x0, sp, #8
	bl	_strlen
	add	x23, x0, #2
Lloh5:
	adrp	x22, _verb@GOTPAGE
Lloh6:
	ldr	x22, [x22, _verb@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x23, #1024
	b.lo	LBB0_6
; %bb.4:
	cbz	w8, LBB0_12
; %bb.5:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_12
LBB0_6:
	mov	x21, x0
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
	add	x8, sp, #8
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_8:
	add	x8, sp, #8
	mov	w9, #2573
	strh	w9, [x8, x21]
	strb	wzr, [x8, x23]
	add	x0, sp, #8
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_SSL_write
	cmp	x0, #0
	b.le	LBB0_10
; %bb.9:
	mov	w0, #1
	b	LBB0_13
LBB0_10:
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.11:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #1040
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_verb,4,2                       ; @verb
l_.str.2:                               ; @.str.2
	.asciz	"SSL_write: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"could not SSL_write %s"

l_str:                                  ; @str
	.asciz	"line too long"

	.no_dead_strip	_write_ssl_line
.subsections_via_symbols
