	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function policy_cache_create
_policy_cache_create:                   ## @policy_cache_create
	.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
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_sk_POLICYINFO_num
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_policy_data_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sk_X509_POLICY_DATA_new
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%r15)
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, 8(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	cmpl	%r14d, %r13d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_sk_POLICYINFO_value
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_policy_data_new
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_OBJ_obj2nid
	movq	_NID_any_policy@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_sk_X509_POLICY_DATA_find
	testq	%rax, %rax
	jns	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_sk_X509_POLICY_DATA_push
	testl	%eax, %eax
	jne	LBB0_9
## %bb.13:
	movq	_X509V3_F_POLICY_CACHE_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509V3err
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_14:
	movq	_X509V3_F_POLICY_CACHE_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509V3err
	movq	_POLICYINFO_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sk_POLICYINFO_pop_free
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_15:
	movq	_EXFLAG_INVALID_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	movl	$-1, %r14d
LBB0_16:
	movb	$1, %r12b
LBB0_17:
	movq	%rbx, %rdi
	callq	_policy_data_free
	movq	_POLICYINFO_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sk_POLICYINFO_pop_free
	movl	$1, %eax
	testb	%r12b, %r12b
	je	LBB0_19
LBB0_18:
	movq	(%r15), %rdi
	movq	_policy_data_free@GOTPCREL(%rip), %rsi
	callq	_sk_X509_POLICY_DATA_pop_free
	movq	$0, (%r15)
	movl	%r14d, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_policy_data_cmp,4,2            ## @policy_data_cmp
	.comm	_X509V3_F_POLICY_CACHE_CREATE,4,2 ## @X509V3_F_POLICY_CACHE_CREATE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_NID_any_policy,8,3             ## @NID_any_policy
	.comm	_EXFLAG_INVALID_POLICY,4,2      ## @EXFLAG_INVALID_POLICY
	.comm	_POLICYINFO_free,4,2            ## @POLICYINFO_free
	.no_dead_strip	_policy_cache_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function policy_cache_create
_policy_cache_create:                   ; @policy_cache_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
	mov	x0, x1
	bl	_sk_POLICYINFO_num
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _policy_data_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _policy_data_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sk_X509_POLICY_DATA_new
	str	x0, [x25]
	cbz	x0, LBB0_12
; %bb.2:
	mov	w24, #0
Lloh3:
	adrp	x26, _NID_any_policy@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NID_any_policy@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [x25, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	cmp	w23, w24
	b.eq	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_sk_POLICYINFO_value
	mov	x1, #0
	mov	x2, x22
	bl	_policy_data_new
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_OBJ_obj2nid
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x25]
	mov	x1, x20
	bl	_sk_X509_POLICY_DATA_find
	tbz	x0, #63, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x25]
	mov	x1, x20
	bl	_sk_X509_POLICY_DATA_push
	cbnz	w0, LBB0_5
; %bb.10:
Lloh5:
	adrp	x8, _X509V3_F_POLICY_CACHE_CREATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _X509V3_F_POLICY_CACHE_CREATE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_X509V3err
	mov	w21, #0
	b	LBB0_14
LBB0_11:
	mov	x20, #0
	mov	w21, #0
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _X509V3_F_POLICY_CACHE_CREATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _X509V3_F_POLICY_CACHE_CREATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_X509V3err
Lloh17:
	adrp	x8, _POLICYINFO_free@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POLICYINFO_free@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sk_POLICYINFO_pop_free
	mov	w21, #0
	b	LBB0_16
LBB0_13:
Lloh20:
	adrp	x8, _EXFLAG_INVALID_POLICY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXFLAG_INVALID_POLICY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	w21, #-1
LBB0_14:
	mov	w22, #1
LBB0_15:
	mov	x0, x20
	bl	_policy_data_free
Lloh23:
	adrp	x8, _POLICYINFO_free@GOTPAGE
Lloh24:
	ldr	x8, [x8, _POLICYINFO_free@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sk_POLICYINFO_pop_free
	cbz	w22, LBB0_17
LBB0_16:
	ldr	x0, [x25]
Lloh26:
	adrp	x1, _policy_data_free@GOTPAGE
Lloh27:
	ldr	x1, [x1, _policy_data_free@GOTPAGEOFF]
	bl	_sk_X509_POLICY_DATA_pop_free
	str	xzr, [x25]
	b	LBB0_18
LBB0_17:
	mov	w21, #1
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x20, #0
	mov	w22, #0
	mov	w21, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_policy_data_cmp,4,2            ; @policy_data_cmp
	.comm	_X509V3_F_POLICY_CACHE_CREATE,4,2 ; @X509V3_F_POLICY_CACHE_CREATE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_NID_any_policy,8,3             ; @NID_any_policy
	.comm	_EXFLAG_INVALID_POLICY,4,2      ; @EXFLAG_INVALID_POLICY
	.comm	_POLICYINFO_free,4,2            ; @POLICYINFO_free
	.no_dead_strip	_policy_cache_create
.subsections_via_symbols
