	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ims_pcu_gamepad_report
_ims_pcu_gamepad_report:                ## @ims_pcu_gamepad_report
	.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
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movl	%esi, %edx
	shll	$18, %edx
	sarl	$31, %edx
	btl	$14, %esi
	adcl	$0, %edx
	movq	(%rax), %r14
	movl	%esi, %ebx
	shll	$20, %ebx
	sarl	$31, %ebx
	btl	$12, %esi
	adcl	$0, %ebx
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_BTN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$128, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$256, %edx                      ## imm = 0x100
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$512, %edx                      ## imm = 0x200
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$1024, %edx                     ## imm = 0x400
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	andl	$32768, %edx                    ## imm = 0x8000
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$65536, %r15d                   ## imm = 0x10000
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_A,4,2                      ## @BTN_A
	.comm	_BTN_B,4,2                      ## @BTN_B
	.comm	_BTN_X,4,2                      ## @BTN_X
	.comm	_BTN_Y,4,2                      ## @BTN_Y
	.comm	_BTN_START,4,2                  ## @BTN_START
	.comm	_BTN_SELECT,4,2                 ## @BTN_SELECT
	.no_dead_strip	_ims_pcu_gamepad_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ims_pcu_gamepad_report
_ims_pcu_gamepad_report:                ; @ims_pcu_gamepad_report
	.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	x20, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	ubfx	w8, w1, #14, #1
	lsl	w9, w1, #18
	add	w2, w8, w9, asr #31
	ubfx	w8, w1, #12, #1
	lsl	w9, w1, #20
	add	w21, w8, w9, asr #31
Lloh0:
	adrp	x8, _ABS_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_abs
Lloh3:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
Lloh6:
	adrp	x8, _BTN_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	and	w2, w20, #0x80
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_B@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	and	w2, w20, #0x100
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_X@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_X@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	and	w2, w20, #0x200
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_Y@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_Y@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	and	w2, w20, #0x400
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_START@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	and	w2, w20, #0x8000
	mov	x0, x19
	bl	_input_report_key
Lloh21:
	adrp	x8, _BTN_SELECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_SELECT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	and	w2, w20, #0x10000
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	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
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_A,4,2                      ; @BTN_A
	.comm	_BTN_B,4,2                      ; @BTN_B
	.comm	_BTN_X,4,2                      ; @BTN_X
	.comm	_BTN_Y,4,2                      ; @BTN_Y
	.comm	_BTN_START,4,2                  ; @BTN_START
	.comm	_BTN_SELECT,4,2                 ; @BTN_SELECT
	.no_dead_strip	_ims_pcu_gamepad_report
.subsections_via_symbols
