	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policy_cache_set_mapping       ## -- Begin function policy_cache_set_mapping
	.p2align	4, 0x90
_policy_cache_set_mapping:              ## @policy_cache_set_mapping
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	callq	_sk_POLICY_MAPPING_num
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	%r12, %rdi
	callq	_sk_POLICY_MAPPING_num
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:
	xorl	%r13d, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_sk_POLICY_MAPPING_value
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_OBJ_obj2nid
	movq	_NID_any_policy@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	callq	_OBJ_obj2nid
	movq	_NID_any_policy@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_policy_cache_find_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	_POLICY_DATA_FLAG_MAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rcx
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rsi
	movq	_POLICY_DATA_FLAG_CRITICAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_policy_data_new
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	4(%rax), %eax
	movl	%eax, 8(%r15)
	movl	4(%r15), %eax
	movq	_POLICY_DATA_FLAG_MAPPED_ANY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_POLICY_DATA_FLAG_SHARED_QUALIFIERS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%r15)
	movl	(%rcx), %edi
	movq	%r15, %rsi
	callq	_sk_X509_POLICY_DATA_push
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movq	(%rbx), %rsi
	callq	_sk_ASN1_OBJECT_push
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movq	%r12, %rdi
	callq	_sk_POLICY_MAPPING_num
	cmpl	%eax, %r13d
	jl	LBB0_3
LBB0_16:
	movl	$1, %r14d
	jmp	LBB0_19
LBB0_15:
	movq	_EXFLAG_INVALID_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	$-1, %r14d
LBB0_19:
	movq	_POLICY_MAPPING_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sk_POLICY_MAPPING_pop_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_18:
	movq	%r15, %rdi
	callq	_policy_data_free
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_any_policy,8,3             ## @NID_any_policy
	.comm	_POLICY_DATA_FLAG_CRITICAL,4,2  ## @POLICY_DATA_FLAG_CRITICAL
	.comm	_POLICY_DATA_FLAG_MAPPED_ANY,4,2 ## @POLICY_DATA_FLAG_MAPPED_ANY
	.comm	_POLICY_DATA_FLAG_SHARED_QUALIFIERS,4,2 ## @POLICY_DATA_FLAG_SHARED_QUALIFIERS
	.comm	_POLICY_DATA_FLAG_MAPPED,4,2    ## @POLICY_DATA_FLAG_MAPPED
	.comm	_EXFLAG_INVALID_POLICY,4,2      ## @EXFLAG_INVALID_POLICY
	.comm	_POLICY_MAPPING_free,4,2        ## @POLICY_MAPPING_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policy_cache_set_mapping       ; -- Begin function policy_cache_set_mapping
	.p2align	2
_policy_cache_set_mapping:              ; @policy_cache_set_mapping
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_sk_POLICY_MAPPING_num
	cbz	w0, LBB0_14
; %bb.1:
	mov	x0, x19
	bl	_sk_POLICY_MAPPING_num
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w22, #0
Lloh0:
	adrp	x25, _NID_any_policy@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NID_any_policy@GOTPAGEOFF]
Lloh2:
	adrp	x26, _POLICY_DATA_FLAG_CRITICAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _POLICY_DATA_FLAG_CRITICAL@GOTPAGEOFF]
Lloh4:
	adrp	x28, _POLICY_DATA_FLAG_SHARED_QUALIFIERS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _POLICY_DATA_FLAG_SHARED_QUALIFIERS@GOTPAGEOFF]
Lloh6:
	adrp	x27, _POLICY_DATA_FLAG_MAPPED@GOTPAGE
Lloh7:
	ldr	x27, [x27, _POLICY_DATA_FLAG_MAPPED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_sk_POLICY_MAPPING_value
	mov	x23, x0
	ldr	x0, [x0]
	bl	_OBJ_obj2nid
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23, #8]
	bl	_OBJ_obj2nid
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23, #8]
	mov	x0, x21
	bl	_policy_cache_find_data
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	w8, [x27]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23, #8]
	ldr	w8, [x8]
	ldr	w9, [x26]
	and	w2, w9, w8
	mov	x0, #0
	bl	_policy_data_new
	cbz	x0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
Lloh8:
	adrp	x9, _POLICY_DATA_FLAG_MAPPED_ANY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _POLICY_DATA_FLAG_MAPPED_ANY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x0, #4]
	orr	w9, w10, w9
	ldr	w10, [x28]
	orr	w9, w10, w9
	stp	w9, w8, [x0, #4]
	ldr	w0, [x21]
	mov	x1, x24
	bl	_sk_X509_POLICY_DATA_push
	cbz	w0, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldr	x1, [x23]
	bl	_sk_ASN1_OBJECT_push
	cbz	w0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	mov	x0, x19
	bl	_sk_POLICY_MAPPING_num
	cmp	w22, w0
	b.lt	LBB0_3
LBB0_13:
	mov	w20, #1
	b	LBB0_15
LBB0_14:
Lloh11:
	adrp	x8, _EXFLAG_INVALID_POLICY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXFLAG_INVALID_POLICY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	w20, #-1
LBB0_15:
Lloh14:
	adrp	x8, _POLICY_MAPPING_free@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POLICY_MAPPING_free@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sk_POLICY_MAPPING_pop_free
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x24
	bl	_policy_data_free
LBB0_17:
	mov	w20, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_any_policy,8,3             ; @NID_any_policy
	.comm	_POLICY_DATA_FLAG_CRITICAL,4,2  ; @POLICY_DATA_FLAG_CRITICAL
	.comm	_POLICY_DATA_FLAG_MAPPED_ANY,4,2 ; @POLICY_DATA_FLAG_MAPPED_ANY
	.comm	_POLICY_DATA_FLAG_SHARED_QUALIFIERS,4,2 ; @POLICY_DATA_FLAG_SHARED_QUALIFIERS
	.comm	_POLICY_DATA_FLAG_MAPPED,4,2    ; @POLICY_DATA_FLAG_MAPPED
	.comm	_EXFLAG_INVALID_POLICY,4,2      ; @EXFLAG_INVALID_POLICY
	.comm	_POLICY_MAPPING_free,4,2        ; @POLICY_MAPPING_free
.subsections_via_symbols
