	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_send_alert        ## -- Begin function tlsv1_client_send_alert
	.p2align	4, 0x90
_tlsv1_client_send_alert:               ## @tlsv1_client_send_alert
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_wpa_printf
	movq	$0, (%r14)
	movl	$10, %edi
	callq	_os_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_TLS_CONTENT_TYPE_ALERT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	8(%rbx), %rdi
	movq	%rax, (%rbx)
	movl	(%r13), %esi
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movq	_TLS_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	callq	_WPA_PUT_BE16
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	%r12, 40(%rbx)
	movq	%r15, 48(%rbx)
	movl	$2, %esi
	callq	_WPA_PUT_BE16
	movq	$7, (%r14)
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Send Alert(%d:%d)"

	.comm	_TLS_CONTENT_TYPE_ALERT,4,2     ## @TLS_CONTENT_TYPE_ALERT
	.comm	_TLS_VERSION,4,2                ## @TLS_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_send_alert        ; -- Begin function tlsv1_client_send_alert
	.p2align	2
_tlsv1_client_send_alert:               ; @tlsv1_client_send_alert
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_printf
	str	xzr, [x19]
	mov	w0, #10
	bl	_os_malloc
	mov	x22, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _TLS_CONTENT_TYPE_ALERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_ALERT@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	add	x0, x22, #8
	str	x8, [x22]
	ldr	w8, [x23]
Lloh8:
	adrp	x9, _TLS_VERSION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TLS_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w1, w9, w8, eq
	bl	_WPA_PUT_BE16
	add	x0, x22, #24
	stp	x21, x20, [x22, #40]
	mov	w1, #2
	bl	_WPA_PUT_BE16
	mov	w8, #7
	str	x8, [x19]
LBB0_2:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Send Alert(%d:%d)"

	.comm	_TLS_CONTENT_TYPE_ALERT,4,2     ; @TLS_CONTENT_TYPE_ALERT
	.comm	_TLS_VERSION,4,2                ; @TLS_VERSION
.subsections_via_symbols
