	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_merge_analog
_netplay_merge_analog:                  ## @netplay_merge_analog
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	_RETRO_DEVICE_JOYPAD@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%r9d, %r14d
	movq	_RETRO_DEVICE_KEYBOARD@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	je	LBB0_4
## %bb.2:
	movl	$0, (%rsp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdx, %r13
	movl	%ecx, %r12d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	movl	$1, %r9d
	callq	_merge_analog_part
	movl	$16, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r12d, %r15d
	movq	%r13, %r12
	movl	%ebx, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, %r9d
	callq	_merge_analog_part
	movq	_RETRO_DEVICE_ANALOG@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	$2, %r9d
	callq	_merge_analog_part
	movl	$16, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	$2, %r9d
	callq	_merge_analog_part
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ## @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ## @RETRO_DEVICE_KEYBOARD
	.comm	_RETRO_DEVICE_ANALOG,4,2        ## @RETRO_DEVICE_ANALOG
	.no_dead_strip	_netplay_merge_analog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_merge_analog
_netplay_merge_analog:                  ; @netplay_merge_analog
	.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
Lloh0:
	adrp	x8, _RETRO_DEVICE_JOYPAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_DEVICE_JOYPAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RETRO_DEVICE_KEYBOARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RETRO_DEVICE_KEYBOARD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w5
	ccmp	w9, w5, #4, ne
	b.eq	LBB0_3
; %bb.1:
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w5, #1
	mov	w6, #0
	bl	_merge_analog_part
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	w5, #1
	mov	w6, #16
	bl	_merge_analog_part
Lloh6:
	adrp	x8, _RETRO_DEVICE_ANALOG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RETRO_DEVICE_ANALOG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	w5, #2
	mov	w6, #0
	bl	_merge_analog_part
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	w5, #2
	mov	w6, #16
	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
	b	_merge_analog_part
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ; @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ; @RETRO_DEVICE_KEYBOARD
	.comm	_RETRO_DEVICE_ANALOG,4,2        ; @RETRO_DEVICE_ANALOG
	.no_dead_strip	_netplay_merge_analog
.subsections_via_symbols
