	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_unifying_get_serial
_hidpp_unifying_get_serial:             ## @hidpp_unifying_get_serial
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_HIDPP_EXTENDED_PAIRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%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	-24(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-12(%rbp), %r8
	movl	$1, %r9d
	callq	_hidpp_send_rap_command_sync
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_EXTENDED_PAIRING,4,2     ## @HIDPP_EXTENDED_PAIRING
	.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
	.no_dead_strip	_hidpp_unifying_get_serial
.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_serial
_hidpp_unifying_get_serial:             ; @hidpp_unifying_get_serial
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _HIDPP_EXTENDED_PAIRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_EXTENDED_PAIRING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]
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, #4
	add	x6, sp, #8
	mov	w5, #1
	bl	_hidpp_send_rap_command_sync
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #4]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_EXTENDED_PAIRING,4,2     ; @HIDPP_EXTENDED_PAIRING
	.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
	.no_dead_strip	_hidpp_unifying_get_serial
.subsections_via_symbols
