	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_x509_check_cert_pkey
_test_x509_check_cert_pkey:             ## @test_x509_check_cert_pkey
	.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	_t@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	$1, %r14d
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_3:
	movl	$2, %r15d
LBB0_4:
	movq	_e@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_TEST_error
LBB0_8:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_BIO_free
	movq	%r13, %rdi
	callq	_X509_free
	movq	%r15, %rdi
	callq	_X509_REQ_free
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	_k@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_BIO_new_file
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_PrivateKey
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movq	%r12, %rdi
	callq	_BIO_free
	movq	_c@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_BIO_new_file
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	cmpl	$2, %r15d
	je	LBB0_21
## %bb.16:
	cmpl	$1, %r15d
	jne	LBB0_23
## %bb.17:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	testq	%rax, %rax
	je	LBB0_26
## %bb.18:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_X509_check_private_key
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_19:
	xorl	%r13d, %r13d
LBB0_20:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_21:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509_REQ
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_X509_REQ_check_private_key
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_23:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
LBB0_24:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_TEST_int_eq
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.25:
	leaq	L_.str.9(%rip), %rdi
	xorl	%ebx, %ebx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_TEST_error
	jmp	LBB0_10
LBB0_26:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.8(%rip), %rdi
LBB0_28:
	xorl	%eax, %eax
	callq	_TEST_error
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_t,4,2                          ## @t
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cert"

L_.str.1:                               ## @.str.1
	.asciz	"req"

L_.str.2:                               ## @.str.2
	.asciz	"invalid 'type'"

	.comm	_e,4,2                          ## @e
L_.str.3:                               ## @.str.3
	.asciz	"ok"

L_.str.4:                               ## @.str.4
	.asciz	"failed"

L_.str.5:                               ## @.str.5
	.asciz	"invalid 'expected'"

	.comm	_k,4,2                          ## @k
L_.str.6:                               ## @.str.6
	.asciz	"r"

	.comm	_c,4,2                          ## @c
L_.str.7:                               ## @.str.7
	.asciz	"read PEM x509 failed"

L_.str.8:                               ## @.str.8
	.asciz	"read PEM x509 req failed"

L_.str.9:                               ## @.str.9
	.asciz	"check private key: expected: %d, got: %d"

	.no_dead_strip	_test_x509_check_cert_pkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_x509_check_cert_pkey
_test_x509_check_cert_pkey:             ; @test_x509_check_cert_pkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x19, _t@GOTPAGE
Lloh1:
	ldr	x19, [x19, _t@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_3:
	mov	w22, #1
	b	LBB0_5
LBB0_4:
	mov	w22, #2
LBB0_5:
Lloh8:
	adrp	x19, _e@GOTPAGE
Lloh9:
	ldr	x19, [x19, _e@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_8:
	bl	_TEST_error
	mov	x19, #0
LBB0_9:
	mov	x22, #0
	mov	x23, #0
	mov	x20, #0
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x22
	bl	_X509_free
	mov	x0, x23
	bl	_X509_REQ_free
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w21, #1
	b	LBB0_14
LBB0_13:
	mov	w21, #0
LBB0_14:
Lloh16:
	adrp	x8, _k@GOTPAGE
Lloh17:
	ldr	x8, [x8, _k@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_9
; %bb.15:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_PrivateKey
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_BIO_free
Lloh21:
	adrp	x8, _c@GOTPAGE
Lloh22:
	ldr	x8, [x8, _c@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.17:
	cmp	w22, #2
	b.eq	LBB0_22
; %bb.18:
	cmp	w22, #1
	b.ne	LBB0_24
; %bb.19:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x22, x0
	cbz	x0, LBB0_28
; %bb.20:
	mov	x0, x22
	mov	x1, x20
	bl	_X509_check_private_key
	mov	x24, x0
	mov	x23, #0
	b	LBB0_25
LBB0_21:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_10
LBB0_22:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509_REQ
	mov	x23, x0
	cbz	x0, LBB0_29
; %bb.23:
	mov	x0, x23
	mov	x1, x20
	bl	_X509_REQ_check_private_key
	mov	x24, x0
	mov	x22, #0
	b	LBB0_25
LBB0_24:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #0
LBB0_25:
	mov	x0, x24
	mov	x1, x21
	bl	_TEST_int_eq
	cbz	w0, LBB0_27
; %bb.26:
	mov	w21, #1
	b	LBB0_11
LBB0_27:
	stp	x21, x24, [sp]
Lloh26:
	adrp	x0, l_.str.9@PAGE
Lloh27:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TEST_error
	b	LBB0_10
LBB0_28:
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TEST_error
	mov	x23, #0
	b	LBB0_10
LBB0_29:
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TEST_error
	mov	x22, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_t,4,2                          ; @t
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cert"

l_.str.1:                               ; @.str.1
	.asciz	"req"

l_.str.2:                               ; @.str.2
	.asciz	"invalid 'type'"

	.comm	_e,4,2                          ; @e
l_.str.3:                               ; @.str.3
	.asciz	"ok"

l_.str.4:                               ; @.str.4
	.asciz	"failed"

l_.str.5:                               ; @.str.5
	.asciz	"invalid 'expected'"

	.comm	_k,4,2                          ; @k
l_.str.6:                               ; @.str.6
	.asciz	"r"

	.comm	_c,4,2                          ; @c
l_.str.7:                               ; @.str.7
	.asciz	"read PEM x509 failed"

l_.str.8:                               ; @.str.8
	.asciz	"read PEM x509 req failed"

l_.str.9:                               ; @.str.9
	.asciz	"check private key: expected: %d, got: %d"

	.no_dead_strip	_test_x509_check_cert_pkey
.subsections_via_symbols
