	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uwp_pressed_analog
_uwp_pressed_analog:                    ## @uwp_pressed_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	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r8d, %edi
	movl	%r9d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_input_conv_analog_id_to_bind_id
	cmpl	$0, 8(%r14)
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rdi
	movq	_RETROK_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	%rax, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %ebx
	jge	LBB0_2
## %bb.3:
	callq	_uwp_keyboard_pressed
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$-32767, %r12d                  ## imm = 0x8001
	cmovel	%ecx, %r12d
	movq	(%r14), %rdi
	movq	_RETROK_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	jl	LBB0_5
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
	cmpq	%rax, %rdi
	jge	LBB0_6
LBB0_5:
	callq	_uwp_keyboard_pressed
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$32767, %r13d                   ## imm = 0x7FFF
	cmovel	%ecx, %r13d
LBB0_6:
	addl	%r12d, %r13d
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_8
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ebx, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %ecx
	movq	%r14, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_joypad_analog            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RETROK_LAST,8,3                ## @RETROK_LAST
	.no_dead_strip	_uwp_pressed_analog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uwp_pressed_analog
_uwp_pressed_analog:                    ; @uwp_pressed_analog
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x4
	mov	x1, x5
	mov	w2, #0
	mov	w3, #0
	bl	_input_conv_analog_id_to_bind_id
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x0, [x20]
Lloh0:
	adrp	x26, _RETROK_LAST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RETROK_LAST@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.2:
	bl	_uwp_keyboard_pressed
	cmp	x0, #0
	mov	w8, #-32767
	csel	w25, wzr, w8, eq
	ldr	x0, [x20]
	ldr	x8, [x26]
	cmp	x0, x8
	b.lt	LBB0_6
LBB0_3:
	mov	w8, #0
	adds	w0, w8, w25
	b.ne	LBB0_7
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w25, #0
	cmp	x0, x8
	b.ge	LBB0_3
LBB0_6:
	bl	_uwp_keyboard_pressed
	cmp	x0, #0
	mov	w8, #32767
	csel	w8, wzr, w8, eq
	adds	w0, w8, w25
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x24]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	mov	x5, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_joypad_analog
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RETROK_LAST,8,3                ; @RETROK_LAST
	.no_dead_strip	_uwp_pressed_analog
.subsections_via_symbols
