	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_check_issued              ## -- Begin function X509_check_issued
	.p2align	4, 0x90
_X509_check_issued:                     ## @X509_check_issued
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_X509_get_subject_name
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_X509_get_issuer_name
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_X509_NAME_cmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_X509_V_ERR_SUBJECT_ISSUER_MISMATCH@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_x509v3_cache_extensions
	movq	%r15, %rdi
	callq	_x509v3_cache_extensions
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_X509_check_akid
	movq	_X509_V_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_4:
	movq	_EXFLAG_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.5:
	movq	_KU_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ku_reject
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_KU_KEY_CERT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ku_reject
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_X509_V_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_V_ERR_SUBJECT_ISSUER_MISMATCH,4,2 ## @X509_V_ERR_SUBJECT_ISSUER_MISMATCH
	.comm	_X509_V_OK,4,2                  ## @X509_V_OK
	.comm	_EXFLAG_PROXY,4,2               ## @EXFLAG_PROXY
	.comm	_KU_DIGITAL_SIGNATURE,4,2       ## @KU_DIGITAL_SIGNATURE
	.comm	_X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE,4,2 ## @X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE
	.comm	_KU_KEY_CERT_SIGN,4,2           ## @KU_KEY_CERT_SIGN
	.comm	_X509_V_ERR_KEYUSAGE_NO_CERTSIGN,4,2 ## @X509_V_ERR_KEYUSAGE_NO_CERTSIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_check_issued              ; -- Begin function X509_check_issued
	.p2align	2
_X509_check_issued:                     ; @X509_check_issued
	.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, x1
	mov	x19, x0
	bl	_X509_get_subject_name
	mov	x21, x0
	mov	x0, x20
	bl	_X509_get_issuer_name
	mov	x1, x0
	mov	x0, x21
	bl	_X509_NAME_cmp
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _X509_V_ERR_SUBJECT_ISSUER_MISMATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_V_ERR_SUBJECT_ISSUER_MISMATCH@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	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_4:
	mov	x0, x19
	bl	_x509v3_cache_extensions
	mov	x0, x20
	bl	_x509v3_cache_extensions
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_X509_check_akid
Lloh2:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_6:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _EXFLAG_PROXY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXFLAG_PROXY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh8:
	adrp	x8, _KU_DIGITAL_SIGNATURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KU_DIGITAL_SIGNATURE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ku_reject
	cbz	x0, LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh13:
	adrp	x8, _KU_KEY_CERT_SIGN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KU_KEY_CERT_SIGN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ku_reject
	cbz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh18:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_V_ERR_SUBJECT_ISSUER_MISMATCH,4,2 ; @X509_V_ERR_SUBJECT_ISSUER_MISMATCH
	.comm	_X509_V_OK,4,2                  ; @X509_V_OK
	.comm	_EXFLAG_PROXY,4,2               ; @EXFLAG_PROXY
	.comm	_KU_DIGITAL_SIGNATURE,4,2       ; @KU_DIGITAL_SIGNATURE
	.comm	_X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE,4,2 ; @X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE
	.comm	_KU_KEY_CERT_SIGN,4,2           ; @KU_KEY_CERT_SIGN
	.comm	_X509_V_ERR_KEYUSAGE_NO_CERTSIGN,4,2 ; @X509_V_ERR_KEYUSAGE_NO_CERTSIGN
.subsections_via_symbols
