	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_bio_memleak
_test_bio_memleak:                      ## @test_bio_memleak
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$10, -152(%rbp)
	leaq	_test_bio_memleak.str(%rip), %rax
	movq	%rax, -144(%rbp)
	movl	$10, -136(%rbp)
	movq	_BIO_NOCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-152(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_set_mem_buf
	movq	_BIO_FLAGS_MEM_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BIO_set_flags
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$100, %edx
	callq	_BIO_read
	movl	%eax, %edi
	movl	$10, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	_test_bio_memleak.str(%rip), %rdx
	leaq	-128(%rbp), %rdi
	movl	$10, %esi
	movl	$10, %ecx
	callq	_TEST_mem_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_3:
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_test_bio_memleak.str:                  ## @test_bio_memleak.str
	.asciz	"BIO test\n"

	.comm	_BIO_NOCLOSE,4,2                ## @BIO_NOCLOSE
	.comm	_BIO_FLAGS_MEM_RDONLY,4,2       ## @BIO_FLAGS_MEM_RDONLY
	.no_dead_strip	_test_bio_memleak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_bio_memleak
_test_bio_memleak:                      ; @test_bio_memleak
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_3
; %bb.1:
	mov	w8, #10
Lloh3:
	adrp	x9, _test_bio_memleak.str@PAGE
Lloh4:
	add	x9, x9, _test_bio_memleak.str@PAGEOFF
	str	w8, [sp, #8]
	str	x9, [sp, #16]
	str	w8, [sp, #24]
Lloh5:
	adrp	x8, _BIO_NOCLOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BIO_NOCLOSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_BIO_set_mem_buf
Lloh8:
	adrp	x8, _BIO_FLAGS_MEM_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_FLAGS_MEM_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIO_set_flags
	add	x1, sp, #36
	mov	x0, x19
	mov	w2, #100
	bl	_BIO_read
	mov	w1, #10
	bl	_TEST_int_eq
	cbz	w0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x2, _test_bio_memleak.str@PAGE
Lloh12:
	add	x2, x2, _test_bio_memleak.str@PAGEOFF
	add	x0, sp, #36
	mov	w1, #10
	mov	w3, #10
	bl	_TEST_mem_eq
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x19
	bl	_BIO_free
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_test_bio_memleak.str:                  ; @test_bio_memleak.str
	.asciz	"BIO test\n"

	.comm	_BIO_NOCLOSE,4,2                ; @BIO_NOCLOSE
	.comm	_BIO_FLAGS_MEM_RDONLY,4,2       ; @BIO_FLAGS_MEM_RDONLY
	.no_dead_strip	_test_bio_memleak
.subsections_via_symbols
