	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_custom_ext_add                 ## -- Begin function custom_ext_add
	.p2align	4, 0x90
_custom_ext_add:                        ## @custom_ext_add
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movl	$1, %eax
	cmpq	$0, (%rbx)
	je	LBB0_25
## %bb.1:
	movl	%esi, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	$40, %r15
	cmpq	(%rbx), %r14
	jae	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movq	$0, -80(%rbp)
	movq	8(%rbx), %r12
	movl	32(%r12,%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_should_add_extension
	testl	%eax, %eax
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SSL_EXT_TLS1_3_SERVER_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SSL_EXT_TLS1_2_SERVER_HELLO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SSL_EXT_TLS1_3_CERTIFICATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SSL_EXT_FLAG_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r15)
	je	LBB0_23
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12,%r15), %r11
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r11, %r11
	jne	LBB0_8
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r11, %r11
	je	LBB0_23
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12,%r15), %r10d
	movl	20(%r12,%r15), %esi
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	leaq	-56(%rbp), %rcx
	leaq	-80(%rbp), %r8
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	pushq	%r10
	leaq	-64(%rbp), %rax
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	*%r11
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r12,%r15), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ebx
	movq	-80(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_WPACKET_memcpy
	testl	%eax, %eax
	je	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SSL_EXT_FLAG_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r12,%r15), %eax
	sete	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_13
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SSL_EXT_FLAG_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12,%r15)
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12,%r15), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12,%r15), %r8d
	movl	20(%r12,%r15), %esi
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	*%rax
	jmp	LBB0_23
LBB0_13:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_24:
	movl	$1, %eax
	jmp	LBB0_25
LBB0_9:
	movq	_SSL_R_CALLBACK_FAILED@GOTPCREL(%rip), %rcx
	leaq	-64(%rbp), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	_SSL_F_CUSTOM_EXT_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSLfatal
	xorl	%eax, %eax
LBB0_25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ## @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_3_SERVER_HELLO,4,2 ## @SSL_EXT_TLS1_3_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS,4,2 ## @SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS
	.comm	_SSL_EXT_TLS1_3_CERTIFICATE,4,2 ## @SSL_EXT_TLS1_3_CERTIFICATE
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ## @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_EXT_FLAG_RECEIVED,4,2      ## @SSL_EXT_FLAG_RECEIVED
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ## @SSL_EXT_CLIENT_HELLO
	.comm	_SSL_F_CUSTOM_EXT_ADD,4,2       ## @SSL_F_CUSTOM_EXT_ADD
	.comm	_SSL_R_CALLBACK_FAILED,4,2      ## @SSL_R_CALLBACK_FAILED
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EXT_FLAG_SENT,4,2          ## @SSL_EXT_FLAG_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_custom_ext_add                 ; -- Begin function custom_ext_add
	.p2align	2
_custom_ext_add:                        ; @custom_ext_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x3, x4, [sp, #24]               ; 16-byte Folded Spill
	ldr	x27, [x0]
	ldr	x8, [x27]
	cbz	x8, LBB0_21
; %bb.1:
	mov	x20, x5
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x26, #0
	mov	x28, #0
Lloh0:
	adrp	x25, _SSL_EXT_CLIENT_HELLO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SSL_EXT_CLIENT_HELLO@GOTPAGEOFF]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldr	x8, [x27]
	add	x26, x26, #40
	cmp	x28, x8
	b.hs	LBB0_21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #40]
	ldr	x21, [x27, #8]
	add	x8, x21, x26
	ldr	w1, [x8, #32]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x20
	bl	_should_add_extension
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _SSL_EXT_TLS1_3_CERTIFICATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_CERTIFICATE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w24
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, x26]
Lloh17:
	adrp	x9, _SSL_EXT_FLAG_RECEIVED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SSL_EXT_FLAG_RECEIVED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25]
	add	x8, x21, x26
	ldr	x8, [x8, #8]
	tst	w9, w24
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x8, LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x8, LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x21, x26
	ldp	w9, w1, [x9, #16]
	str	w9, [sp]
	add	x22, sp, #60
	add	x3, sp, #48
	add	x4, sp, #40
	add	x7, sp, #60
	mov	x0, x19
	mov	x2, x24
	ldp	x5, x6, [sp, #24]               ; 16-byte Folded Reload
	blr	x8
	tbnz	w0, #31, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x21, x26
	ldr	w1, [x22, #20]
	mov	x0, x23
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [sp, #40]
	cbz	x2, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #48]
	mov	x0, x23
	bl	_WPACKET_memcpy
	cbz	w0, LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_WPACKET_close
	cbz	w0, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	tst	w8, w24
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x23
	mov	x23, x20
	mov	x20, x25
	ldr	w8, [x21, x26]
Lloh20:
	adrp	x25, _SSL_EXT_FLAG_SENT@GOTPAGE
Lloh21:
	ldr	x25, [x25, _SSL_EXT_FLAG_SENT@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	cset	w0, eq
	bl	_ossl_assert
	cbz	w0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x21, x26]
	orr	w8, w9, w8
	str	w8, [x21, x26]
	mov	x25, x20
	mov	x20, x23
	mov	x23, x19
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x21, x26
	ldr	x8, [x9, #24]
	cbz	x8, LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22, #20]
	ldr	x3, [sp, #48]
	ldr	w4, [x9, #16]
	mov	x0, x19
	mov	x2, x24
	blr	x8
	b	LBB0_2
LBB0_21:
	mov	w0, #1
	b	LBB0_26
LBB0_22:
Lloh22:
	adrp	x9, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh24:
	adrp	x22, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh25:
	ldr	x22, [x22, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh26:
	adrp	x9, _SSL_R_CALLBACK_FAILED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SSL_R_CALLBACK_FAILED@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh28:
	adrp	x9, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh30:
	adrp	x22, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh31:
	ldr	x22, [x22, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
LBB0_25:
	ldr	w1, [x22]
Lloh32:
	adrp	x8, _SSL_F_CUSTOM_EXT_ADD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SSL_F_CUSTOM_EXT_ADD@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	ldr	w3, [x9]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ; @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_3_SERVER_HELLO,4,2 ; @SSL_EXT_TLS1_3_SERVER_HELLO
	.comm	_SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS,4,2 ; @SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS
	.comm	_SSL_EXT_TLS1_3_CERTIFICATE,4,2 ; @SSL_EXT_TLS1_3_CERTIFICATE
	.comm	_SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,4,2 ; @SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST
	.comm	_SSL_EXT_FLAG_RECEIVED,4,2      ; @SSL_EXT_FLAG_RECEIVED
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ; @SSL_EXT_CLIENT_HELLO
	.comm	_SSL_F_CUSTOM_EXT_ADD,4,2       ; @SSL_F_CUSTOM_EXT_ADD
	.comm	_SSL_R_CALLBACK_FAILED,4,2      ; @SSL_R_CALLBACK_FAILED
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EXT_FLAG_SENT,4,2          ; @SSL_EXT_FLAG_SENT
.subsections_via_symbols
