	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libretro_device_get_size
_libretro_device_get_size:              ## @libretro_device_get_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_runloop_get_system_info
	movq	%rax, %rcx
	movq	_RETRO_DEVICE_NONE@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movl	%eax, (%r12)
	movq	_RETRO_DEVICE_JOYPAD@GOTPCREL(%rip), %r9
	movl	(%r9), %edi
	movl	%edi, 4(%r12)
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	movl	(%rcx), %edx
	movl	$2, %eax
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	cmpl	%r15d, %edx
	ja	LBB0_6
	jmp	LBB0_2
LBB0_1:
	movl	$2, %eax
	jmp	LBB0_2
LBB0_4:
	movq	_RETRO_DEVICE_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	(%rcx), %edx
	movl	$3, %eax
	cmpl	%r15d, %edx
	jbe	LBB0_2
LBB0_6:
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.7:
	movl	%r15d, %esi
	shlq	$4, %rsi
	movl	(%rcx,%rsi), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.8:
	leaq	(%rcx,%rsi), %r10
	movq	8(%rcx,%rsi), %r11
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	cmpq	%r14, %rbx
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-4(%r11,%rcx,4), %esi
	cmpl	(%r8), %esi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%edi, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%eax
	movl	%esi, (%r12,%rbx,4)
	movl	(%r10), %edx
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %esi
	cmpq	%rsi, %rcx
	jae	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r9), %edi
	incq	%rcx
	jmp	LBB0_9
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_DEVICE_NONE,4,2          ## @RETRO_DEVICE_NONE
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ## @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_ANALOG,4,2        ## @RETRO_DEVICE_ANALOG
	.no_dead_strip	_libretro_device_get_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libretro_device_get_size
_libretro_device_get_size:              ; @libretro_device_get_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_runloop_get_system_info
Lloh0:
	adrp	x9, _RETRO_DEVICE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RETRO_DEVICE_NONE@GOTPAGEOFF]
	ldr	w10, [x9]
	str	w10, [x20]
Lloh2:
	adrp	x10, _RETRO_DEVICE_JOYPAD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RETRO_DEVICE_JOYPAD@GOTPAGEOFF]
	ldr	w11, [x10]
	str	w11, [x20, #4]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x8, x0
	ldr	w12, [x0]
	cbz	w12, LBB0_4
; %bb.2:
	mov	w0, #2
	cmp	w12, w21
	b.hi	LBB0_5
	b	LBB0_12
LBB0_3:
	mov	w0, #2
	b	LBB0_12
LBB0_4:
Lloh4:
	adrp	x12, _RETRO_DEVICE_ANALOG@GOTPAGE
Lloh5:
	ldr	x12, [x12, _RETRO_DEVICE_ANALOG@GOTPAGEOFF]
Lloh6:
	ldr	w12, [x12]
	str	w12, [x20, #8]
	ldr	w12, [x8]
	mov	w0, #3
	cmp	w12, w21
	b.ls	LBB0_12
LBB0_5:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.6:
	mov	w12, w21
	add	x8, x8, x12, lsl #4
	ldr	w13, [x8]
	cbz	w13, LBB0_12
; %bb.7:
	mov	x12, #0
	ldr	x14, [x8, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14, x12, lsl #2]
	mov	w16, w0
	ldr	w17, [x9]
	cmp	x16, x19
	ccmp	w15, w17, #4, lo
	ccmp	w15, w11, #4, ne
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w0, w0, #1
	str	w15, [x20, x16, lsl #2]
	ldr	w13, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x12, x12, #1
	cmp	x12, w13, uxtw
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x10]
	b	LBB0_8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_DEVICE_NONE,4,2          ; @RETRO_DEVICE_NONE
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ; @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_ANALOG,4,2        ; @RETRO_DEVICE_ANALOG
	.no_dead_strip	_libretro_device_get_size
.subsections_via_symbols
