	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_bio_get_mem
_test_bio_get_mem:                      ## @test_bio_get_mem
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -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_5
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_BIO_puts
	movl	%eax, %edi
	movl	$12, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_get_mem_ptr
	movq	-24(%rbp), %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_BIO_NOCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BIO_set_close
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	-24(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$12, %ecx
	callq	_TEST_mem_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	-24(%rbp), %rdi
	callq	_BUF_MEM_free
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hello World\n"

	.comm	_BIO_NOCLOSE,4,2                ## @BIO_NOCLOSE
	.no_dead_strip	_test_bio_get_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_bio_get_mem
_test_bio_get_mem:                      ; @test_bio_get_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_BIO_puts
	mov	w1, #12
	bl	_TEST_int_eq
	cbz	w0, LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_BIO_get_mem_ptr
	ldr	x0, [sp, #8]
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _BIO_NOCLOSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_NOCLOSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIO_set_close
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_BIO_free
	ldr	x8, [sp, #8]
	ldp	w1, w0, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #12
	bl	_TEST_mem_eq
	mov	x19, #0
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x19
	bl	_BIO_free
	ldr	x0, [sp, #8]
	bl	_BUF_MEM_free
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hello World\n"

	.comm	_BIO_NOCLOSE,4,2                ; @BIO_NOCLOSE
	.no_dead_strip	_test_bio_get_mem
.subsections_via_symbols
