	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_bad_asn1
_test_bad_asn1:                         ## @test_bad_asn1
	.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
	subq	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-2096(%rbp), %rax
	movq	%rax, -2112(%rbp)
	movq	$0, -2104(%rbp)
	movq	_test_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_BIO_new_file
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_expected_error@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_ASN1_BIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_item_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ASN1_item_d2i_bio
	movl	%eax, %edi
	callq	_TEST_ptr_null
	movl	$0, %ebx
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	leaq	-2096(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_BIO_read
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_ge
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_item_type@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-2112(%rbp), %rsi
	xorl	%edi, %edi
	movl	%r12d, %edx
	callq	_ASN1_item_d2i
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:
	movq	%rax, %r14
	movq	_item_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-2104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ASN1_item_i2d
	movq	-2104(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	testl	%eax, %eax
	js	LBB0_15
## %bb.18:
	cmpl	%r12d, %eax
	jne	LBB0_20
## %bb.19:
	leaq	-2096(%rbp), %rsi
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	(%r13), %rdi
	movq	_ASN1_COMPARE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	(%r13), %rdi
	movq	_ASN1_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TEST_int_eq
	movl	$0, %r14d
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_15:
	movq	(%r13), %rdi
	movq	_ASN1_ENCODE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_TEST_int_eq
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:
	xorl	%eax, %eax
	callq	_ERR_peek_error
	movl	%eax, %edi
	callq	_ERR_GET_REASON
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_TEST_false
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
LBB0_10:
	movq	%r15, %rdi
	callq	_BIO_free
	movq	-2104(%rbp), %rdi
	callq	_OPENSSL_free
	movq	_item_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ASN1_item_free
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.12:
	movl	%ebx, %eax
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_21:
	movq	(%r13), %rdi
	movq	_ASN1_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_test_file,4,2                  ## @test_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_expected_error,8,3             ## @expected_error
	.comm	_ASN1_BIO,8,3                   ## @ASN1_BIO
	.comm	_item_type,4,2                  ## @item_type
	.comm	_ASN1_DECODE,4,2                ## @ASN1_DECODE
	.comm	_ASN1_ENCODE,4,2                ## @ASN1_ENCODE
	.comm	_ASN1_COMPARE,4,2               ## @ASN1_COMPARE
	.comm	_ASN1_OK,4,2                    ## @ASN1_OK
	.comm	_ERR_R_MALLOC_FAILURE,8,3       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_test_bad_asn1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_bad_asn1
_test_bad_asn1:                         ; @test_bad_asn1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #2080
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x8, sp, #24
	stp	xzr, x8, [sp, #8]
Lloh3:
	adrp	x8, _test_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _test_file@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x23, _expected_error@GOTPAGE
Lloh9:
	ldr	x23, [x23, _expected_error@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh10:
	adrp	x9, _ASN1_BIO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ASN1_BIO@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x22, _item_type@GOTPAGE
Lloh14:
	ldr	x22, [x22, _item_type@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, #0
	bl	_ASN1_item_d2i_bio
	bl	_TEST_ptr_null
	mov	x20, #0
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_3:
	mov	w21, #0
	b	LBB0_18
LBB0_4:
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #2048
	bl	_BIO_read
	mov	x21, x0
	mov	w1, #0
	bl	_TEST_int_ge
	cbz	w0, LBB0_11
; %bb.5:
	ldr	w3, [x22]
	add	x1, sp, #16
	mov	x0, #0
	mov	x2, x21
	bl	_ASN1_item_d2i
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ASN1_item_i2d
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.7:
	tbnz	w8, #31, LBB0_13
; %bb.8:
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.9:
	add	x1, sp, #24
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_20
LBB0_10:
	ldr	x0, [x23]
Lloh15:
	adrp	x8, _ASN1_COMPARE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ASN1_COMPARE@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x20, #0
	b	LBB0_16
LBB0_12:
	ldr	x0, [x23]
Lloh17:
	adrp	x8, _ASN1_DECODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASN1_DECODE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	x0, [x23]
Lloh19:
	adrp	x8, _ASN1_ENCODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ASN1_ENCODE@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	x0, LBB0_16
LBB0_15:
	bl	_ERR_peek_error
	bl	_ERR_GET_REASON
Lloh21:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_false
	cmp	w0, #0
	cset	w21, ne
	b	LBB0_17
LBB0_16:
	mov	w21, #0
LBB0_17:
	mov	x0, x19
	bl	_BIO_free
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ASN1_item_free
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x21
	add	sp, sp, #2080
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	x0, [x23]
Lloh27:
	adrp	x8, _ASN1_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ASN1_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_test_file,4,2                  ; @test_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_expected_error,8,3             ; @expected_error
	.comm	_ASN1_BIO,8,3                   ; @ASN1_BIO
	.comm	_item_type,4,2                  ; @item_type
	.comm	_ASN1_DECODE,4,2                ; @ASN1_DECODE
	.comm	_ASN1_ENCODE,4,2                ; @ASN1_ENCODE
	.comm	_ASN1_COMPARE,4,2               ; @ASN1_COMPARE
	.comm	_ASN1_OK,4,2                    ; @ASN1_OK
	.comm	_ERR_R_MALLOC_FAILURE,8,3       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_test_bad_asn1
.subsections_via_symbols
