	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_shutdown_step
_do_shutdown_step:                      ## @do_shutdown_step
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_PEER_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_SSL_shutdown
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_PEER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_PEER_TEST_FAILURE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_4:
	testl	%eax, %eax
	js	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	4(%rbx), %edi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.6:
	movq	_SSL_ERROR_WANT_WRITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.7:
	movq	_PEER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PEER_RETRY,4,2                 ## @PEER_RETRY
	.comm	_PEER_TEST_FAILURE,4,2          ## @PEER_TEST_FAILURE
	.comm	_PEER_SUCCESS,4,2               ## @PEER_SUCCESS
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ## @SSL_ERROR_WANT_WRITE
	.comm	_PEER_ERROR,4,2                 ## @PEER_ERROR
	.no_dead_strip	_do_shutdown_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_shutdown_step
_do_shutdown_step:                      ; @do_shutdown_step
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PEER_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEER_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_SSL_shutdown
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PEER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PEER_SUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _PEER_TEST_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PEER_TEST_FAILURE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	mov	x1, x0
	tbz	w0, #31, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_SSL_get_error
Lloh7:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh13:
	adrp	x8, _PEER_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PEER_ERROR@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PEER_RETRY,4,2                 ; @PEER_RETRY
	.comm	_PEER_TEST_FAILURE,4,2          ; @PEER_TEST_FAILURE
	.comm	_PEER_SUCCESS,4,2               ; @PEER_SUCCESS
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ; @SSL_ERROR_WANT_WRITE
	.comm	_PEER_ERROR,4,2                 ; @PEER_ERROR
	.no_dead_strip	_do_shutdown_step
.subsections_via_symbols
