	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_disconnect          ## -- Begin function redis_sock_disconnect
	.p2align	4, 0x90
_redis_sock_disconnect:                 ## @redis_sock_disconnect
	.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), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.3:
	leaq	16(%rbx), %r14
	cmpq	$0, 24(%rbx)
	je	LBB0_12
## %bb.4:
	movl	%esi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_INI_INT
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_redis_sock_get_connection_pool
	movq	%rax, %r12
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.6:
	movq	(%r14), %rdi
	callq	_php_stream_pclose
	testq	%r12, %r12
	je	LBB0_13
## %bb.7:
	decl	4(%r12)
	jmp	LBB0_13
LBB0_1:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	callq	_php_stream_close
	jmp	LBB0_13
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.9:
	movq	(%r14), %rdi
	callq	_php_stream_pclose
	jmp	LBB0_13
LBB0_10:
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_zend_llist_prepend_element
LBB0_13:
	movq	$0, (%r14)
LBB0_14:
	movq	_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_REDIS_SOCK_STATUS_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redis.pconnect.pooling_enabled"

	.comm	_ATOMIC,4,2                     ## @ATOMIC
	.comm	_REDIS_SOCK_STATUS_DISCONNECTED,4,2 ## @REDIS_SOCK_STATUS_DISCONNECTED
	.comm	_SUCCESS,4,2                    ## @SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_disconnect          ; -- Begin function redis_sock_disconnect
	.p2align	2
_redis_sock_disconnect:                 ; @redis_sock_disconnect
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	ldr	x0, [x20, #16]!
	cbz	x0, LBB0_14
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x21, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_INI_INT
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_redis_sock_get_connection_pool
	mov	x22, x0
	cbz	w21, LBB0_11
; %bb.5:
	ldr	x0, [x20]
	bl	_php_stream_pclose
	cbz	x22, LBB0_13
; %bb.6:
	ldr	w8, [x22, #4]
	sub	w8, w8, #1
	str	w8, [x22, #4]
	b	LBB0_13
LBB0_7:
Lloh2:
	adrp	x8, _FAILURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	bl	_php_stream_close
	b	LBB0_13
LBB0_9:
	cbz	w21, LBB0_13
; %bb.10:
	ldr	x0, [x20]
	bl	_php_stream_pclose
	b	LBB0_13
LBB0_11:
	cbz	x22, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x20
	bl	_zend_llist_prepend_element
LBB0_13:
	str	xzr, [x20]
LBB0_14:
Lloh4:
	adrp	x8, _ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _REDIS_SOCK_STATUS_DISCONNECTED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REDIS_SOCK_STATUS_DISCONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	str	xzr, [x19]
Lloh10:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redis.pconnect.pooling_enabled"

	.comm	_ATOMIC,4,2                     ; @ATOMIC
	.comm	_REDIS_SOCK_STATUS_DISCONNECTED,4,2 ; @REDIS_SOCK_STATUS_DISCONNECTED
	.comm	_SUCCESS,4,2                    ; @SUCCESS
.subsections_via_symbols
