	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_get_string_representation_uint_libretro_device
_setting_get_string_representation_uint_libretro_device: ## @setting_get_string_representation_uint_libretro_device
	.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	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_runloop_get_system_info
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_input_config_get_device
	movl	%eax, %r12d
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	cmpl	(%r13), %ebx
	jae	LBB0_5
## %bb.3:
	shlq	$2, %rbx
	addq	8(%r13), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_libretro_find_controller_description
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_5:
	addl	$-128, %r12d
	cmpl	$2, %r12d
	ja	LBB0_6
## %bb.7:
	movslq	%r12d, %rax
	leaq	l_switch.table.setting_get_string_representation_uint_libretro_device(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MENU_ENUM_LABEL_VALUE_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_VALUE_NONE,4,2 ## @MENU_ENUM_LABEL_VALUE_NONE
	.comm	_MENU_ENUM_LABEL_VALUE_RETROPAD,4,2 ## @MENU_ENUM_LABEL_VALUE_RETROPAD
	.comm	_MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG,4,2 ## @MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG
	.comm	_MENU_ENUM_LABEL_VALUE_UNKNOWN,4,2 ## @MENU_ENUM_LABEL_VALUE_UNKNOWN
	.no_dead_strip	_setting_get_string_representation_uint_libretro_device
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.setting_get_string_representation_uint_libretro_device
l_switch.table.setting_get_string_representation_uint_libretro_device:
	.quad	_MENU_ENUM_LABEL_VALUE_NONE
	.quad	_MENU_ENUM_LABEL_VALUE_RETROPAD
	.quad	_MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setting_get_string_representation_uint_libretro_device
_setting_get_string_representation_uint_libretro_device: ; @setting_get_string_representation_uint_libretro_device
	.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, x1
	mov	x21, x0
	bl	_runloop_get_system_info
	cbz	x21, LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	w23, [x21]
	mov	x0, x23
	bl	_input_config_get_device
	mov	x21, x0
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	cmp	w23, w8
	b.hs	LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	add	x0, x8, x23, lsl #2
	mov	x1, x21
	bl	_libretro_find_controller_description
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x22, [x0]
	cbnz	x22, LBB0_9
LBB0_5:
	sub	w8, w21, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.6:
Lloh0:
	adrp	x9, l_switch.table.setting_get_string_representation_uint_libretro_device@PAGE
Lloh1:
	add	x9, x9, l_switch.table.setting_get_string_representation_uint_libretro_device@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_UNKNOWN@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x22, x0
LBB0_9:
	mov	x0, x22
	bl	_string_is_empty
	cbz	w0, LBB0_11
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	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	_strlcpy
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_VALUE_NONE,4,2 ; @MENU_ENUM_LABEL_VALUE_NONE
	.comm	_MENU_ENUM_LABEL_VALUE_RETROPAD,4,2 ; @MENU_ENUM_LABEL_VALUE_RETROPAD
	.comm	_MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG,4,2 ; @MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG
	.comm	_MENU_ENUM_LABEL_VALUE_UNKNOWN,4,2 ; @MENU_ENUM_LABEL_VALUE_UNKNOWN
	.no_dead_strip	_setting_get_string_representation_uint_libretro_device
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.setting_get_string_representation_uint_libretro_device
l_switch.table.setting_get_string_representation_uint_libretro_device:
	.quad	_MENU_ENUM_LABEL_VALUE_NONE
	.quad	_MENU_ENUM_LABEL_VALUE_RETROPAD
	.quad	_MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG

.subsections_via_symbols
