	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_hid_get_raw_report
_i2c_hid_get_raw_report:                ## @i2c_hid_get_raw_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	2(%r13), %rdi
	movq	8(%r15), %rsi
	callq	_min
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpb	%bl, (%rcx)
	movq	%rax, %r12
	sete	%dl
	leal	(%rdx,%rdx), %esi
	incl	%esi
	movq	(%r15), %rcx
	movzbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	movq	%rax, %r8
	callq	_i2c_hid_get_report
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r15), %rcx
	movl	4(%rcx), %eax
	shll	$8, %eax
	orl	(%rcx), %eax
	xorl	%ebx, %ebx
	cmpl	$3, %eax
	jb	LBB0_6
## %bb.5:
	movslq	%eax, %rdi
	movq	%r12, %rsi
	callq	_min
	leaq	-2(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %rbx
	movq	(%r15), %rsi
	addq	$8, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_memcpy
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ## @HID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HID_FEATURE_REPORT,1,0         ## @HID_FEATURE_REPORT
	.no_dead_strip	_i2c_hid_get_raw_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_hid_get_raw_report
_i2c_hid_get_raw_report:                ; @i2c_hid_get_raw_report
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	ldr	x25, [x0]
	mov	x0, x25
	bl	_i2c_get_clientdata
Lloh0:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_2:
	mov	x21, x0
	add	x0, x20, #2
	ldr	x1, [x21, #8]
	bl	_min
	mov	x23, x0
Lloh5:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w24
	mov	w8, #3
	csinc	w1, w8, wzr, eq
	ldr	x3, [x21]
	mov	x0, x25
	mov	x2, x22
	mov	x4, x23
	bl	_i2c_hid_get_report
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldp	w9, w8, [x8]
	orr	w8, w9, w8, lsl #8
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	sxtw	x0, w8
	mov	x1, x23
	bl	_min
	sub	x1, x0, #2
	mov	x0, x20
	bl	_min
	mov	x22, x0
	ldr	x8, [x21]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ; @HID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HID_FEATURE_REPORT,1,0         ; @HID_FEATURE_REPORT
	.no_dead_strip	_i2c_hid_get_raw_report
.subsections_via_symbols
