	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_cmp                       ## -- Begin function X509_cmp
	.p2align	4, 0x90
_X509_cmp:                              ## @X509_cmp
	.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, %r14
	movq	%rdi, %rbx
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_X509_check_purpose
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_X509_check_purpose
	movl	16(%rbx), %edi
	movl	16(%r14), %esi
	movq	_SHA_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 12(%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, 12(%r14)
	movl	$0, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rdx
	movl	$-1, %eax
	cmpq	(%r14), %rdx
	jl	LBB0_6
## %bb.5:
	movl	$1, %eax
	jle	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rbx), %edi
	movl	8(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcmp                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_DIGEST_LENGTH,8,3          ## @SHA_DIGEST_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_cmp                       ; -- Begin function X509_cmp
	.p2align	2
_X509_cmp:                              ; @X509_cmp
	.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
	mov	x20, x0
	mov	w1, #-1
	mov	w2, #0
	bl	_X509_check_purpose
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #0
	bl	_X509_check_purpose
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x8, _SHA_DIGEST_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA_DIGEST_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x2, [x20]
	ldr	x8, [x19]
	cmp	x2, x8
	b.ge	LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_4
LBB0_7:
	b.le	LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_4
LBB0_9:
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcmp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_DIGEST_LENGTH,8,3          ; @SHA_DIGEST_LENGTH
.subsections_via_symbols
