	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_analog_part
_merge_analog_part:                     ## @merge_analog_part
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r13
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	(%rdx), %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rax), %rax
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 24(%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rcx
	cmpq	(%rsi), %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	8(%rax), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rcx
	orq	%rcx, %r13
	jmp	LBB0_7
LBB0_2:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.8:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	_NETPLAY_SHARE_ANALOG_BITS@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rax), %edx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	andl	(%rcx,%rax,4), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	%r15, -48(%rbp)                 ## 8-byte Folded Spill
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r15
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	cmpq	(%r15), %r14
	jae	LBB0_20
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	cltq
	testq	%rax, %r13
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_netplay_device_client_state
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movl	16(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	incq	%rbx
	movzwl	%ax, %r15d
	cmpl	$128, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_abs
	movl	%eax, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_abs
	cmpl	%eax, %r12d
	jg	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_abs
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_abs
	cmpl	%eax, %r12d
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r15, %r13
	jae	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_20:
	cmpl	$128, -52(%rbp)                 ## 4-byte Folded Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_21
## %bb.22:
	testq	%rbx, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_26
## %bb.23:
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	je	LBB0_24
## %bb.25:
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_26
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_24:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_26:
	movl	16(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	movq	16(%rsi), %rcx
	orl	%eax, (%rcx,%r12,4)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_SHARE_ANALOG_BITS,4,2  ## @NETPLAY_SHARE_ANALOG_BITS
	.comm	_MAX_CLIENTS,8,3                ## @MAX_CLIENTS
	.no_dead_strip	_merge_analog_part
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_analog_part
_merge_analog_part:                     ; @merge_analog_part
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w6 killed $w6 def $x6
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x25, x0
	ldr	x8, [x2]
	ldr	x8, [x8, x3, lsl #3]
	cbz	x8, LBB0_6
; %bb.1:
	mov	w9, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, #24]
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x8]
	ldr	x11, [x1]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x8, #8]
	lsl	w10, w9, w10
	sxtw	x10, w10
	orr	x22, x22, x10
	b	LBB0_2
LBB0_6:
Lloh0:
	adrp	x28, _MAX_CLIENTS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	x8, [x28]
	cbz	x8, LBB0_22
; %bb.7:
	str	x6, [sp, #32]                   ; 8-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x26, #0
	mov	x20, #0
	mov	x27, #0
Lloh2:
	adrp	x8, _NETPLAY_SHARE_ANALOG_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETPLAY_SHARE_ANALOG_BITS@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w9, [x9, x23, lsl #2]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w9
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	w24, #1
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, x28
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x24
	mov	w24, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	ldr	x8, [x28]
	cmp	x27, x8
	b.hs	LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, w27
	sxtw	x8, w8
	tst	x22, x8
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	mov	x1, x21
	mov	x2, x23
	mov	x3, x27
	bl	_netplay_device_client_state
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x28
	add	x20, x20, #1
	ldr	x8, [x0, #16]
	ldr	w8, [x8, x19, lsl #2]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	asr	w8, w8, w10
	and	w28, w8, #0xffff
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x20, x19
	mov	x0, x28
	bl	_abs
	mov	x19, x0
	mov	x0, x26
	bl	_abs
	cmp	w19, w0
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_abs
	mov	x19, x0
	mov	x0, x26
	bl	_abs
	cmp	w19, w0
	ccmp	x26, x28, #2, eq
	b.hs	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, x28
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x19, x20
	ldp	x21, x20, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_9
LBB0_18:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.19:
	cbz	x20, LBB0_21
; %bb.20:
	udiv	x26, x26, x20
LBB0_21:
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x6, [sp, #32]                   ; 8-byte Folded Reload
	b	LBB0_23
LBB0_22:
	mov	x26, #0
LBB0_23:
	lsl	x8, x26, x6
	ldr	x9, [x1, #16]
	lsl	x10, x19, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_SHARE_ANALOG_BITS,4,2  ; @NETPLAY_SHARE_ANALOG_BITS
	.comm	_MAX_CLIENTS,8,3                ; @MAX_CLIENTS
	.no_dead_strip	_merge_analog_part
.subsections_via_symbols
