	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_chain
_verify_chain:                          ## @verify_chain
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_build_chain
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_check_chain_extensions
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_check_auth_level
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_check_id
	movl	%eax, %r15d
	movl	36(%rbx), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_X509_get_pubkey_parameters
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.5:
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	leaq	32(%rbx), %rdi
	movl	36(%rbx), %edx
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_X509_chain_check_suiteb
	movq	_X509_V_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_verify_cb_cert
	testl	%eax, %eax
	je	LBB0_17
LBB0_8:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	movq	%rbx, %rdi
	je	LBB0_10
## %bb.9:
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_17
LBB0_3:
	movl	36(%rbx), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_X509_get_pubkey_parameters
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	_internal_verify
	testl	%eax, %eax
	je	LBB0_17
LBB0_12:
	movq	%rbx, %rdi
	callq	_check_name_constraints
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movq	%rbx, %rdi
	callq	_X509v3_asid_validate_path
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	callq	_X509v3_addr_validate_path
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	24(%rbx), %rcx
	movq	_X509_V_FLAG_POLICY_CHECK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_16
## %bb.18:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*16(%rdi)                       ## TAILCALL
LBB0_16:
	movl	%eax, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_V_OK,4,2                  ## @X509_V_OK
	.comm	_X509_V_FLAG_POLICY_CHECK,4,2   ## @X509_V_FLAG_POLICY_CHECK
	.no_dead_strip	_verify_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_chain
_verify_chain:                          ; @verify_chain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_build_chain
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_check_chain_extensions
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_check_auth_level
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_check_id
	mov	x20, x0
	ldr	w1, [x19, #36]
	mov	x0, #0
	bl	_X509_get_pubkey_parameters
	cbz	w20, LBB0_10
; %bb.4:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_11
; %bb.5:
	add	x0, x19, #32
	ldr	w2, [x19, #36]
	ldr	x8, [x19, #24]
	ldr	w3, [x8]
	mov	x1, #0
	bl	_X509_chain_check_suiteb
Lloh0:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x3, x0
	ldr	w2, [x19, #32]
	mov	x0, x19
	mov	x1, #0
	bl	_verify_cb_cert
	cbz	w0, LBB0_11
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_13
	b	LBB0_11
LBB0_9:
	ldr	w1, [x19, #36]
	mov	x0, #0
	bl	_X509_get_pubkey_parameters
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_internal_verify
	cbz	w0, LBB0_11
LBB0_13:
	mov	x0, x19
	bl	_check_name_constraints
	cbz	w0, LBB0_11
; %bb.14:
	mov	x0, x19
	bl	_X509v3_asid_validate_path
	cbz	w0, LBB0_11
; %bb.15:
	mov	x0, x19
	bl	_X509v3_addr_validate_path
	cbz	w0, LBB0_11
; %bb.16:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _X509_V_FLAG_POLICY_CHECK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X509_V_FLAG_POLICY_CHECK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.17:
	ldr	x1, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_V_OK,4,2                  ; @X509_V_OK
	.comm	_X509_V_FLAG_POLICY_CHECK,4,2   ; @X509_V_FLAG_POLICY_CHECK
	.no_dead_strip	_verify_chain
.subsections_via_symbols
