	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_sockop_close
_php_openssl_sockop_close:              ## @php_openssl_sockop_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	testl	%esi, %esi
	je	LBB0_9
## %bb.1:
	cmpq	$0, 72(%r15)
	je	LBB0_3
## %bb.2:
	movq	64(%r15), %rdi
	callq	_SSL_shutdown
	movq	$0, 72(%r15)
LBB0_3:
	movq	64(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_SSL_free
	movq	$0, 64(%r15)
LBB0_5:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_SSL_CTX_free
	movq	$0, 40(%r15)
LBB0_7:
	movslq	48(%r15), %rdi
	movq	_SOCK_ERR@GOTPCREL(%rip), %rbx
	cmpq	%rdi, (%rbx)
	je	LBB0_9
## %bb.8:
	callq	_closesocket
	movl	(%rbx), %eax
	movl	%eax, 48(%r15)
LBB0_9:
	movq	24(%r15), %r12
	testq	%r12, %r12
	je	LBB0_16
## %bb.10:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movl	%eax, %ecx
	movq	24(%r15), %r12
	addq	$80, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_SSL_CTX_free
	movq	24(%r15), %rax
	movq	32(%rax,%rbx), %r12
	movq	%r14, %rdi
	callq	_php_stream_is_persistent
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pefree
	movl	(%r15), %eax
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_php_stream_is_persistent
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pefree
	movq	$0, 24(%r15)
LBB0_16:
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_php_stream_is_persistent
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pefree
LBB0_18:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_php_stream_is_persistent
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pefree
LBB0_20:
	movq	%r14, %rdi
	callq	_php_stream_is_persistent
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pefree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_ERR,8,3                   ## @SOCK_ERR
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_SHUT_RD,4,2                    ## @SHUT_RD
	.no_dead_strip	_php_openssl_sockop_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_sockop_close
_php_openssl_sockop_close:              ; @php_openssl_sockop_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
	cbz	w1, LBB0_9
; %bb.1:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #64]
	bl	_SSL_shutdown
	str	xzr, [x19, #72]
LBB0_3:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_SSL_free
	str	xzr, [x19, #64]
LBB0_5:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_SSL_CTX_free
	str	xzr, [x19, #40]
LBB0_7:
	ldrsw	x0, [x19, #48]
Lloh0:
	adrp	x21, _SOCK_ERR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOCK_ERR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_9
; %bb.8:
	bl	_closesocket
	ldr	x8, [x21]
	str	w8, [x19, #48]
LBB0_9:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_16
; %bb.10:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.11:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	ldr	x21, [x19, #24]
	add	x22, x22, #80
	cmp	x23, w8, uxtw
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x21, x22
	ldr	x0, [x9, #40]
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_SSL_CTX_free
	ldr	x8, [x19, #24]
	add	x8, x8, x22
	ldr	x21, [x8, #32]
	mov	x0, x20
	bl	_php_stream_is_persistent
	mov	x1, x0
	mov	x0, x21
	bl	_pefree
	ldr	w8, [x19]
	b	LBB0_12
LBB0_15:
	mov	x0, x20
	bl	_php_stream_is_persistent
	mov	x1, x0
	mov	x0, x21
	bl	_pefree
	str	xzr, [x19, #24]
LBB0_16:
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_php_stream_is_persistent
	mov	x1, x0
	mov	x0, x21
	bl	_pefree
LBB0_18:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_php_stream_is_persistent
	mov	x1, x0
	mov	x0, x21
	bl	_pefree
LBB0_20:
	mov	x0, x20
	bl	_php_stream_is_persistent
	mov	x1, x0
	mov	x0, x19
	bl	_pefree
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_ERR,8,3                   ; @SOCK_ERR
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_SHUT_RD,4,2                    ; @SHUT_RD
	.no_dead_strip	_php_openssl_sockop_close
.subsections_via_symbols
