	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_client_certificate ## -- Begin function tls_construct_client_certificate
	.p2align	4, 0x90
_tls_construct_client_certificate:      ## @tls_construct_client_certificate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.5:
	movl	20(%rbx), %edx
	movq	%r15, %rdi
	callq	_WPACKET_sub_memcpy_u8
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	xorl	%r14d, %r14d
	cmpl	$2, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ssl3_output_cert_chain
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_SSL_IS_TLS13
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_SSL_IS_FIRST_HANDSHAKE
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_SSL3_CC_HANDSHAKE@GOTPCREL(%rip), %rcx
	movq	_SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	_SSL_R_CANNOT_CHANGE_CIPHER@GOTPCREL(%rip), %rax
	movq	_SSL_AD_NO_ALERT@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WPACKET_put_bytes_u8
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE,4,2 ## @SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_HANDSHAKE,4,2          ## @SSL3_CC_HANDSHAKE
	.comm	_SSL3_CHANGE_CIPHER_CLIENT_WRITE,4,2 ## @SSL3_CHANGE_CIPHER_CLIENT_WRITE
	.comm	_SSL_AD_NO_ALERT,4,2            ## @SSL_AD_NO_ALERT
	.comm	_SSL_R_CANNOT_CHANGE_CIPHER,4,2 ## @SSL_R_CANNOT_CHANGE_CIPHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_client_certificate ; -- Begin function tls_construct_client_certificate
	.p2align	2
_tls_construct_client_certificate:      ; @tls_construct_client_certificate
	.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	x20, x1
	mov	x19, x0
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_11
; %bb.2:
	ldr	w2, [x19, #20]
	mov	x0, x20
	bl	_WPACKET_sub_memcpy_u8
	cbz	w0, LBB0_12
LBB0_3:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.4:
	mov	x2, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_ssl3_output_cert_chain
	cbz	w0, LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_SSL_IS_FIRST_HANDSHAKE
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SSL3_CC_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL3_CC_HANDSHAKE@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SSL3_CHANGE_CIPHER_CLIENT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w1, w10, w9
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_13
LBB0_10:
	mov	w0, #1
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_WPACKET_put_bytes_u8
	cbnz	w0, LBB0_3
LBB0_12:
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _SSL_R_CANNOT_CHANGE_CIPHER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_R_CANNOT_CHANGE_CIPHER@GOTPAGEOFF]
Lloh12:
	adrp	x9, _SSL_AD_NO_ALERT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SSL_AD_NO_ALERT@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x9]
Lloh14:
	adrp	x9, _SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE,4,2 ; @SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL3_CC_HANDSHAKE,4,2          ; @SSL3_CC_HANDSHAKE
	.comm	_SSL3_CHANGE_CIPHER_CLIENT_WRITE,4,2 ; @SSL3_CHANGE_CIPHER_CLIENT_WRITE
	.comm	_SSL_AD_NO_ALERT,4,2            ; @SSL_AD_NO_ALERT
	.comm	_SSL_R_CANNOT_CHANGE_CIPHER,4,2 ; @SSL_R_CANNOT_CHANGE_CIPHER
.subsections_via_symbols
