	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_send_rap_command_sync
_hidpp_send_rap_command_sync:           ## @hidpp_send_rap_command_sync
	.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	%r9d, %ebx
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_2
## %bb.3:
	cmpl	$130, %r15d
	jne	LBB0_5
## %bb.4:
	movq	_HIDPP_REPORT_LONG_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rax
	jmp	LBB0_8
LBB0_2:
	movq	_HIDPP_REPORT_SHORT_LENGTH@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addl	$-4, %eax
	cmpl	%ebx, %eax
	jge	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_9:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	movl	%r15d, (%rax)
	movl	%r13d, 4(%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	addq	$12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	16(%rbp), %rdx
	callq	_hidpp_send_message_sync
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_REPORT_SHORT_LENGTH,4,2  ## @HIDPP_REPORT_SHORT_LENGTH
	.comm	_HIDPP_REPORT_LONG_LENGTH,4,2   ## @HIDPP_REPORT_LONG_LENGTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hidpp_send_rap_command_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_send_rap_command_sync
_hidpp_send_rap_command_sync:           ; @hidpp_send_rap_command_sync
	.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	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w25, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w25, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _HIDPP_REPORT_LONG_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_REPORT_LONG_LENGTH@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x8, x21
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _HIDPP_REPORT_SHORT_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HIDPP_REPORT_SHORT_LENGTH@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	sub	w8, w8, #4
	cmp	w8, w20
	b.ge	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x26, x0
	stp	w25, w24, [x0], #12
	str	w23, [x26, #8]
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	mov	x0, x21
	mov	x1, x26
	mov	x2, x19
	bl	_hidpp_send_message_sync
	mov	x19, x0
	mov	x0, x26
	bl	_kfree
	mov	x0, x19
LBB0_11:
	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
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_REPORT_SHORT_LENGTH,4,2  ; @HIDPP_REPORT_SHORT_LENGTH
	.comm	_HIDPP_REPORT_LONG_LENGTH,4,2   ; @HIDPP_REPORT_LONG_LENGTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hidpp_send_rap_command_sync
.subsections_via_symbols
