	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function purpose_smime
_purpose_smime:                         ## @purpose_smime
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_XKU_SMIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xku_reject
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_check_ca
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$5, %eax
	jne	LBB0_10
## %bb.5:
	movq	_NS_SMIME_CA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_1
LBB0_10:
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_7:
	movq	_EXFLAG_NSCERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	testl	%eax, 4(%rbx)
	je	LBB0_1
## %bb.8:
	movl	(%rbx), %eax
	movq	_NS_SMIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_1
## %bb.9:
	movq	_NS_SSL_CLIENT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	setne	%r14b
	addl	%r14d, %r14d
LBB0_1:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XKU_SMIME,4,2                  ## @XKU_SMIME
	.comm	_NS_SMIME_CA,4,2                ## @NS_SMIME_CA
	.comm	_EXFLAG_NSCERT,4,2              ## @EXFLAG_NSCERT
	.comm	_NS_SMIME,4,2                   ## @NS_SMIME
	.comm	_NS_SSL_CLIENT,4,2              ## @NS_SSL_CLIENT
	.no_dead_strip	_purpose_smime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function purpose_smime
_purpose_smime:                         ; @purpose_smime
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _XKU_SMIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XKU_SMIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xku_reject
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	w20, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_check_ca
	cbz	w0, LBB0_2
; %bb.5:
	cmp	w0, #5
	b.ne	LBB0_2
; %bb.6:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NS_SMIME_CA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NS_SMIME_CA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_1
LBB0_7:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _EXFLAG_NSCERT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXFLAG_NSCERT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _NS_SMIME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NS_SMIME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_9:
	mov	w0, #1
	b	LBB0_2
LBB0_10:
Lloh12:
	adrp	x9, _NS_SSL_CLIENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NS_SSL_CLIENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	lsl	w0, w8, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XKU_SMIME,4,2                  ; @XKU_SMIME
	.comm	_NS_SMIME_CA,4,2                ; @NS_SMIME_CA
	.comm	_EXFLAG_NSCERT,4,2              ; @EXFLAG_NSCERT
	.comm	_NS_SMIME,4,2                   ; @NS_SMIME
	.comm	_NS_SSL_CLIENT,4,2              ; @NS_SSL_CLIENT
	.no_dead_strip	_purpose_smime
.subsections_via_symbols
