	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elecom_report_fixup
_elecom_report_fixup:                   ## @elecom_report_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %eax
	leal	-131(%rax), %ecx
	cmpl	$4, %ecx
	jb	LBB0_8
## %bb.1:
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.7:
	movl	(%rdx), %edx
	movq	%rbx, %rsi
	movl	$6, %ecx
	jmp	LBB0_9
LBB0_8:
	movl	(%rdx), %edx
	movq	%rbx, %rsi
	movl	$8, %ecx
LBB0_9:
	callq	_mouse_button_fixup
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	cmpl	$135, %eax
	jne	LBB0_10
## %bb.3:
	cmpl	$48, (%rdx)
	jb	LBB0_10
## %bb.4:
	cmpl	$5, 184(%rbx)
	jne	LBB0_10
## %bb.5:
	cmpl	$12, 188(%rbx)
	jne	LBB0_10
## %bb.6:
	leaq	L_.str(%rip), %rsi
	callq	_hid_info
	movl	$0, 188(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fixing up Elecom BM084 report descriptor\n"

	.no_dead_strip	_elecom_report_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elecom_report_fixup
_elecom_report_fixup:                   ; @elecom_report_fixup
	.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
	ldr	w8, [x0]
	sub	w9, w8, #131
	cmp	w9, #4
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_6
; %bb.2:
	ldr	w2, [x2]
	mov	x1, x19
	mov	w3, #6
	b	LBB0_4
LBB0_3:
	ldr	w2, [x2]
	mov	x1, x19
	mov	w3, #8
LBB0_4:
	bl	_mouse_button_fixup
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	cmp	w8, #135
	b.ne	LBB0_5
; %bb.7:
	ldr	w8, [x2]
	cmp	w8, #48
	b.lo	LBB0_5
; %bb.8:
	ldr	w8, [x19, #184]
	cmp	w8, #5
	b.ne	LBB0_5
; %bb.9:
	ldr	w8, [x19, #188]
	cmp	w8, #12
	b.ne	LBB0_5
; %bb.10:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_info
	str	wzr, [x19, #188]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fixing up Elecom BM084 report descriptor\n"

	.no_dead_strip	_elecom_report_fixup
.subsections_via_symbols
