	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logi_dj_recv_query_hidpp_devices
_logi_dj_recv_query_hidpp_devices:      ## @logi_dj_recv_query_hidpp_devices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_logi_dj_recv_query_hidpp_devices.template(%rip), %rdi
	movl	$28, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$128, %esi
	movq	%rbx, %rdx
	movl	$28, %ecx
	callq	_hid_hw_raw_request
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	sarl	$31, %eax
	andl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @logi_dj_recv_query_hidpp_devices.template
_logi_dj_recv_query_hidpp_devices.template:
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	132                             ## 0x84
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.no_dead_strip	_logi_dj_recv_query_hidpp_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logi_dj_recv_query_hidpp_devices
_logi_dj_recv_query_hidpp_devices:      ; @logi_dj_recv_query_hidpp_devices
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, _logi_dj_recv_query_hidpp_devices.template@PAGE
Lloh4:
	add	x0, x0, _logi_dj_recv_query_hidpp_devices.template@PAGEOFF
	mov	w1, #28
	bl	_kmemdup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	w1, #128
	mov	x2, x19
	mov	w3, #28
	bl	_hid_hw_raw_request
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @logi_dj_recv_query_hidpp_devices.template
_logi_dj_recv_query_hidpp_devices.template:
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	132                             ; 0x84
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.no_dead_strip	_logi_dj_recv_query_hidpp_devices
.subsections_via_symbols
