	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_callback_ctrl              ## -- Begin function BIO_callback_ctrl
	.p2align	4, 0x90
_BIO_callback_ctrl:                     ## @BIO_callback_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movl	%esi, %r14d
	movq	_BIO_CTRL_SET_CALLBACK@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_10
LBB0_8:
	movq	_BIO_CB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	callq	_bio_call_callback
	addq	$16, %rsp
	testq	%rax, %rax
	jle	LBB0_13
## %bb.9:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	-24(%rbp), %rdx
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.11:
	cmpq	$0, (%rbx)
	je	LBB0_13
LBB0_12:
	movq	_BIO_CB_CTRL@GOTPCREL(%rip), %rcx
	movq	_BIO_CB_RETURN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_bio_call_callback
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_5:
	movq	_BIO_F_BIO_CALLBACK_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_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_CTRL_SET_CALLBACK,4,2      ## @BIO_CTRL_SET_CALLBACK
	.comm	_BIO_F_BIO_CALLBACK_CTRL,4,2    ## @BIO_F_BIO_CALLBACK_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_callback_ctrl              ; -- Begin function BIO_callback_ctrl
	.p2align	2
_BIO_callback_ctrl:                     ; @BIO_callback_ctrl
	.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	x2, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x19, x1
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BIO_CTRL_SET_CALLBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BIO_CTRL_SET_CALLBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, w1, #0, ne
	b.eq	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _BIO_F_BIO_CALLBACK_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_F_BIO_CALLBACK_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIO_R_UNSUPPORTED_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	x6, #-2
	b	LBB0_13
LBB0_4:
	mov	x6, #0
	b	LBB0_13
LBB0_5:
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x21, _BIO_CB_CTRL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _BIO_CB_CTRL@GOTPAGEOFF]
	cbnz	x9, LBB0_7
; %bb.6:
	ldr	x9, [x20]
	cbz	x9, LBB0_9
LBB0_7:
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	mov	w5, #0
	mov	w6, #1
	mov	x7, #0
	bl	_bio_call_callback
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x2, [sp, #8]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x6, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
LBB0_11:
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _BIO_CB_RETURN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BIO_CB_RETURN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	mov	w5, #0
	mov	x7, #0
	bl	_bio_call_callback
LBB0_12:
	mov	x6, x0
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_CTRL_SET_CALLBACK,4,2      ; @BIO_CTRL_SET_CALLBACK
	.comm	_BIO_F_BIO_CALLBACK_CTRL,4,2    ; @BIO_F_BIO_CALLBACK_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
