	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_write_app_data_bytes     ## -- Begin function dtls1_write_app_data_bytes
	.p2align	4, 0x90
_dtls1_write_app_data_bytes:            ## @dtls1_write_app_data_bytes
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_SSL_in_init
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_ossl_statem_get_in_handshake
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movq	_SSL3_RT_MAX_PLAIN_LENGTH@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jae	LBB0_9
## %bb.8:
	movq	_SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_DTLS_MESSAGE_TOO_BIG@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_SSLerr
	movl	$-1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dtls1_write_bytes              ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	jne	LBB0_7
## %bb.4:
	movq	_SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_SSL_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_DTLS1_WRITE_APP_DATA_BYTES,4,2 ## @SSL_F_DTLS1_WRITE_APP_DATA_BYTES
	.comm	_SSL_R_SSL_HANDSHAKE_FAILURE,4,2 ## @SSL_R_SSL_HANDSHAKE_FAILURE
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,8,3   ## @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_SSL_R_DTLS_MESSAGE_TOO_BIG,4,2 ## @SSL_R_DTLS_MESSAGE_TOO_BIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtls1_write_app_data_bytes     ; -- Begin function dtls1_write_app_data_bytes
	.p2align	2
_dtls1_write_app_data_bytes:            ; @dtls1_write_app_data_bytes
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_SSL_in_init
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_ossl_statem_get_in_handshake
	cbz	w0, LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SSL_R_DTLS_MESSAGE_TOO_BIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_DTLS_MESSAGE_TOO_BIG@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #-1
LBB0_5:
	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_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	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
	b	_dtls1_write_bytes
LBB0_7:
	ldr	x8, [x23]
	mov	x0, x23
	blr	x8
	tbnz	w0, #31, LBB0_5
; %bb.8:
	cbnz	w0, LBB0_2
; %bb.9:
Lloh8:
	adrp	x8, _SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_F_DTLS1_WRITE_APP_DATA_BYTES@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _SSL_R_SSL_HANDSHAKE_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_R_SSL_HANDSHAKE_FAILURE@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_DTLS1_WRITE_APP_DATA_BYTES,4,2 ; @SSL_F_DTLS1_WRITE_APP_DATA_BYTES
	.comm	_SSL_R_SSL_HANDSHAKE_FAILURE,4,2 ; @SSL_R_SSL_HANDSHAKE_FAILURE
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,8,3   ; @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_SSL_R_DTLS_MESSAGE_TOO_BIG,4,2 ; @SSL_R_DTLS_MESSAGE_TOO_BIG
.subsections_via_symbols
