	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_tls13_capable
_is_tls13_capable:                      ## @is_tls13_capable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rdi)
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
LBB0_5:
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SSL_PKEY_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_16
## %bb.8:
	xorl	%ebx, %ebx
	movq	_SSL_PKEY_ECC@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	xorl	%eax, %eax
	cmpl	(%r15), %ebx
	jge	LBB0_6
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	cmpl	$128, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ssl_has_cert
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	(%r12), %ebx
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_EVP_PKEY_get0_EC_KEY
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	callq	_EC_KEY_get0_group
	movl	%eax, %edi
	callq	_EC_GROUP_get_curve_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_tls_check_sigalg_curve
	testq	%rax, %rax
	je	LBB0_9
	jmp	LBB0_5
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_PKEY_NUM,4,2               ## @SSL_PKEY_NUM
	.comm	_SSL_PKEY_ECC,4,2               ## @SSL_PKEY_ECC
	.no_dead_strip	_is_tls13_capable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_tls13_capable
_is_tls13_capable:                      ; @is_tls13_capable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x21, _SSL_PKEY_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SSL_PKEY_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x20, #0
Lloh2:
	adrp	x22, _SSL_PKEY_ECC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SSL_PKEY_ECC@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	ldr	w8, [x21]
	add	x20, x20, #1
	cmp	w20, w8
	b.ge	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w20, #0x7ffffffc
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ssl_has_cert
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_EVP_PKEY_get0_EC_KEY
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_EC_KEY_get0_group
	bl	_EC_GROUP_get_curve_name
	mov	x1, x0
	mov	x0, x19
	bl	_tls_check_sigalg_curve
	cbz	x0, LBB0_7
	b	LBB0_3
LBB0_13:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_PKEY_NUM,4,2               ; @SSL_PKEY_NUM
	.comm	_SSL_PKEY_ECC,4,2               ; @SSL_PKEY_ECC
	.no_dead_strip	_is_tls13_capable
.subsections_via_symbols
