	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpad_set_up_abs
_xpad_set_up_abs:                       ## @xpad_set_up_abs
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_input_get_drvdata
	movl	%ebx, %ecx
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_9
## %bb.1:
	movl	$54, %edx
	btl	%ecx, %edx
	jae	LBB0_2
## %bb.10:
	movswl	%bx, %esi
	movq	%r14, %rdi
	movl	$-32768, %edx                   ## imm = 0x8000
	movl	$32767, %ecx                    ## imm = 0x7FFF
	movl	$16, %r8d
	movl	$128, %r9d
	jmp	LBB0_6
LBB0_2:
	movl	$9, %edx
	btl	%ecx, %edx
	jae	LBB0_8
## %bb.3:
	movl	(%rax), %eax
	movq	_XTYPE_XBOXONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.4:
	movswl	%bx, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	jmp	LBB0_5
LBB0_8:
	movswl	%bx, %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_9:
	movswl	%bx, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_7:
	movswl	%bx, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
LBB0_5:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_set_abs_params           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XTYPE_XBOXONE,4,2              ## @XTYPE_XBOXONE
	.no_dead_strip	_xpad_set_up_abs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpad_set_up_abs
_xpad_set_up_abs:                       ; @xpad_set_up_abs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_input_get_drvdata
	sub	w8, w19, #128
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #54
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #-32768
	mov	w3, #32767
	mov	w4, #16
	mov	w5, #128
	b	LBB0_10
LBB0_3:
	mov	w9, #9
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _XTYPE_XBOXONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XTYPE_XBOXONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	mov	w2, #0
	mov	w3, #1023
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #-1
	mov	w3, #1
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	mov	w2, #0
	mov	w3, #255
LBB0_9:
	mov	w4, #0
	mov	w5, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_set_abs_params
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XTYPE_XBOXONE,4,2              ; @XTYPE_XBOXONE
	.no_dead_strip	_xpad_set_up_abs
.subsections_via_symbols
