	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ishtp_raw_request
_ishtp_raw_request:                     ## @ishtp_raw_request
	.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	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	cmpb	%r8b, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	$0, (%rax)
	cmpl	$128, %r9d
	je	LBB0_6
## %bb.4:
	cmpl	$129, %r9d
	jne	LBB0_9
## %bb.5:
	movq	%r12, 24(%rax)
	movq	%rbx, 8(%rax)
	movl	$1, 16(%rax)
	movzbl	%r15b, %esi
	movzbl	%r8b, %edx
	movq	%r14, %rdi
	callq	_hid_ishtp_get_report
	jmp	LBB0_9
LBB0_6:
	leaq	11(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	leaq	4(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	4(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movzbl	%r15b, %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_hid_ishtp_set_feature
	movq	%r13, %rdi
	callq	_kfree
LBB0_9:
	movq	%r14, %rdi
	callq	_hid_hw_wait
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ## @HID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ishtp_raw_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ishtp_raw_request
_ishtp_raw_request:                     ; @ishtp_raw_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_3:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	str	wzr, [x8]
	cmp	w5, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w5, #129
	b.ne	LBB0_8
; %bb.5:
	str	x22, [x8, #24]
	str	x19, [x8, #8]
	mov	w9, #1
	str	w9, [x8, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x4
	bl	_hid_ishtp_get_report
	b	LBB0_8
LBB0_6:
	add	x0, x19, #11
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	add	x24, x19, #4
	add	w0, w23, #4
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	bl	_hid_ishtp_set_feature
	mov	x0, x23
	bl	_kfree
LBB0_8:
	mov	x0, x20
	bl	_hid_hw_wait
LBB0_9:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_OUTPUT_REPORT,1,0          ; @HID_OUTPUT_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ishtp_raw_request
.subsections_via_symbols
