	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function policy_cache_new
_policy_cache_new:                      ## @policy_cache_new
	.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, 8(%rdi)
	jne	LBB0_28
## %bb.1:
	movq	%rdi, %rbx
	movl	$32, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	$-1, (%rax)
	movl	$-1, 8(%rax)
	movq	%rax, 8(%rbx)
	movq	_NID_policy_constraints@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_X509_get_ext_d2i
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_10
LBB0_5:
	leaq	4(%r12), %rdi
	callq	_policy_cache_set_int
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	(%r15), %rsi
	callq	_policy_cache_set_int
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_8:
	movq	_X509V3_F_POLICY_CACHE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509V3err
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_9:
	cmpl	$-1, -44(%rbp)
	jne	LBB0_10
LBB0_11:
	movq	_NID_certificate_policies@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_X509_get_ext_d2i
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_policy_cache_create
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_20
## %bb.13:
	movq	_NID_policy_mappings@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_X509_get_ext_d2i
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_policy_cache_set_mapping
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jg	LBB0_23
	jmp	LBB0_10
LBB0_17:
	cmpl	$-1, -44(%rbp)
	jne	LBB0_10
	jmp	LBB0_28
LBB0_20:
	movl	%eax, %r14d
	jmp	LBB0_28
LBB0_21:
	cmpl	$-1, -44(%rbp)
	je	LBB0_23
LBB0_10:
	xorl	%r13d, %r13d
LBB0_26:
	movq	_EXFLAG_INVALID_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_27:
	movq	%r15, %rdi
	callq	_POLICY_CONSTRAINTS_free
	movq	%r13, %rdi
	callq	_ASN1_INTEGER_free
LBB0_28:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_NID_inhibit_any_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_X509_get_ext_d2i
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_policy_cache_set_int
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_26
LBB0_25:
	xorl	%r13d, %r13d
	cmpl	$-1, -44(%rbp)
	jne	LBB0_26
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_X509V3_F_POLICY_CACHE_NEW,4,2  ## @X509V3_F_POLICY_CACHE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_NID_policy_constraints,4,2     ## @NID_policy_constraints
	.comm	_NID_certificate_policies,4,2   ## @NID_certificate_policies
	.comm	_NID_policy_mappings,4,2        ## @NID_policy_mappings
	.comm	_NID_inhibit_any_policy,4,2     ## @NID_inhibit_any_policy
	.comm	_EXFLAG_INVALID_POLICY,4,2      ## @EXFLAG_INVALID_POLICY
	.no_dead_strip	_policy_cache_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function policy_cache_new
_policy_cache_new:                      ; @policy_cache_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #8]
	cbnz	x8, LBB0_18
; %bb.1:
	mov	x19, x0
	mov	w0, #32
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	stp	xzr, xzr, [x0, #16]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x0]
	mov	w8, #-1
	mov	x22, x0
	str	w8, [x22, #8]!
	str	x0, [x19, #8]
Lloh0:
	adrp	x8, _NID_policy_constraints@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_policy_constraints@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_X509_get_ext_d2i
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x1, [x20, #8]
	cbnz	x1, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
LBB0_5:
	add	x0, x21, #4
	bl	_policy_cache_set_int
	cbz	w0, LBB0_15
; %bb.6:
	ldr	x1, [x20]
	mov	x0, x22
	bl	_policy_cache_set_int
	cbnz	w0, LBB0_9
	b	LBB0_15
LBB0_7:
Lloh3:
	adrp	x8, _X509V3_F_POLICY_CACHE_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509V3_F_POLICY_CACHE_NEW@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	_X509V3err
	mov	w0, #0
	b	LBB0_19
LBB0_8:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_15
LBB0_9:
Lloh9:
	adrp	x8, _NID_certificate_policies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NID_certificate_policies@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_X509_get_ext_d2i
	cbz	x0, LBB0_13
; %bb.10:
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_policy_cache_create
	str	w0, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.11:
Lloh12:
	adrp	x8, _NID_policy_mappings@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NID_policy_mappings@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_X509_get_ext_d2i
	cbz	x0, LBB0_14
; %bb.12:
	mov	x1, x0
	mov	x0, x19
	bl	_policy_cache_set_mapping
	str	w0, [sp, #12]
	cmp	w0, #1
	b.ge	LBB0_20
	b	LBB0_15
LBB0_13:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_15
	b	LBB0_18
LBB0_14:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.eq	LBB0_20
LBB0_15:
	mov	x22, #0
LBB0_16:
Lloh15:
	adrp	x8, _EXFLAG_INVALID_POLICY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXFLAG_INVALID_POLICY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_17:
	mov	x0, x20
	bl	_POLICY_CONSTRAINTS_free
	mov	x0, x22
	bl	_ASN1_INTEGER_free
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
Lloh18:
	adrp	x8, _NID_inhibit_any_policy@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NID_inhibit_any_policy@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_X509_get_ext_d2i
	mov	x22, x0
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	mov	x1, x22
	bl	_policy_cache_set_int
	cbnz	w0, LBB0_17
	b	LBB0_16
LBB0_22:
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.ne	LBB0_16
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_X509V3_F_POLICY_CACHE_NEW,4,2  ; @X509V3_F_POLICY_CACHE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_NID_policy_constraints,4,2     ; @NID_policy_constraints
	.comm	_NID_certificate_policies,4,2   ; @NID_certificate_policies
	.comm	_NID_policy_mappings,4,2        ; @NID_policy_mappings
	.comm	_NID_inhibit_any_policy,4,2     ; @NID_inhibit_any_policy
	.comm	_EXFLAG_INVALID_POLICY,4,2      ; @EXFLAG_INVALID_POLICY
	.no_dead_strip	_policy_cache_new
.subsections_via_symbols
