	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_add_cert_to_wpacket
_ssl_add_cert_to_wpacket:               ## @ssl_add_cert_to_wpacket
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_i2d_X509
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_WPACKET_sub_allocate_bytes_u24
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_i2d_X509
	cmpl	%r14d, %eax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_SSL_EXT_TLS1_3_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_tls_construct_extensions
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_BUF_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_ADD_CERT_TO_WPACKET,4,2 ## @SSL_F_SSL_ADD_CERT_TO_WPACKET
	.comm	_ERR_R_BUF_LIB,4,2              ## @ERR_R_BUF_LIB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EXT_TLS1_3_CERTIFICATE,4,2 ## @SSL_EXT_TLS1_3_CERTIFICATE
	.no_dead_strip	_ssl_add_cert_to_wpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_add_cert_to_wpacket
_ssl_add_cert_to_wpacket:               ; @ssl_add_cert_to_wpacket
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	mov	x1, #0
	bl	_i2d_X509
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x23, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	_WPACKET_sub_allocate_bytes_u24
	cbz	w0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_i2d_X509
	cmp	w0, w23
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _SSL_EXT_TLS1_3_CERTIFICATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_EXT_TLS1_3_CERTIFICATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_tls_construct_extensions
	cbz	w0, LBB0_9
LBB0_5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_F_SSL_ADD_CERT_TO_WPACKET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _ERR_R_BUF_LIB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_BUF_LIB@GOTPAGEOFF]
LBB0_8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL_ADD_CERT_TO_WPACKET,4,2 ; @SSL_F_SSL_ADD_CERT_TO_WPACKET
	.comm	_ERR_R_BUF_LIB,4,2              ; @ERR_R_BUF_LIB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EXT_TLS1_3_CERTIFICATE,4,2 ; @SSL_EXT_TLS1_3_CERTIFICATE
	.no_dead_strip	_ssl_add_cert_to_wpacket
.subsections_via_symbols
