	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_unifying_init
_hidpp_unifying_init:                   ## @hidpp_unifying_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	-28(%rbp), %rsi
	callq	_hidpp_unifying_get_serial
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%r15), %rdi
	movl	8(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-28(%rbp), %r8
	movl	$8, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg_hid
	movq	%rbx, %rdi
	callq	_hidpp_unifying_get_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movslq	12(%r15), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dbg_hid
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x-%4phD"

L_.str.1:                               ## @.str.1
	.asciz	"HID++ Unifying: Got serial: %s\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"HID++ Unifying: Got name: %s\n"

	.no_dead_strip	_hidpp_unifying_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_unifying_init
_hidpp_unifying_init:                   ; @hidpp_unifying_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0]
	add	x21, sp, #28
	add	x1, sp, #28
	bl	_hidpp_unifying_get_serial
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x0, [x20]
	ldr	w8, [x20, #8]
	stp	x8, x21, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #8
	bl	_snprintf
	ldr	x1, [x20]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg_hid
	mov	x0, x19
	bl	_hidpp_unifying_get_name
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	ldrsw	x0, [x20, #12]
	str	x19, [sp]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_dbg_hid
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x-%4phD"

l_.str.1:                               ; @.str.1
	.asciz	"HID++ Unifying: Got serial: %s\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"HID++ Unifying: Got name: %s\n"

	.no_dead_strip	_hidpp_unifying_init
.subsections_via_symbols
