	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function statem_do_write
_statem_do_write:                       ## @statem_do_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TLS_ST_CW_CHANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TLS_ST_SW_CHANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ssl_do_write                   ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_SSL_IS_DTLS
	movq	_SSL3_RT_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	popq	%rbx
	popq	%rbp
	jmp	_dtls1_do_write                 ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%rbp
	jmp	_ssl3_do_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_ST_CW_CHANGE,8,3           ## @TLS_ST_CW_CHANGE
	.comm	_TLS_ST_SW_CHANGE,8,3           ## @TLS_ST_SW_CHANGE
	.comm	_SSL3_RT_CHANGE_CIPHER_SPEC,4,2 ## @SSL3_RT_CHANGE_CIPHER_SPEC
	.no_dead_strip	_statem_do_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function statem_do_write
_statem_do_write:                       ; @statem_do_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TLS_ST_CW_CHANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLS_ST_CW_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TLS_ST_SW_CHANGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TLS_ST_SW_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_SSL_IS_DTLS
Lloh6:
	adrp	x8, _SSL3_RT_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL3_RT_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dtls1_do_write
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ssl_do_write
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ssl3_do_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_ST_CW_CHANGE,8,3           ; @TLS_ST_CW_CHANGE
	.comm	_TLS_ST_SW_CHANGE,8,3           ; @TLS_ST_SW_CHANGE
	.comm	_SSL3_RT_CHANGE_CIPHER_SPEC,4,2 ; @SSL3_RT_CHANGE_CIPHER_SPEC
	.no_dead_strip	_statem_do_write
.subsections_via_symbols
