	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_custom_ext_parse               ## -- Begin function custom_ext_parse
	.p2align	4, 0x90
_custom_ext_parse:                      ## @custom_ext_parse
	.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
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %rsi
	movq	_SSL_EXT_TLS1_2_SERVER_HELLO@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%rsi), %eax
	testl	%ebx, %eax
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%r13)
	jne	LBB0_3
## %bb.4:
	movq	_ENDPOINT_CLIENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENDPOINT_BOTH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ENDPOINT_SERVER@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	callq	_custom_ext_find
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r12
	movl	20(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_extension_is_relevant
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	_SSL_EXT_TLS1_3_SERVER_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	movq	_SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_10
## %bb.8:
	movq	_SSL_EXT_FLAG_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_9
LBB0_10:
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_SSL_EXT_FLAG_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_12:
	movq	8(%r12), %r10
	testq	%r10, %r10
	je	LBB0_16
## %bb.13:
	movl	16(%r12), %eax
	subq	$8, %rsp
	leaq	-48(%rbp), %r11
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	%r11
	pushq	16(%rbp)
	callq	*%r10
	addq	$32, %rsp
	testq	%rax, %rax
	jg	LBB0_16
## %bb.14:
	movl	-48(%rbp), %esi
	jmp	LBB0_15
LBB0_9:
	movq	_TLS1_AD_UNSUPPORTED_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_15:
	movq	_SSL_F_CUSTOM_EXT_PARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_SSLfatal
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENDPOINT_BOTH,4,2              ## @ENDPOINT_BOTH
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ## @SSL_EXT_CLIENT_HELLO
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ## @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_ENDPOINT_SERVER,4,2            ## @ENDPOINT_SERVER
	.comm	_ENDPOINT_CLIENT,4,2            ## @ENDPOINT_CLIENT
	.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_FLAG_SENT,4,2          ## @SSL_EXT_FLAG_SENT
	.comm	_TLS1_AD_UNSUPPORTED_EXTENSION,4,2 ## @TLS1_AD_UNSUPPORTED_EXTENSION
	.comm	_SSL_F_CUSTOM_EXT_PARSE,4,2     ## @SSL_F_CUSTOM_EXT_PARSE
	.comm	_SSL_R_BAD_EXTENSION,4,2        ## @SSL_R_BAD_EXTENSION
	.comm	_SSL_EXT_FLAG_RECEIVED,4,2      ## @SSL_EXT_FLAG_RECEIVED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_custom_ext_parse               ; -- Begin function custom_ext_parse
	.p2align	2
_custom_ext_parse:                      ; @custom_ext_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x27, _SSL_EXT_CLIENT_HELLO@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SSL_EXT_CLIENT_HELLO@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x28, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SSL_EXT_TLS1_2_SERVER_HELLO@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ENDPOINT_SERVER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENDPOINT_SERVER@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh6:
	adrp	x10, _ENDPOINT_CLIENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ENDPOINT_CLIENT@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _ENDPOINT_BOTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENDPOINT_BOTH@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x2, x24
	mov	x3, #0
	bl	_custom_ext_find
	cbz	x0, LBB0_11
; %bb.4:
	mov	x26, x0
	ldr	w1, [x0, #20]
	mov	x0, x19
	mov	x2, x25
	bl	_extension_is_relevant
	cbz	w0, LBB0_11
; %bb.5:
	ldr	w8, [x28]
Lloh10:
	adrp	x9, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_SERVER_HELLO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w25
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x26]
Lloh16:
	adrp	x9, _SSL_EXT_FLAG_SENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSL_EXT_FLAG_SENT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_7:
	ldr	w8, [x27]
	tst	w8, w25
	b.eq	LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, _SSL_EXT_FLAG_RECEIVED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_EXT_FLAG_RECEIVED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x26]
LBB0_9:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w9, [x26, #16]
	str	w9, [sp]
	add	x7, sp, #12
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	blr	x8
	cmp	x0, #0
	b.le	LBB0_14
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh22:
	adrp	x8, _TLS1_AD_UNSUPPORTED_EXTENSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TLS1_AD_UNSUPPORTED_EXTENSION@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_14:
	ldr	w1, [sp, #12]
LBB0_15:
Lloh25:
	adrp	x8, _SSL_F_CUSTOM_EXT_PARSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_F_CUSTOM_EXT_PARSE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _SSL_R_BAD_EXTENSION@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SSL_R_BAD_EXTENSION@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENDPOINT_BOTH,4,2              ; @ENDPOINT_BOTH
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ; @SSL_EXT_CLIENT_HELLO
	.comm	_SSL_EXT_TLS1_2_SERVER_HELLO,4,2 ; @SSL_EXT_TLS1_2_SERVER_HELLO
	.comm	_ENDPOINT_SERVER,4,2            ; @ENDPOINT_SERVER
	.comm	_ENDPOINT_CLIENT,4,2            ; @ENDPOINT_CLIENT
	.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_FLAG_SENT,4,2          ; @SSL_EXT_FLAG_SENT
	.comm	_TLS1_AD_UNSUPPORTED_EXTENSION,4,2 ; @TLS1_AD_UNSUPPORTED_EXTENSION
	.comm	_SSL_F_CUSTOM_EXT_PARSE,4,2     ; @SSL_F_CUSTOM_EXT_PARSE
	.comm	_SSL_R_BAD_EXTENSION,4,2        ; @SSL_R_BAD_EXTENSION
	.comm	_SSL_EXT_FLAG_RECEIVED,4,2      ; @SSL_EXT_FLAG_RECEIVED
.subsections_via_symbols
