	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_purpose_timestamp_sign
_check_purpose_timestamp_sign:          ## @check_purpose_timestamp_sign
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	testl	%edx, %edx
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_check_ca                       ## TAILCALL
LBB0_1:
	movl	(%rbx), %eax
	movq	_EXFLAG_KUSAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_KU_NON_REPUDIATION@GOTPCREL(%rip), %rdx
	movq	_KU_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	4(%rbx), %edx
	movl	%ecx, %esi
	notl	%esi
	xorl	%r14d, %r14d
	testl	%esi, %edx
	jne	LBB0_9
## %bb.3:
	andl	%edx, %ecx
	je	LBB0_9
LBB0_4:
	movq	_EXFLAG_XKUSAGE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.5:
	movq	8(%rbx), %rax
	movq	_XKU_TIMESTAMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	_NID_ext_key_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_X509_get_ext_by_NID
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_X509_get_ext
	movq	%rax, %rdi
	callq	_X509_EXTENSION_get_critical
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXFLAG_KUSAGE,4,2              ## @EXFLAG_KUSAGE
	.comm	_KU_NON_REPUDIATION,4,2         ## @KU_NON_REPUDIATION
	.comm	_KU_DIGITAL_SIGNATURE,4,2       ## @KU_DIGITAL_SIGNATURE
	.comm	_EXFLAG_XKUSAGE,4,2             ## @EXFLAG_XKUSAGE
	.comm	_XKU_TIMESTAMP,8,3              ## @XKU_TIMESTAMP
	.comm	_NID_ext_key_usage,4,2          ## @NID_ext_key_usage
	.no_dead_strip	_check_purpose_timestamp_sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_purpose_timestamp_sign
_check_purpose_timestamp_sign:          ; @check_purpose_timestamp_sign
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cbz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_check_ca
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _EXFLAG_KUSAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXFLAG_KUSAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #4]
Lloh3:
	adrp	x10, _KU_NON_REPUDIATION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _KU_NON_REPUDIATION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _KU_DIGITAL_SIGNATURE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _KU_DIGITAL_SIGNATURE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bic	w11, w9, w10
	and	w9, w10, w9
	cmp	w11, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_9
LBB0_4:
Lloh9:
	adrp	x9, _EXFLAG_XKUSAGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXFLAG_XKUSAGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _XKU_TIMESTAMP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XKU_TIMESTAMP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
Lloh15:
	adrp	x8, _NID_ext_key_usage@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NID_ext_key_usage@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_X509_get_ext_by_NID
	tbnz	w0, #31, LBB0_8
; %bb.7:
	mov	x1, x0
	mov	x0, x19
	bl	_X509_get_ext
	bl	_X509_EXTENSION_get_critical
	cbz	w0, LBB0_10
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_EXFLAG_KUSAGE,4,2              ; @EXFLAG_KUSAGE
	.comm	_KU_NON_REPUDIATION,4,2         ; @KU_NON_REPUDIATION
	.comm	_KU_DIGITAL_SIGNATURE,4,2       ; @KU_DIGITAL_SIGNATURE
	.comm	_EXFLAG_XKUSAGE,4,2             ; @EXFLAG_XKUSAGE
	.comm	_XKU_TIMESTAMP,8,3              ; @XKU_TIMESTAMP
	.comm	_NID_ext_key_usage,4,2          ; @NID_ext_key_usage
	.no_dead_strip	_check_purpose_timestamp_sign
.subsections_via_symbols
