	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_verify
_internal_verify:                       ## @internal_verify
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_sk_X509_num
	movl	%eax, %r13d
	leal	-1(%r13), %ebx
	movl	4(%r12), %edi
	movl	%ebx, %esi
	callq	_sk_X509_value
	movq	%rax, %r15
	xorl	%r14d, %r14d
	cmpq	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	*40(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %r13
	jmp	LBB0_9
LBB0_4:
	movq	32(%r12), %rax
	movq	_X509_V_FLAG_PARTIAL_CHAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %r13
	jmp	LBB0_20
LBB0_6:
	cmpl	$1, %r13d
	jg	LBB0_7
## %bb.23:
	movq	_X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify_cb_cert                 ## TAILCALL
LBB0_7:
	addl	$-2, %r13d
	movl	%r13d, (%r12)
	movl	%r13d, %ebx
LBB0_8:
	movl	4(%r12), %edi
	movl	%ebx, %esi
	callq	_sk_X509_value
	movq	%r15, %r13
	movq	%rax, %r15
LBB0_9:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.12:
	cmpq	%r13, %r15
	jne	LBB0_15
## %bb.13:
	movq	32(%r12), %rax
	movq	_X509_V_FLAG_CHECK_SS_SIGNATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
LBB0_15:
	movq	%r13, %rdi
	callq	_X509_get0_pubkey
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_X509_verify
	testq	%rax, %rax
	jg	LBB0_20
## %bb.18:
	movq	_X509_V_ERR_CERT_SIGNATURE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	jmp	LBB0_19
LBB0_16:
	xorl	%edx, %edx
	cmpq	%r13, %r15
	setne	%dl
	addl	%ebx, %edx
	movq	_X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
LBB0_19:
	callq	_verify_cb_cert
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_11
LBB0_14:
	movq	%r13, %r15
LBB0_20:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_x509_check_cert_time
	testl	%eax, %eax
	je	LBB0_11
## %bb.21:
	movq	%r13, 24(%r12)
	movq	%r15, 16(%r12)
	movl	%ebx, (%r12)
	movl	$1, %edi
	movq	%r12, %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.22:
	leal	-1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jg	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_V_FLAG_PARTIAL_CHAIN,4,2  ## @X509_V_FLAG_PARTIAL_CHAIN
	.comm	_X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,4,2 ## @X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
	.comm	_X509_V_FLAG_CHECK_SS_SIGNATURE,4,2 ## @X509_V_FLAG_CHECK_SS_SIGNATURE
	.comm	_X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY,4,2 ## @X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
	.comm	_X509_V_ERR_CERT_SIGNATURE_FAILURE,4,2 ## @X509_V_ERR_CERT_SIGNATURE_FAILURE
	.no_dead_strip	_internal_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_verify
_internal_verify:                       ; @internal_verify
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_sk_X509_num
	mov	x22, x0
	sub	w20, w0, #1
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_sk_X509_value
	mov	x21, x0
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_18
LBB0_2:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x21
	b	LBB0_10
LBB0_4:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _X509_V_FLAG_PARTIAL_CHAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X509_V_FLAG_PARTIAL_CHAIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x22, x21
	b	LBB0_18
LBB0_6:
	cmp	w22, #1
	b.gt	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	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
	b	_verify_cb_cert
LBB0_8:
	sub	w20, w22, #2
	str	w20, [x19]
LBB0_9:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_sk_X509_value
	mov	x22, x21
	mov	x21, x0
LBB0_10:
	tbnz	w20, #31, LBB0_21
; %bb.11:
	cmp	x21, x22
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _X509_V_FLAG_CHECK_SS_SIGNATURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _X509_V_FLAG_CHECK_SS_SIGNATURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
LBB0_13:
	mov	x0, x22
	bl	_X509_get0_pubkey
	cbz	x0, LBB0_16
; %bb.14:
	mov	x1, x0
	mov	x0, x21
	bl	_X509_verify
	cmp	x0, #0
	b.gt	LBB0_18
; %bb.15:
Lloh9:
	adrp	x8, _X509_V_ERR_CERT_SIGNATURE_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_V_ERR_CERT_SIGNATURE_FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_verify_cb_cert
	cbnz	w0, LBB0_18
	b	LBB0_22
LBB0_16:
	cmp	x21, x22
	cinc	w2, w20, ne
Lloh12:
	adrp	x8, _X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_verify_cb_cert
	cbnz	w0, LBB0_18
	b	LBB0_22
LBB0_17:
	mov	x21, x22
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_x509_check_cert_time
	cbz	w0, LBB0_22
; %bb.19:
	stp	x21, x22, [x19, #16]
	str	w20, [x19]
	ldr	x8, [x19, #8]
	mov	w0, #1
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.20:
	sub	w8, w20, #1
	cmp	w20, #0
	mov	x20, x8
	b.gt	LBB0_9
	b	LBB0_10
LBB0_21:
	mov	w0, #1
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_V_FLAG_PARTIAL_CHAIN,4,2  ; @X509_V_FLAG_PARTIAL_CHAIN
	.comm	_X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,4,2 ; @X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
	.comm	_X509_V_FLAG_CHECK_SS_SIGNATURE,4,2 ; @X509_V_FLAG_CHECK_SS_SIGNATURE
	.comm	_X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY,4,2 ; @X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
	.comm	_X509_V_ERR_CERT_SIGNATURE_FAILURE,4,2 ; @X509_V_ERR_CERT_SIGNATURE_FAILURE
	.no_dead_strip	_internal_verify
.subsections_via_symbols
