	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_set_rfd                    ## -- Begin function SSL_set_rfd
	.p2align	4, 0x90
_SSL_set_rfd:                           ## @SSL_set_rfd
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_SSL_get_wbio
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BIO_method_type
	movq	_BIO_TYPE_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_BIO_get_fd
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_BIO_up_ref
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BIO_s_socket
	movl	%eax, %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_BIO_NOCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_BIO_set_fd
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SSL_set0_rbio
	movl	$1, %r12d
	jmp	LBB0_8
LBB0_4:
	movq	_SSL_F_SSL_SET_RFD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BUF_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_TYPE_SOCKET,8,3            ## @BIO_TYPE_SOCKET
	.comm	_SSL_F_SSL_SET_RFD,4,2          ## @SSL_F_SSL_SET_RFD
	.comm	_ERR_R_BUF_LIB,4,2              ## @ERR_R_BUF_LIB
	.comm	_BIO_NOCLOSE,4,2                ## @BIO_NOCLOSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_set_rfd                    ; -- Begin function SSL_set_rfd
	.p2align	2
_SSL_set_rfd:                           ; @SSL_set_rfd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_get_wbio
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_BIO_method_type
Lloh0:
	adrp	x8, _BIO_TYPE_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_TYPE_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, #0
	bl	_BIO_get_fd
	cmp	w0, w20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_BIO_up_ref
	b	LBB0_6
LBB0_4:
	bl	_BIO_s_socket
	bl	_BIO_new
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh3:
	adrp	x8, _BIO_NOCLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_NOCLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_BIO_set_fd
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_SSL_set0_rbio
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _SSL_F_SSL_SET_RFD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_SET_RFD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_BUF_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_BUF_LIB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_TYPE_SOCKET,8,3            ; @BIO_TYPE_SOCKET
	.comm	_SSL_F_SSL_SET_RFD,4,2          ; @SSL_F_SSL_SET_RFD
	.comm	_ERR_R_BUF_LIB,4,2              ; @ERR_R_BUF_LIB
	.comm	_BIO_NOCLOSE,4,2                ; @BIO_NOCLOSE
.subsections_via_symbols
