	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_RESP_get_policy
_ts_RESP_get_policy:                    ## @ts_RESP_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_OBJ_cmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %r12
	testq	%r12, %r12
	jne	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_sk_ASN1_OBJECT_num
	cmpl	%eax, %ebx
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_sk_ASN1_OBJECT_value
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_OBJ_cmp
	incl	%ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%r12, %r12
	je	LBB0_6
	jmp	LBB0_11
LBB0_1:
	movq	_TS_F_TS_RESP_GET_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TS_R_INVALID_NULL_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSerr
	jmp	LBB0_10
LBB0_9:
	movq	_TS_F_TS_RESP_GET_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TS_R_UNACCEPTABLE_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSerr
	movq	_TS_STATUS_REJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_TS_RESP_CTX_set_status_info
	movq	_TS_INFO_UNACCEPTED_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_TS_RESP_CTX_add_failure_info
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_F_TS_RESP_GET_POLICY,4,2    ## @TS_F_TS_RESP_GET_POLICY
	.comm	_TS_R_INVALID_NULL_POINTER,4,2  ## @TS_R_INVALID_NULL_POINTER
	.comm	_TS_R_UNACCEPTABLE_POLICY,4,2   ## @TS_R_UNACCEPTABLE_POLICY
	.comm	_TS_STATUS_REJECTION,4,2        ## @TS_STATUS_REJECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested policy is not supported."

	.comm	_TS_INFO_UNACCEPTED_POLICY,4,2  ## @TS_INFO_UNACCEPTED_POLICY
	.no_dead_strip	_ts_RESP_get_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_RESP_get_policy
_ts_RESP_get_policy:                    ; @ts_RESP_get_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	x21, [x0, #8]
	cbz	x21, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	cbz	x20, LBB0_9
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_OBJ_cmp
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_9
LBB0_4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_sk_ASN1_OBJECT_num
	cmp	w22, w0
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_sk_ASN1_OBJECT_value
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_OBJ_cmp
	add	w22, w22, #1
	cmp	w0, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_5
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _TS_F_TS_RESP_GET_POLICY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TS_F_TS_RESP_GET_POLICY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TS_R_INVALID_NULL_POINTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TS_R_INVALID_NULL_POINTER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_TSerr
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _TS_F_TS_RESP_GET_POLICY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TS_F_TS_RESP_GET_POLICY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _TS_R_UNACCEPTABLE_POLICY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TS_R_UNACCEPTABLE_POLICY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_TSerr
Lloh12:
	adrp	x8, _TS_STATUS_REJECTION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TS_STATUS_REJECTION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_TS_RESP_CTX_set_status_info
Lloh17:
	adrp	x8, _TS_INFO_UNACCEPTED_POLICY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TS_INFO_UNACCEPTED_POLICY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TS_RESP_CTX_add_failure_info
	mov	x21, #0
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_F_TS_RESP_GET_POLICY,4,2    ; @TS_F_TS_RESP_GET_POLICY
	.comm	_TS_R_INVALID_NULL_POINTER,4,2  ; @TS_R_INVALID_NULL_POINTER
	.comm	_TS_R_UNACCEPTABLE_POLICY,4,2   ; @TS_R_UNACCEPTABLE_POLICY
	.comm	_TS_STATUS_REJECTION,4,2        ; @TS_STATUS_REJECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested policy is not supported."

	.comm	_TS_INFO_UNACCEPTED_POLICY,4,2  ; @TS_INFO_UNACCEPTED_POLICY
	.no_dead_strip	_ts_RESP_get_policy
.subsections_via_symbols
