	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_unifying_get_name
_hidpp_unifying_get_name:               ## @hidpp_unifying_get_name
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_HIDPP_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HIDPP_GET_LONG_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HIDPP_REG_PAIRING_INFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-20(%rbp), %r8
	movl	$1, %r9d
	callq	_hidpp_send_rap_command_sync
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	-40(%rbp), %rax
	movl	4(%rax), %ebx
	leal	-7(%rbx), %eax
	cmpl	$-3, %eax
	jb	LBB0_6
## %bb.4:
	leal	1(%rbx), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rsi
	addq	$8, %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	-32(%rbp), %rdi
	movl	%r14d, %esi
	callq	_hidpp_prefix_name
	movq	-32(%rbp), %rax
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_DEVICE_NAME,4,2          ## @HIDPP_DEVICE_NAME
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ## @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_GET_LONG_REGISTER,4,2    ## @HIDPP_GET_LONG_REGISTER
	.comm	_HIDPP_REG_PAIRING_INFORMATION,4,2 ## @HIDPP_REG_PAIRING_INFORMATION
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_hidpp_unifying_get_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_unifying_get_name
_hidpp_unifying_get_name:               ; @hidpp_unifying_get_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _HIDPP_DEVICE_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_DEVICE_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HIDPP_GET_LONG_REGISTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIDPP_GET_LONG_REGISTER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _HIDPP_REG_PAIRING_INFORMATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HIDPP_REG_PAIRING_INFORMATION@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x4, sp, #20
	add	x6, sp, #24
	mov	w5, #1
	bl	_hidpp_send_rap_command_sync
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w20, [x8, #4]
	sub	w8, w20, #7
	cmn	w8, #3
	b.hs	LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	add	w19, w20, #1
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kzalloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.5:
	ldr	x8, [sp, #24]
	add	x1, x8, #8
	mov	x2, x20
	bl	_memcpy
	add	x0, sp, #8
	mov	x1, x19
	bl	_hidpp_prefix_name
	ldr	x0, [sp, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_DEVICE_NAME,4,2          ; @HIDPP_DEVICE_NAME
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ; @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_GET_LONG_REGISTER,4,2    ; @HIDPP_GET_LONG_REGISTER
	.comm	_HIDPP_REG_PAIRING_INFORMATION,4,2 ; @HIDPP_REG_PAIRING_INFORMATION
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_hidpp_unifying_get_name
.subsections_via_symbols
