	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_mgmt_init_sys            ## -- Begin function hidma_mgmt_init_sys
	.p2align	4, 0x90
_hidma_mgmt_init_sys:                   ## @hidma_mgmt_init_sys
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %esi
	shll	$3, %esi
	movq	16(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_devm_kmalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_kobject_create_and_add
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r12
	leaq	-80(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$20, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_kobject_create_and_add
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_6:
	movq	_hidma_mgmt_files@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_create_sysfs_entry
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_10:
	cmpl	$0, (%r14)
	je	LBB0_20
## %bb.11:
	xorl	%ebx, %ebx
	movq	_S_IRUGO@GOTPCREL(%rip), %r13
	movq	_S_IWUGO@GOTPCREL(%rip), %r12
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	orl	(%r13), %edx
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_create_sysfs_entry_channel
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edx
	orl	(%r13), %edx
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r8
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	callq	_create_sysfs_entry_channel
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	negl	%eax
	jmp	LBB0_17
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chanops"

L_.str.1:                               ## @.str.1
	.asciz	"chan%d"

	.comm	_hidma_mgmt_files,8,3           ## @hidma_mgmt_files
L_.str.2:                               ## @.str.2
	.asciz	"priority"

	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_S_IWUGO,4,2                    ## @S_IWUGO
L_.str.3:                               ## @.str.3
	.asciz	"weight"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidma_mgmt_init_sys            ; -- Begin function hidma_mgmt_init_sys
	.p2align	2
_hidma_mgmt_init_sys:                   ; @hidma_mgmt_init_sys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0]
	lsl	w1, w8, #3
	ldr	x0, [x0, #16]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_devm_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.1:
	ldr	x1, [x19, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kobject_create_and_add
	cbz	x0, LBB0_16
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x21, #0
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	mov	w1, #20
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	add	x0, sp, #4
	mov	x1, x20
	bl	_kobject_create_and_add
	ldr	x8, [x19, #8]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_6:
Lloh12:
	adrp	x20, _hidma_mgmt_files@GOTPAGE
Lloh13:
	ldr	x20, [x20, _hidma_mgmt_files@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_create_sysfs_entry
	cbnz	w0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x22, w0, uxtw
	b.lo	LBB0_8
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.11:
	mov	x20, #0
Lloh14:
	adrp	x23, _S_IRUGO@GOTPAGE
Lloh15:
	ldr	x23, [x23, _S_IRUGO@GOTPAGEOFF]
Lloh16:
	adrp	x24, _S_IWUGO@GOTPAGE
Lloh17:
	ldr	x24, [x24, _S_IWUGO@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str.2@PAGE
Lloh19:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh20:
	adrp	x22, l_.str.3@PAGE
Lloh21:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	ldr	x8, [x19, #8]
	ldr	x4, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_create_sysfs_entry_channel
	cbnz	w0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	ldr	x8, [x19, #8]
	ldr	x4, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	bl	_create_sysfs_entry_channel
	cbnz	w0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_12
LBB0_15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
LBB0_17:
	neg	w0, w8
LBB0_18:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	ldr	w8, [x23]
	b	LBB0_17
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chanops"

l_.str.1:                               ; @.str.1
	.asciz	"chan%d"

	.comm	_hidma_mgmt_files,8,3           ; @hidma_mgmt_files
l_.str.2:                               ; @.str.2
	.asciz	"priority"

	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_S_IWUGO,4,2                    ; @S_IWUGO
l_.str.3:                               ; @.str.3
	.asciz	"weight"

.subsections_via_symbols
