	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_join_req
_handle_join_req:                       ## @handle_join_req
	.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	%rdx, %r14
	movq	%rdi, %rbx
	leaq	16(%rdx), %r15
	movl	16(%rdi), %eax
	andl	%esi, %eax
	andl	$15, %eax
	cmpl	%esi, %eax
	jne	LBB0_4
## %bb.1:
	movl	%esi, %r12d
	leaq	16(%rbx), %rdi
	movq	24(%r14), %rsi
	movl	16(%r14), %edx
	callq	_cmp_rec
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_join_group
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%r14), %rdi
	decl	(%rax,%rdi,4)
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_send_reply_to_slave
	leaq	12(%r14), %rdi
	callq	_list_del
	leaq	8(%r14), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_kfree
	movl	$1, %eax
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_send_join_to_wire
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	decl	(%rax,%rcx,4)
	leaq	12(%r14), %rdi
	callq	_list_del
	leaq	8(%r14), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_kfree
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_MCAST_JOIN_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCAST_JOIN_SENT,4,2            ## @MCAST_JOIN_SENT
	.no_dead_strip	_handle_join_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_join_req
_handle_join_req:                       ; @handle_join_req
	.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	x19, x2
	mov	x20, x0
	ldr	w8, [x0, #16]!
	add	x21, x2, #16
	and	w8, w1, w8
	and	w8, w8, #0xf
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x1
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
	bl	_cmp_rec
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x22
	bl	_join_group
LBB0_3:
	ldr	x8, [x20, #8]
	mov	x22, x19
	ldr	x0, [x22], #8
	lsl	x9, x0, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_send_reply_to_slave
	add	x0, x19, #12
	bl	_list_del
	mov	x0, x22
	bl	_list_del
	mov	x0, x19
	bl	_kfree
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	ldr	w8, [x20]
	str	w8, [x20, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_send_join_to_wire
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	mov	x21, x19
	ldr	x9, [x21], #8
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	add	x0, x19, #12
	bl	_list_del
	mov	x0, x21
	bl	_list_del
	mov	x0, x19
	bl	_kfree
	ldr	w8, [x20, #4]
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _MCAST_JOIN_SENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCAST_JOIN_SENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MCAST_JOIN_SENT,4,2            ; @MCAST_JOIN_SENT
	.no_dead_strip	_handle_join_req
.subsections_via_symbols
