	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_handle_certificate_request
_client_handle_certificate_request:     ## @client_handle_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_PTLS_HANDSHAKE_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdx,%rax,4), %rdx
	movslq	%esi, %rax
	leaq	(%r15,%rax,4), %rcx
	leaq	8(%rdi), %r12
	movq	%r12, %rsi
	callq	_decode_certificate_request
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.2:
	movq	_PTLS_ALERT_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_PTLS_STATE_CLIENT_EXPECT_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ptls__key_schedule_update_hash
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_HANDSHAKE_HEADER_SIZE,4,2 ## @PTLS_HANDSHAKE_HEADER_SIZE
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ## @PTLS_ALERT_ILLEGAL_PARAMETER
	.comm	_PTLS_STATE_CLIENT_EXPECT_CERTIFICATE,4,2 ## @PTLS_STATE_CLIENT_EXPECT_CERTIFICATE
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
	.no_dead_strip	_client_handle_certificate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_handle_certificate_request
_client_handle_certificate_request:     ; @client_handle_certificate_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PTLS_HANDSHAKE_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_HANDSHAKE_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x2, x2, x8, lsl #2
	lsl	x8, x1, #32
	add	x3, x20, x8, asr #30
	add	x22, x0, #8
	mov	x1, x22
	bl	_decode_certificate_request
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _PTLS_STATE_CLIENT_EXPECT_CERTIFICATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTLS_STATE_CLIENT_EXPECT_CERTIFICATE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_ptls__key_schedule_update_hash
Lloh8:
	adrp	x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_HANDSHAKE_HEADER_SIZE,4,2 ; @PTLS_HANDSHAKE_HEADER_SIZE
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ; @PTLS_ALERT_ILLEGAL_PARAMETER
	.comm	_PTLS_STATE_CLIENT_EXPECT_CERTIFICATE,4,2 ; @PTLS_STATE_CLIENT_EXPECT_CERTIFICATE
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
	.no_dead_strip	_client_handle_certificate_request
.subsections_via_symbols
