	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_gets                       ## -- Begin function BIO_gets
	.p2align	4, 0x90
_BIO_gets:                              ## @BIO_gets
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movl	%edx, %r15d
	testl	%edx, %edx
	js	LBB0_6
## %bb.7:
	movq	%rsi, %r14
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, (%rbx)
	je	LBB0_10
LBB0_9:
	movq	_BIO_CB_GETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	callq	_bio_call_callback
	addq	$16, %rsp
	testl	%eax, %eax
	jle	LBB0_19
LBB0_10:
	cmpl	$0, 24(%rbx)
	je	LBB0_11
## %bb.12:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.13:
	movl	%eax, %eax
	movq	%rax, -32(%rbp)
	movl	$1, %eax
LBB0_14:
	cmpq	$0, 8(%rbx)
	jne	LBB0_16
## %bb.15:
	cmpq	$0, (%rbx)
	je	LBB0_17
LBB0_16:
	movq	_BIO_CB_GETS@GOTPCREL(%rip), %rcx
	movq	_BIO_CB_RETURN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	-32(%rbp), %r10
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	callq	_bio_call_callback
	addq	$16, %rsp
LBB0_17:
	testl	%eax, %eax
	jle	LBB0_19
## %bb.18:
	movq	-32(%rbp), %rcx
	movl	%r15d, %eax
	cmpq	%rax, %rcx
	movl	$-1, %eax
	cmovbel	%ecx, %eax
	jmp	LBB0_19
LBB0_3:
	movq	_BIO_F_BIO_GETS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNSUPPORTED_METHOD@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_BIOerr
	movl	$-2, %eax
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_BIO_F_BIO_GETS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_11:
	movq	_BIO_F_BIO_GETS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNINITIALIZED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_GETS,4,2             ## @BIO_F_BIO_GETS
	.comm	_BIO_R_UNSUPPORTED_METHOD,4,2   ## @BIO_R_UNSUPPORTED_METHOD
	.comm	_BIO_R_INVALID_ARGUMENT,4,2     ## @BIO_R_INVALID_ARGUMENT
	.comm	_BIO_CB_GETS,4,2                ## @BIO_CB_GETS
	.comm	_BIO_R_UNINITIALIZED,4,2        ## @BIO_R_UNINITIALIZED
	.comm	_BIO_CB_RETURN,4,2              ## @BIO_CB_RETURN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_gets                       ; -- Begin function BIO_gets
	.p2align	2
_BIO_gets:                              ; @BIO_gets
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_15
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_15
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.3:
	mov	x19, x2
	tbnz	w2, #31, LBB0_18
; %bb.4:
	mov	x20, x1
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x22, _BIO_CB_GETS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIO_CB_GETS@GOTPAGEOFF]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	x5, #0
	mov	w6, #1
	mov	x7, #0
	bl	_bio_call_callback
	mov	x6, x0
	cmp	w6, #1
	b.lt	LBB0_17
LBB0_7:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_19
; %bb.8:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x6, x0
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.9:
	mov	w8, w6
	str	x8, [sp, #8]
	mov	w6, #1
LBB0_10:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x21]
	cbz	x8, LBB0_13
LBB0_12:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _BIO_CB_RETURN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BIO_CB_RETURN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x7, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	x5, #0
                                        ; kill: def $w6 killed $w6 killed $x6
	bl	_bio_call_callback
	mov	x6, x0
LBB0_13:
	cmp	w6, #1
	b.lt	LBB0_17
; %bb.14:
	ldr	x8, [sp, #8]
	cmp	x8, w19, uxtw
	csinv	w6, w8, wzr, ls
	b	LBB0_17
LBB0_15:
Lloh5:
	adrp	x8, _BIO_F_BIO_GETS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BIO_F_BIO_GETS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w6, #-2
LBB0_17:
	mov	x0, x6
	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_18:
Lloh10:
	adrp	x8, _BIO_F_BIO_GETS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BIO_F_BIO_GETS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _BIO_R_INVALID_ARGUMENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIO_R_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w6, #0
	b	LBB0_17
LBB0_19:
Lloh16:
	adrp	x8, _BIO_F_BIO_GETS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIO_F_BIO_GETS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _BIO_R_UNINITIALIZED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIO_R_UNINITIALIZED@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_GETS,4,2             ; @BIO_F_BIO_GETS
	.comm	_BIO_R_UNSUPPORTED_METHOD,4,2   ; @BIO_R_UNSUPPORTED_METHOD
	.comm	_BIO_R_INVALID_ARGUMENT,4,2     ; @BIO_R_INVALID_ARGUMENT
	.comm	_BIO_CB_GETS,4,2                ; @BIO_CB_GETS
	.comm	_BIO_R_UNINITIALIZED,4,2        ; @BIO_R_UNINITIALIZED
	.comm	_BIO_CB_RETURN,4,2              ; @BIO_CB_RETURN
.subsections_via_symbols
