	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp_get_device_name
_hidpp_get_device_name:                 ## @hidpp_get_device_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_HIDPP_PAGE_GET_DEVICE_NAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_hidpp_root_get_feature
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movl	-32(%rbp), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_hidpp_devicenametype_get_count
	testl	%eax, %eax
	je	LBB0_4
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-28(%rbp), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movl	-28(%rbp), %r8d
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.6:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-32(%rbp), %esi
	movl	%ebx, %ecx
	addq	%r14, %rcx
	subl	%ebx, %r8d
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_hidpp_devicenametype_get_device_name
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	%eax, %ebx
	movl	-28(%rbp), %r8d
	cmpl	%ebx, %r8d
	ja	LBB0_7
## %bb.9:
	incl	%r8d
	jmp	LBB0_12
LBB0_11:
	movl	$1, %r8d
LBB0_12:
	leaq	-40(%rbp), %rdi
	movl	%r8d, %esi
	callq	_hidpp_prefix_name
	movq	-40(%rbp), %rax
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HIDPP_PAGE_GET_DEVICE_NAME_TYPE,4,2 ## @HIDPP_PAGE_GET_DEVICE_NAME_TYPE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_hidpp_get_device_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp_get_device_name
_hidpp_get_device_name:                 ; @hidpp_get_device_name
	.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
Lloh0:
	adrp	x8, _HIDPP_PAGE_GET_DEVICE_NAME_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDPP_PAGE_GET_DEVICE_NAME_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #28
	bl	_hidpp_root_get_feature
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #24]
	add	x2, sp, #20
	mov	x0, x19
	bl	_hidpp_devicenametype_get_count
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	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
LBB0_4:
	ldr	w8, [sp, #20]
	add	w0, w8, #1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.5:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x20, x0
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #24]
	add	x3, x20, w21, uxtw
	sub	w4, w8, w21
	mov	x0, x19
	mov	x2, x21
	bl	_hidpp_devicenametype_get_device_name
	cmp	w0, #0
	b.le	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #20]
	add	w21, w0, w21
	cmp	w8, w21
	b.hi	LBB0_7
; %bb.9:
	add	w1, w8, #1
	b	LBB0_11
LBB0_10:
	mov	w1, #1
LBB0_11:
	add	x0, sp, #8
	bl	_hidpp_prefix_name
	ldr	x0, [sp, #8]
	b	LBB0_3
LBB0_12:
	mov	x0, x20
	bl	_kfree
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HIDPP_PAGE_GET_DEVICE_NAME_TYPE,4,2 ; @HIDPP_PAGE_GET_DEVICE_NAME_TYPE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_hidpp_get_device_name
.subsections_via_symbols
