	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_custom_ext_intern
_add_custom_ext_intern:                 ## @add_custom_ext_intern
	.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
	movq	%r8, %r12
	movl	%edx, %ebx
	movq	(%rdi), %r15
	xorl	%r13d, %r13d
	testq	%r8, %r8
	jne	LBB0_2
## %bb.1:
	testq	%r9, %r9
	jne	LBB0_10
LBB0_2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	_TLSEXT_TYPE_signed_certificate_timestamp@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.3:
	movq	_SSL_EXT_CLIENT_HELLO@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	callq	_SSL_CTX_ct_is_enabled
	testq	%rax, %rax
	jne	LBB0_10
LBB0_5:
	movl	%ebx, %edi
	callq	_SSL_extension_supported
	testq	%rax, %rax
	setne	%al
	cmpl	%ebx, (%r14)
	setne	%cl
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	ja	LBB0_10
## %bb.6:
	andb	%cl, %al
	jne	LBB0_10
## %bb.7:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_custom_ext_find
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	8(%r15), %rdi
	movl	(%r15), %eax
	leal	(%rax,%rax,2), %esi
	shll	$4, %esi
	addl	$48, %esi
	callq	_OPENSSL_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 8(%r15)
	movq	%rax, %r13
	movslq	(%r15), %rax
	leaq	(%rax,%rax,2), %r14
	shlq	$4, %r14
	movq	%r13, %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 44(%r13,%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%r14)
	movl	24(%rbp), %eax
	movl	%eax, 40(%r13,%r14)
	movq	%r12, 32(%r13,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r13,%r14)
	movl	%ebx, 4(%r13,%r14)
	movq	16(%rbp), %rax
	movq	%rax, 16(%r13,%r14)
	movq	32(%rbp), %rax
	movq	%rax, 8(%r13,%r14)
	incl	(%r15)
	movl	$1, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLSEXT_TYPE_signed_certificate_timestamp,4,2 ## @TLSEXT_TYPE_signed_certificate_timestamp
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ## @SSL_EXT_CLIENT_HELLO
	.no_dead_strip	_add_custom_ext_intern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_custom_ext_intern
_add_custom_ext_intern:                 ; @add_custom_ext_intern
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x7
	mov	x19, x6
	mov	x20, x5
	mov	x25, x4
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	ldr	x22, [x0]
	cbnz	x4, LBB0_2
; %bb.1:
	cbnz	x20, LBB0_8
LBB0_2:
Lloh0:
	adrp	x27, _TLSEXT_TYPE_signed_certificate_timestamp@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TLSEXT_TYPE_signed_certificate_timestamp@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w24
	b.ne	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _SSL_EXT_CLIENT_HELLO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_EXT_CLIENT_HELLO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.4:
	bl	_SSL_CTX_ct_is_enabled
	cbnz	x0, LBB0_8
LBB0_5:
	mov	x0, x24
	bl	_SSL_extension_supported
	mov	x8, x0
	mov	w0, #0
	cmp	x8, #0
	ldr	w8, [x27]
	ccmp	w8, w24, #4, ne
	cset	w8, ne
	lsr	w9, w24, #16
	cbnz	w9, LBB0_9
; %bb.6:
	tbnz	w8, #0, LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x26
	mov	x2, x24
	mov	x3, #0
	bl	_custom_ext_find
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x22, #8]
	ldr	w8, [x22]
	mov	w9, #48
	orr	w10, wzr, #0x30
	madd	w1, w8, w9, w10
	bl	_OPENSSL_realloc
	cbz	x0, LBB0_9
; %bb.11:
	ldr	x28, [x29, #16]
	str	x0, [x22, #8]
	ldrsw	x8, [x22]
	mov	w9, #48
	madd	x27, x8, x9, x0
	mov	x0, x27
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	stp	w21, w26, [x27, #40]
	stp	x20, x25, [x27, #24]
	stp	w23, w24, [x27]
	stp	x28, x19, [x27, #8]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TLSEXT_TYPE_signed_certificate_timestamp,4,2 ; @TLSEXT_TYPE_signed_certificate_timestamp
	.comm	_SSL_EXT_CLIENT_HELLO,4,2       ; @SSL_EXT_CLIENT_HELLO
	.no_dead_strip	_add_custom_ext_intern
.subsections_via_symbols
