	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_sslio_close                 ## -- Begin function br_sslio_close
	.p2align	4, 0x90
_br_sslio_close:                        ## @br_sslio_close
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_br_ssl_engine_close
	movl	(%rbx), %edi
	callq	_br_ssl_engine_current_state
	movq	_BR_SSL_CLOSED@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
LBB0_5:
	movl	(%rbx), %edi
	callq	_br_ssl_engine_last_error
	movq	_BR_ERR_OK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%cl
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BR_SSL_RECVAPP@GOTPCREL(%rip), %r12
	leaq	-40(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_br_ssl_engine_current_state
	cmpq	(%r15), %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_run_until
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_br_ssl_engine_recvapp_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movq	-40(%rbp), %rsi
	callq	_br_ssl_engine_recvapp_ack
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_SSL_CLOSED,8,3              ## @BR_SSL_CLOSED
	.comm	_BR_SSL_RECVAPP,4,2             ## @BR_SSL_RECVAPP
	.comm	_BR_ERR_OK,8,3                  ## @BR_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_sslio_close                 ; -- Begin function br_sslio_close
	.p2align	2
_br_sslio_close:                        ; @br_sslio_close
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_br_ssl_engine_close
	ldr	w0, [x19]
	bl	_br_ssl_engine_current_state
Lloh0:
	adrp	x20, _BR_SSL_CLOSED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BR_SSL_CLOSED@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	ldr	w0, [x19]
	bl	_br_ssl_engine_last_error
Lloh2:
	adrp	x8, _BR_ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BR_ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	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_2:
Lloh5:
	adrp	x21, _BR_SSL_RECVAPP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BR_SSL_RECVAPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	bl	_br_ssl_engine_current_state
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_run_until
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_br_ssl_engine_recvapp_buf
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_br_ssl_engine_recvapp_ack
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_SSL_CLOSED,8,3              ; @BR_SSL_CLOSED
	.comm	_BR_SSL_RECVAPP,4,2             ; @BR_SSL_RECVAPP
	.comm	_BR_ERR_OK,8,3                  ; @BR_ERR_OK
.subsections_via_symbols
