	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3_input_set_sensor_state
_ps3_input_set_sensor_state:            ## @ps3_input_set_sensor_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	cmpl	$129, %edx
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.2:
	leaq	-24(%rbp), %rdi
	callq	_cellPadGetInfo2
	movq	-24(%rbp), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %eax
	movq	_CELL_PAD_CAPABILITY_SENSOR_MODE@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.3:
	movq	_CELL_PAD_SETTING_SENSOR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %edi
	xorl	%esi, %esi
LBB0_5:
	callq	_cellPadSetPortSetting
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CELL_PAD_CAPABILITY_SENSOR_MODE,4,2 ## @CELL_PAD_CAPABILITY_SENSOR_MODE
	.comm	_CELL_PAD_SETTING_SENSOR_ON,4,2 ## @CELL_PAD_SETTING_SENSOR_ON
	.no_dead_strip	_ps3_input_set_sensor_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3_input_set_sensor_state
_ps3_input_set_sensor_state:            ; @ps3_input_set_sensor_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_cellPadGetInfo2
	ldr	x8, [sp, #8]
	ldr	w8, [x8, w19, uxtw #2]
Lloh0:
	adrp	x9, _CELL_PAD_CAPABILITY_SENSOR_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CELL_PAD_CAPABILITY_SENSOR_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CELL_PAD_SETTING_SENSOR_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CELL_PAD_SETTING_SENSOR_ON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	w1, #0
LBB0_6:
	bl	_cellPadSetPortSetting
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CELL_PAD_CAPABILITY_SENSOR_MODE,4,2 ; @CELL_PAD_CAPABILITY_SENSOR_MODE
	.comm	_CELL_PAD_SETTING_SENSOR_ON,4,2 ; @CELL_PAD_SETTING_SENSOR_ON
	.no_dead_strip	_ps3_input_set_sensor_state
.subsections_via_symbols
