	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_purpose
_check_purpose:                         ## @check_purpose
	.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	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_X509_TRUST_UNTRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ecx, (%rdi)
	jg	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_3
## %bb.2:
	movl	8(%rcx), %esi
	movq	_X509_TRUST_NO_SS_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_X509_check_trust
LBB0_3:
	movl	$1, %ecx
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.5:
	xorl	%edx, %edx
	testl	%r13d, %r13d
	setg	%dl
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_X509_check_purpose
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ecx
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	_X509_V_FLAG_X509_STRICT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$1, %ecx
	testl	%edx, 4(%rax)
	je	LBB0_8
LBB0_9:
	movq	_X509_V_ERR_INVALID_PURPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify_cb_cert                 ## TAILCALL
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_TRUST_UNTRUSTED,4,2       ## @X509_TRUST_UNTRUSTED
	.comm	_X509_TRUST_NO_SS_COMPAT,4,2    ## @X509_TRUST_NO_SS_COMPAT
	.comm	_X509_V_FLAG_X509_STRICT,4,2    ## @X509_V_FLAG_X509_STRICT
	.comm	_X509_V_ERR_INVALID_PURPOSE,4,2 ## @X509_V_ERR_INVALID_PURPOSE
	.no_dead_strip	_check_purpose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_purpose
_check_purpose:                         ; @check_purpose
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _X509_TRUST_UNTRUSTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X509_TRUST_UNTRUSTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cmp	w8, w3
	b.gt	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	cmp	w9, w22
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x8, #8]
Lloh3:
	adrp	x8, _X509_TRUST_NO_SS_COMPAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_TRUST_NO_SS_COMPAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_X509_check_trust
LBB0_3:
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w23, #0
	cset	w2, gt
	mov	x0, x20
	mov	x1, x22
	bl	_X509_check_purpose
	cbz	w0, LBB0_8
; %bb.6:
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
Lloh6:
	adrp	x9, _X509_V_FLAG_X509_STRICT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _X509_V_FLAG_X509_STRICT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _X509_V_ERR_INVALID_PURPOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_V_ERR_INVALID_PURPOSE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_verify_cb_cert
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_TRUST_UNTRUSTED,4,2       ; @X509_TRUST_UNTRUSTED
	.comm	_X509_TRUST_NO_SS_COMPAT,4,2    ; @X509_TRUST_NO_SS_COMPAT
	.comm	_X509_V_FLAG_X509_STRICT,4,2    ; @X509_V_FLAG_X509_STRICT
	.comm	_X509_V_ERR_INVALID_PURPOSE,4,2 ; @X509_V_ERR_INVALID_PURPOSE
	.no_dead_strip	_check_purpose
.subsections_via_symbols
