	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_ctrl                       ## -- Begin function BIO_ctrl
	.p2align	4, 0x90
_BIO_ctrl:                              ## @BIO_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.5:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, (%rbx)
	je	LBB0_9
LBB0_7:
	movq	_BIO_CB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movq	%r14, %r9
	pushq	$0
	pushq	$1
	callq	_bio_call_callback
	addq	$16, %rsp
	testq	%rax, %rax
	jle	LBB0_12
## %bb.8:
	movq	16(%rbx), %rax
	movq	(%rax), %r8
LBB0_9:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	*%r8
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, (%rbx)
	je	LBB0_12
LBB0_11:
	movq	_BIO_CB_CTRL@GOTPCREL(%rip), %rcx
	movq	_BIO_CB_RETURN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movq	%r14, %r9
	pushq	$0
	pushq	%rax
	callq	_bio_call_callback
	addq	$16, %rsp
	jmp	LBB0_12
LBB0_4:
	movq	_BIO_F_BIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNSUPPORTED_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	movq	$-2, %rax
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_CTRL,4,2             ## @BIO_F_BIO_CTRL
	.comm	_BIO_R_UNSUPPORTED_METHOD,4,2   ## @BIO_R_UNSUPPORTED_METHOD
	.comm	_BIO_CB_CTRL,4,2                ## @BIO_CB_CTRL
	.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_ctrl                       ; -- Begin function BIO_ctrl
	.p2align	2
_BIO_ctrl:                              ; @BIO_ctrl
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x9, [x22, #8]
Lloh0:
	adrp	x23, _BIO_CB_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BIO_CB_CTRL@GOTPAGEOFF]
	cbnz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x22]
	cbz	x9, LBB0_7
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	mov	w6, #1
	mov	x7, #0
	bl	_bio_call_callback
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.6:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	blr	x8
	mov	x6, x0
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_12
LBB0_9:
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _BIO_CB_RETURN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BIO_CB_RETURN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	mov	x7, #0
	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
	b	_bio_call_callback
LBB0_10:
Lloh5:
	adrp	x8, _BIO_F_BIO_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BIO_F_BIO_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	x6, #-2
	b	LBB0_12
LBB0_11:
	mov	x6, #0
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x6, x0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_CTRL,4,2             ; @BIO_F_BIO_CTRL
	.comm	_BIO_R_UNSUPPORTED_METHOD,4,2   ; @BIO_R_UNSUPPORTED_METHOD
	.comm	_BIO_CB_CTRL,4,2                ; @BIO_CB_CTRL
	.comm	_BIO_CB_RETURN,4,2              ; @BIO_CB_RETURN
.subsections_via_symbols
