	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_write_server_certificate_request
_tls_write_server_certificate_request:  ## @tls_write_server_certificate_request
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	leaq	L_.str.1(%rip), %rsi
	callq	_tlsv1_server_log
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	4(%rbx,%rax,4), %r13
	movl	%ecx, (%rbx,%rax,4)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 16(%rbx,%rax,4)
	leaq	(%rbx,%rax,4), %rdi
	addq	$24, %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_WPA_PUT_BE16
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_WPA_PUT_BE24
	leaq	4(%r12), %rdi
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	%rbx, %r14
	shrq	$2, %r14
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	movl	$8, %r9d
	callq	_tlsv1_record_send
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	-64(%rbp), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdx
	subq	%r14, %rdx
	shrq	$2, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_tls_verify_hash_add
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tlsv1_server_alert
	movl	$-1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$40, %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: No CertificateRequest needed"

L_.str.1:                               ## @.str.1
	.asciz	"Send CertificateRequest"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ## @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST,4,2 ## @TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @TLS_CONTENT_TYPE_HANDSHAKE
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.no_dead_strip	_tls_write_server_certificate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_write_server_certificate_request
_tls_write_server_certificate_request:  ; @tls_write_server_certificate_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_tlsv1_server_log
Lloh2:
	adrp	x8, _TLS_RECORD_HEADER_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLS_RECORD_HEADER_LEN@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	add	x22, x21, x8, lsl #2
Lloh5:
	adrp	x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	x24, x22, #4
	str	w8, [x22]
	add	x0, x22, #24
	movi.2s	v0, #1
	str	d0, [x22, #16]
	mov	w1, #0
	bl	_WPA_PUT_BE16
	mov	x0, x24
	mov	w1, #4
	bl	_WPA_PUT_BE24
	add	x0, x19, #4
Lloh8:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x8, x23, x21
	lsr	x3, x8, #2
	add	x6, sp, #8
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	mov	w5, #8
	bl	_tlsv1_record_send
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	add	x21, x21, x8, lsl #2
	sub	x8, x21, x22
	lsr	x2, x8, #2
	mov	x0, x19
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_tls_verify_hash_add
	mov	w0, #0
	str	x21, [x20]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh21:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: No CertificateRequest needed"

l_.str.1:                               ; @.str.1
	.asciz	"Send CertificateRequest"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ; @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST,4,2 ; @TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @TLS_CONTENT_TYPE_HANDSHAKE
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.no_dead_strip	_tls_write_server_certificate_request
.subsections_via_symbols
