	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_joypad_init
_psp_joypad_init:                       ## @psp_joypad_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_psp_joypad@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_psp_joypad_name
	movl	(%r15), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_autoconfigure_connect
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_psp_joypad,4,2                 ## @psp_joypad
	.comm	_SCE_KERNEL_MODEL_VITATV,8,3    ## @SCE_KERNEL_MODEL_VITATV
	.comm	_SCE_TOUCH_PORT_BACK,4,2        ## @SCE_TOUCH_PORT_BACK
	.comm	_SCE_TOUCH_PORT_FRONT,4,2       ## @SCE_TOUCH_PORT_FRONT
	.comm	_SCE_TOUCH_SAMPLING_STATE_START,4,2 ## @SCE_TOUCH_SAMPLING_STATE_START
	.comm	_curr_ctrl_info,4,2             ## @curr_ctrl_info
	.comm	_old_ctrl_info,4,2              ## @old_ctrl_info
	.comm	_psp2_model,8,3                 ## @psp2_model
	.no_dead_strip	_psp_joypad_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_joypad_init
_psp_joypad_init:                       ; @psp_joypad_init
	.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
Lloh0:
	adrp	x8, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w20, LBB0_3
; %bb.1:
	mov	w19, #0
Lloh3:
	adrp	x21, _psp_joypad@GOTPAGE
Lloh4:
	ldr	x21, [x21, _psp_joypad@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_psp_joypad_name
	ldr	w2, [x21]
	mov	x1, #0
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	bl	_input_autoconfigure_connect
	add	w19, w19, #1
	cmp	w20, w19
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #1
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_psp_joypad,4,2                 ; @psp_joypad
	.comm	_SCE_KERNEL_MODEL_VITATV,8,3    ; @SCE_KERNEL_MODEL_VITATV
	.comm	_SCE_TOUCH_PORT_BACK,4,2        ; @SCE_TOUCH_PORT_BACK
	.comm	_SCE_TOUCH_PORT_FRONT,4,2       ; @SCE_TOUCH_PORT_FRONT
	.comm	_SCE_TOUCH_SAMPLING_STATE_START,4,2 ; @SCE_TOUCH_SAMPLING_STATE_START
	.comm	_curr_ctrl_info,4,2             ; @curr_ctrl_info
	.comm	_old_ctrl_info,4,2              ; @old_ctrl_info
	.comm	_psp2_model,8,3                 ; @psp2_model
	.no_dead_strip	_psp_joypad_init
.subsections_via_symbols
