	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_issuer_serial_cmp
_ts_issuer_serial_cmp:                  ## @ts_issuer_serial_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_sk_GENERAL_NAME_num
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_sk_GENERAL_NAME_value
	movq	(%rax), %rcx
	movq	_GEN_DIRNAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movl	8(%rax), %r12d
	movq	%r15, %rdi
	callq	_X509_get_issuer_name
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_X509_NAME_cmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_X509_get_serialNumber
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ASN1_INTEGER_cmp
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN_DIRNAME,8,3                ## @GEN_DIRNAME
	.no_dead_strip	_ts_issuer_serial_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_issuer_serial_cmp
_ts_issuer_serial_cmp:                  ; @ts_issuer_serial_cmp
	.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
	mov	x20, x0
	mov	w0, #-1
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_sk_GENERAL_NAME_num
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x20, #4]
	mov	w1, #0
	bl	_sk_GENERAL_NAME_value
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GEN_DIRNAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GEN_DIRNAME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w21, [x0, #8]
	mov	x0, x19
	bl	_X509_get_issuer_name
	mov	x1, x0
	mov	x0, x21
	bl	_X509_NAME_cmp
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
LBB0_7:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_X509_get_serialNumber
	mov	x1, x0
	mov	x0, x20
	bl	_ASN1_INTEGER_cmp
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN_DIRNAME,8,3                ; @GEN_DIRNAME
	.no_dead_strip	_ts_issuer_serial_cmp
.subsections_via_symbols
