	.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	%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
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_X509_get_subject_name
	movl	%eax, %ebx
	movq	%r12, %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_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_x509v3_cache_extensions
	movq	%r12, %rdi
	callq	_x509v3_cache_extensions
	movq	8(%r12), %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_16
LBB0_4:
	movq	%r14, %rdi
	callq	_X509_get0_pubkey
	movq	%rax, %r15
	movq	_NID_undef@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movl	4(%r12), %edi
	callq	_OBJ_obj2nid
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	callq	_OBJ_find_sigid_algs
	movq	_X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_EVP_PKEY_type
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_EVP_PKEY_base_id
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.9:
	movq	_EXFLAG_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.10:
	movq	_KU_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ku_reject
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movl	(%rbx), %eax
	jmp	LBB0_16
LBB0_5:
	movq	_X509_V_ERR_NO_ISSUER_PUBLIC_KEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	jmp	LBB0_16
LBB0_12:
	movq	_KU_KEY_CERT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ku_reject
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_X509_V_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.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	_NID_undef,4,2                  ## @NID_undef
	.comm	_X509_V_ERR_NO_ISSUER_PUBLIC_KEY,4,2 ## @X509_V_ERR_NO_ISSUER_PUBLIC_KEY
	.comm	_X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH,4,2 ## @X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH
	.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:
	sub	sp, sp, #64
	.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
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	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:
	mov	x0, x19
	bl	_X509_get0_pubkey
Lloh5:
	adrp	x8, _NID_undef@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w8, [sp, #8]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_OBJ_obj2nid
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_OBJ_find_sigid_algs
	cbz	w0, LBB0_12
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_EVP_PKEY_type
	mov	x22, x0
	mov	x0, x21
	bl	_EVP_PKEY_base_id
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.9:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _EXFLAG_PROXY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXFLAG_PROXY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
Lloh11:
	adrp	x8, _KU_DIGITAL_SIGNATURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KU_DIGITAL_SIGNATURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ku_reject
	cbz	x0, LBB0_16
; %bb.11:
Lloh14:
	adrp	x8, _X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh16:
	adrp	x8, _X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
Lloh18:
	adrp	x8, _X509_V_ERR_NO_ISSUER_PUBLIC_KEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _X509_V_ERR_NO_ISSUER_PUBLIC_KEY@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
Lloh20:
	adrp	x8, _KU_KEY_CERT_SIGN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KU_KEY_CERT_SIGN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ku_reject
	cbz	x0, LBB0_16
; %bb.15:
Lloh23:
	adrp	x8, _X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _X509_V_ERR_KEYUSAGE_NO_CERTSIGN@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
Lloh25:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh26:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.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	_NID_undef,4,2                  ; @NID_undef
	.comm	_X509_V_ERR_NO_ISSUER_PUBLIC_KEY,4,2 ; @X509_V_ERR_NO_ISSUER_PUBLIC_KEY
	.comm	_X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH,4,2 ; @X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH
	.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
