	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _php_mcast_join_leave
__php_mcast_join_leave:                 ## @_php_mcast_join_leave
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%ecx, %r14d
	movq	(%rdi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movl	%r8d, %r13d
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%edi, %edi
	cmpl	$4, %r14d
	sete	%dil
	callq	_assert
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.2:
	leaq	-48(%rbp), %rdx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_php_if_index_to_addr4
	movq	%rax, %rcx
	movq	_FAILURE@GOTPCREL(%rip), %rdx
	movl	$-2, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.3:
	movl	-48(%rbp), %eax
	jmp	LBB0_5
LBB0_9:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movl	$-2, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
LBB0_5:
	movl	%eax, -60(%rbp)
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	8(%rbx), %edi
	testl	%r15d, %r15d
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_6
## %bb.7:
	movq	_IP_DROP_MEMBERSHIP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_IP_ADD_MEMBERSHIP@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movl	$16, %r8d
	callq	_setsockopt
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_IP_ADD_MEMBERSHIP,4,2          ## @IP_ADD_MEMBERSHIP
	.comm	_IP_DROP_MEMBERSHIP,4,2         ## @IP_DROP_MEMBERSHIP
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Option %s is inapplicable to this socket type"

L_.str.1:                               ## @.str.1
	.asciz	"MCAST_JOIN_GROUP"

L_.str.2:                               ## @.str.2
	.asciz	"MCAST_LEAVE_GROUP"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_IPV6_JOIN_GROUP,4,2            ## @IPV6_JOIN_GROUP
	.comm	_IPV6_LEAVE_GROUP,4,2           ## @IPV6_LEAVE_GROUP
	.comm	_MCAST_JOIN_GROUP,4,2           ## @MCAST_JOIN_GROUP
	.comm	_MCAST_LEAVE_GROUP,4,2          ## @MCAST_LEAVE_GROUP
	.no_dead_strip	__php_mcast_join_leave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _php_mcast_join_leave
__php_mcast_join_leave:                 ; @_php_mcast_join_leave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cmp	w24, #4
	cset	w0, eq
	bl	_assert
	cbz	w23, LBB0_6
; %bb.2:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x21
	bl	_php_if_index_to_addr4
Lloh3:
	adrp	x8, _FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [sp, #8]
	str	w8, [sp, #28]
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x3, x9, x8, eq
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
LBB0_5:
	mov	w0, #-2
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #28]
LBB0_7:
	ldr	w8, [x22]
	str	w8, [sp, #24]
Lloh18:
	adrp	x8, _IP_ADD_MEMBERSHIP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IP_ADD_MEMBERSHIP@GOTPAGEOFF]
	ldr	w0, [x21, #8]
Lloh20:
	adrp	x9, _IP_DROP_MEMBERSHIP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IP_DROP_MEMBERSHIP@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x1, x19
	mov	w4, #16
	bl	_setsockopt
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_IP_ADD_MEMBERSHIP,4,2          ; @IP_ADD_MEMBERSHIP
	.comm	_IP_DROP_MEMBERSHIP,4,2         ; @IP_DROP_MEMBERSHIP
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Option %s is inapplicable to this socket type"

l_.str.1:                               ; @.str.1
	.asciz	"MCAST_JOIN_GROUP"

l_.str.2:                               ; @.str.2
	.asciz	"MCAST_LEAVE_GROUP"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_IPV6_JOIN_GROUP,4,2            ; @IPV6_JOIN_GROUP
	.comm	_IPV6_LEAVE_GROUP,4,2           ; @IPV6_LEAVE_GROUP
	.comm	_MCAST_JOIN_GROUP,4,2           ; @MCAST_JOIN_GROUP
	.comm	_MCAST_LEAVE_GROUP,4,2          ; @MCAST_LEAVE_GROUP
	.no_dead_strip	__php_mcast_join_leave
.subsections_via_symbols
