	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp10_set_register
_hidpp10_set_register:                  ## @hidpp10_set_register
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HIDPP_GET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hidpp_send_rap_command_sync
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-88(%rbp), %esi
	leaq	-80(%rbp), %rdi
	movl	$3, %edx
	callq	_memcpy
	movq	-80(%rbp,%r12,8), %rax
	xorq	%rax, %rbx
	andq	%r13, %rbx
	xorq	%rax, %rbx
	movq	%rbx, -80(%rbp,%r12,8)
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HIDPP_SET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rcx
	leaq	-80(%rbp), %r8
	movl	$3, %r9d
	callq	_hidpp_send_rap_command_sync
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ## @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_GET_REGISTER,4,2         ## @HIDPP_GET_REGISTER
	.comm	_HIDPP_SET_REGISTER,4,2         ## @HIDPP_SET_REGISTER
	.no_dead_strip	_hidpp10_set_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp10_set_register
_hidpp10_set_register:                  ; @hidpp10_set_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
Lloh3:
	adrp	x24, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _HIDPP_GET_REGISTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HIDPP_GET_REGISTER@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x6, sp, #8
	mov	x3, x19
	mov	x4, #0
	mov	w5, #0
	bl	_hidpp_send_rap_command_sync
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #8]
	add	x25, sp, #16
	add	x0, sp, #16
	mov	w2, #3
	bl	_memcpy
	lsl	x8, x23, #3
	ldr	x9, [x25, x8]
	bic	x9, x9, x22
	and	x10, x21, x22
	orr	x9, x9, x10
	str	x9, [x25, x8]
	ldr	w1, [x24]
Lloh8:
	adrp	x8, _HIDPP_SET_REGISTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HIDPP_SET_REGISTER@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x4, sp, #16
	add	x6, sp, #8
	mov	x0, x20
	mov	x3, x19
	mov	w5, #3
	bl	_hidpp_send_rap_command_sync
LBB0_2:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ; @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_GET_REGISTER,4,2         ; @HIDPP_GET_REGISTER
	.comm	_HIDPP_SET_REGISTER,4,2         ; @HIDPP_SET_REGISTER
	.no_dead_strip	_hidpp10_set_register
.subsections_via_symbols
