	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_policy
_check_policy:                          ## @check_policy
	.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
	movl	$1, %r14d
	cmpq	$0, 56(%rdi)
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_4
## %bb.2:
	movl	32(%r15), %edi
	xorl	%esi, %esi
	callq	_sk_X509_push
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	leaq	52(%r15), %rdi
	leaq	48(%r15), %rsi
	movl	32(%r15), %edx
	movq	16(%r15), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	callq	_X509_policy_check
	movl	%eax, %ebx
	cmpq	$0, 40(%r15)
	je	LBB0_6
## %bb.5:
	movl	32(%r15), %edi
	callq	_sk_X509_pop
LBB0_6:
	movq	_X509_PCY_TREE_INTERNAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
LBB0_3:
	movq	_X509_F_CHECK_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	movq	_X509_V_ERR_OUT_OF_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_X509_PCY_TREE_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.8:
	movl	32(%r15), %edi
	callq	_sk_X509_num
	cmpl	$2, %eax
	jl	LBB0_19
## %bb.9:
	movl	$1, %ebx
	movq	_EXFLAG_INVALID_POLICY@GOTPCREL(%rip), %r12
	movq	_X509_V_ERR_INVALID_POLICY_EXTENSION@GOTPCREL(%rip), %r13
	movl	$1, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	movl	32(%r15), %edi
	callq	_sk_X509_num
	cmpl	%eax, %ebx
	jge	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %edi
	movl	%ebx, %esi
	callq	_sk_X509_value
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_verify_cb_cert
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_18
LBB0_13:
	movq	_X509_PCY_TREE_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_14
## %bb.20:
	movq	$0, 8(%r15)
	movq	_X509_V_ERR_NO_EXPLICIT_POLICY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	(%r15), %rax
	xorl	%edi, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	movq	_X509_PCY_TREE_VALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
## %bb.16:
	movq	16(%r15), %rax
	movq	_X509_V_FLAG_NOTIFY_POLICY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.17:
	movq	$0, 8(%r15)
	movl	$2, %edi
	movq	%r15, %rsi
	callq	*(%r15)
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_18
LBB0_15:
	movq	_X509_F_CHECK_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_CHECK_POLICY,4,2        ## @X509_F_CHECK_POLICY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_X509_V_ERR_OUT_OF_MEM,8,3      ## @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_PCY_TREE_INTERNAL,4,2     ## @X509_PCY_TREE_INTERNAL
	.comm	_X509_PCY_TREE_INVALID,4,2      ## @X509_PCY_TREE_INVALID
	.comm	_EXFLAG_INVALID_POLICY,4,2      ## @EXFLAG_INVALID_POLICY
	.comm	_X509_V_ERR_INVALID_POLICY_EXTENSION,4,2 ## @X509_V_ERR_INVALID_POLICY_EXTENSION
	.comm	_X509_PCY_TREE_FAILURE,4,2      ## @X509_PCY_TREE_FAILURE
	.comm	_X509_V_ERR_NO_EXPLICIT_POLICY,8,3 ## @X509_V_ERR_NO_EXPLICIT_POLICY
	.comm	_X509_PCY_TREE_VALID,4,2        ## @X509_PCY_TREE_VALID
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_X509_V_FLAG_NOTIFY_POLICY,4,2  ## @X509_V_FLAG_NOTIFY_POLICY
	.no_dead_strip	_check_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_policy
_check_policy:                          ; @check_policy
	.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, #56]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_sk_X509_push
	cbz	w0, LBB0_7
LBB0_4:
	add	x0, x19, #52
	add	x1, x19, #48
	ldr	w2, [x19, #32]
	ldr	x8, [x19, #16]
	ldp	w4, w3, [x8]
	bl	_X509_policy_check
	mov	x20, x0
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #32]
	bl	_sk_X509_pop
LBB0_6:
Lloh0:
	adrp	x8, _X509_PCY_TREE_INTERNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_PCY_TREE_INTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _X509_F_CHECK_POLICY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_F_CHECK_POLICY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_X509err
	mov	w0, #0
Lloh9:
	adrp	x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_8:
	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_9:
Lloh12:
	adrp	x8, _X509_PCY_TREE_INVALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X509_PCY_TREE_INVALID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_15
; %bb.10:
	ldr	w0, [x19, #32]
	bl	_sk_X509_num
	cmp	w0, #2
	b.lt	LBB0_1
; %bb.11:
	mov	w20, #1
Lloh15:
	adrp	x21, _EXFLAG_INVALID_POLICY@GOTPAGE
Lloh16:
	ldr	x21, [x21, _EXFLAG_INVALID_POLICY@GOTPAGEOFF]
Lloh17:
	adrp	x22, _X509_V_ERR_INVALID_POLICY_EXTENSION@GOTPAGE
Lloh18:
	ldr	x22, [x22, _X509_V_ERR_INVALID_POLICY_EXTENSION@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w20, w20, #1
	ldr	w0, [x19, #32]
	bl	_sk_X509_num
	mov	x8, x0
	mov	w0, #1
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_sk_X509_value
	ldr	w8, [x0]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	ldr	w3, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_verify_cb_cert
	cbnz	w0, LBB0_12
	b	LBB0_8
LBB0_15:
Lloh19:
	adrp	x8, _X509_PCY_TREE_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _X509_PCY_TREE_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_17
; %bb.16:
Lloh22:
	adrp	x8, _X509_V_ERR_NO_EXPLICIT_POLICY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _X509_V_ERR_NO_EXPLICIT_POLICY@GOTPAGEOFF]
	str	xzr, [x19, #8]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x2, [x19]
	mov	w0, #0
	mov	x1, x19
	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
	br	x2
LBB0_17:
Lloh25:
	adrp	x8, _X509_PCY_TREE_VALID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _X509_PCY_TREE_VALID@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_20
; %bb.18:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _X509_V_FLAG_NOTIFY_POLICY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _X509_V_FLAG_NOTIFY_POLICY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.19:
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	mov	w0, #2
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_1
	b	LBB0_8
LBB0_20:
Lloh31:
	adrp	x8, _X509_F_CHECK_POLICY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _X509_F_CHECK_POLICY@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_X509err
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_CHECK_POLICY,4,2        ; @X509_F_CHECK_POLICY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_X509_V_ERR_OUT_OF_MEM,8,3      ; @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_PCY_TREE_INTERNAL,4,2     ; @X509_PCY_TREE_INTERNAL
	.comm	_X509_PCY_TREE_INVALID,4,2      ; @X509_PCY_TREE_INVALID
	.comm	_EXFLAG_INVALID_POLICY,4,2      ; @EXFLAG_INVALID_POLICY
	.comm	_X509_V_ERR_INVALID_POLICY_EXTENSION,4,2 ; @X509_V_ERR_INVALID_POLICY_EXTENSION
	.comm	_X509_PCY_TREE_FAILURE,4,2      ; @X509_PCY_TREE_FAILURE
	.comm	_X509_V_ERR_NO_EXPLICIT_POLICY,8,3 ; @X509_V_ERR_NO_EXPLICIT_POLICY
	.comm	_X509_PCY_TREE_VALID,4,2        ; @X509_PCY_TREE_VALID
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_X509_V_FLAG_NOTIFY_POLICY,4,2  ; @X509_V_FLAG_NOTIFY_POLICY
	.no_dead_strip	_check_policy
.subsections_via_symbols
