	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_bad_packet
_report_bad_packet:                     ## @report_bad_packet
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_ishtp_get_client_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cl_data_to_dev
	movl	%eax, %edi
	movl	(%r12), %edx
	movl	(%rbx), %r10d
	movl	4(%rbx), %ecx
	movl	%edx, %esi
	shrl	$16, %esi
	movl	%edx, %r11d
	shrl	$24, %r11d
	movq	_CMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%edx, %ebx
	movzbl	%dh, %eax
	movzbl	%sil, %r12d
	movzbl	%dl, %r9d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %r8d
	pushq	%rbx
	pushq	%r10
	pushq	%r14
	pushq	%r11
	pushq	%r12
	pushq	%rax
	callq	_dev_err
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[hid-ish]: BAD packet %02X\ntotal_bad=%u cur_pos=%u\n[%02X %02X %02X %02X]\npayload_len=%u\nmulti_packet_cnt=%u\nis_response=%02X\n"

	.comm	_CMD_MASK,4,2                   ## @CMD_MASK
	.no_dead_strip	_report_bad_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_bad_packet
_report_bad_packet:                     ; @report_bad_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_ishtp_get_client_data
	mov	x22, x0
	bl	_cl_data_to_dev
	ldr	w2, [x21]
	lsr	w8, w2, #24
	ldp	w9, w3, [x22]
Lloh0:
	adrp	x10, _CMD_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CMD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	bic	w10, w2, w10
	stp	w9, w10, [sp, #8]
	str	w19, [sp, #4]
	strb	w8, [sp]
	and	w5, w2, #0xff
	ubfx	w6, w2, #8, #8
	ubfx	w7, w2, #16, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x20
	bl	_dev_err
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[hid-ish]: BAD packet %02X\ntotal_bad=%u cur_pos=%u\n[%02X %02X %02X %02X]\npayload_len=%u\nmulti_packet_cnt=%u\nis_response=%02X\n"

	.comm	_CMD_MASK,4,2                   ; @CMD_MASK
	.no_dead_strip	_report_bad_packet
.subsections_via_symbols
