	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_calculate_multiplier
_hid_calculate_multiplier:              ## @hid_calculate_multiplier
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rsi), %edx
	movl	12(%rsi), %ecx
	movl	$1, %r15d
	subl	%edx, %ecx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rsi), %r12d
	movl	16(%rsi), %esi
	movq	(%rbx), %rax
	movl	(%rax), %eax
	subl	%edx, %eax
	cltd
	idivl	%ecx
	subl	%esi, %r12d
	imull	%eax, %r12d
	addl	%esi, %r12d
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_warn
LBB0_3:
	testl	%r12d, %r12d
	sete	%al
	leal	-256(%r12), %ecx
	cmpl	$-511, %ecx                     ## imm = 0xFE01
	setb	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_hid_warn
	jmp	LBB0_6
LBB0_4:
	movl	%r12d, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported Resolution Multiplier unit exponent %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"unsupported Resolution Multiplier %d\n"

	.no_dead_strip	_hid_calculate_multiplier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_calculate_multiplier
_hid_calculate_multiplier:              ; @hid_calculate_multiplier
	.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
	ldp	w8, w9, [x1, #8]
	subs	w9, w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldp	w11, w10, [x1, #16]
	ldr	x12, [x1]
	ldr	w12, [x12]
	sub	w8, w12, w8
	sdiv	w8, w8, w9
	sub	w9, w10, w11
	madd	w19, w8, w9, w11
	ldr	x8, [x1, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x21, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_warn
LBB0_3:
	sub	w8, w19, #256
	cmp	w19, #0
	mov	w9, #-511
	ccmp	w8, w9, #0, ne
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_hid_warn
LBB0_5:
	mov	w19, #1
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported Resolution Multiplier unit exponent %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"unsupported Resolution Multiplier %d\n"

	.no_dead_strip	_hid_calculate_multiplier
.subsections_via_symbols
