	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __hidinput_change_resolution_multipliers
___hidinput_change_resolution_multipliers: ## @__hidinput_change_resolution_multipliers
	.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	%rsi, %r14
	movl	(%rsi), %esi
	xorl	%r13d, %r13d
	testl	%esi, %esi
	je	LBB0_13
## %bb.1:
	movl	%edx, %r15d
	cmpl	$2, %esi
	jl	LBB0_3
## %bb.2:
	movq	%rdi, %r12
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_hid_hw_request
	movq	%r12, %rdi
	callq	_hid_hw_wait
	movl	(%r14), %esi
LBB0_3:
	testl	%esi, %esi
	jle	LBB0_13
## %bb.4:
	movq	8(%r14), %r8
	movq	_HID_GD_RESOLUTION_MULTIPLIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r9
	movslq	%esi, %rax
	cmpq	%rax, %r9
	jge	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%bl
	movq	(%r8,%r9,8), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	%bl, %dl
	movl	24(%rdi,%rdx,4), %r10d
	movq	16(%rdi), %rbx
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rdx
	movslq	%eax, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, (%rbx,%rdx,8)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%rdi), %rax
	movl	%r10d, (%rax,%rdx,4)
	movl	4(%rdi), %eax
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.comm	_HID_GD_RESOLUTION_MULTIPLIER,8,3 ## @HID_GD_RESOLUTION_MULTIPLIER
	.no_dead_strip	___hidinput_change_resolution_multipliers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __hidinput_change_resolution_multipliers
___hidinput_change_resolution_multipliers: ; @__hidinput_change_resolution_multipliers
	.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
	ldr	w13, [x1]
	cbz	w13, LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	cmp	w13, #1
	b.le	LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_hid_hw_request
	mov	x0, x21
	bl	_hid_hw_wait
	ldr	w13, [x20]
LBB0_3:
	cmp	w13, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x8, #0
	mov	w0, #0
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x10, _HID_GD_RESOLUTION_MULTIPLIER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_GD_RESOLUTION_MULTIPLIER@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #28
	mov	w12, #24
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x8, w13, sxtw
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x14, [x9, x8, lsl #3]
	cmp	w19, #0
	csel	x16, x12, x11, eq
	ldr	w15, [x14]
	cmp	w15, #1
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w15, [x14, #4]
	cmp	w15, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, #0
	ldr	w16, [x14, x16]
	ldr	x17, [x14, #16]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x13, x13, #1
	cmp	x13, w15, sxtw
	b.ge	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x17, x13, lsl #3]
	cmp	x1, x10
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x15, [x14, #8]
	str	w16, [x15, x13, lsl #2]
	ldr	w15, [x14, #4]
	mov	w0, #1
	b	LBB0_10
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.comm	_HID_GD_RESOLUTION_MULTIPLIER,8,3 ; @HID_GD_RESOLUTION_MULTIPLIER
	.no_dead_strip	___hidinput_change_resolution_multipliers
.subsections_via_symbols
