	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_create_port_fs
_cm_create_port_fs:                     ## @cm_create_port_fs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rdx
	movl	16(%rdi), %r8d
	movq	_cm_port_obj_type@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_1
## %bb.11:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_CM_COUNTER_GROUPS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	movq	_counter_group_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %r8d
	movq	_cm_counter_obj_type@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	leaq	L_.str.1(%rip), %rcx
	callq	_kobject_init_and_add
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_CM_COUNTER_GROUPS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	decl	%r15d
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r13d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	callq	_kobject_put
	addq	$-4, %rbx
	cmpq	$-4, %rbx
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_kobject_put
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_port_obj_type,4,2           ## @cm_port_obj_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_CM_COUNTER_GROUPS,4,2          ## @CM_COUNTER_GROUPS
	.comm	_cm_counter_obj_type,4,2        ## @cm_counter_obj_type
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_counter_group_names,8,3        ## @counter_group_names
	.no_dead_strip	_cm_create_port_fs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_create_port_fs
_cm_create_port_fs:                     ; @cm_create_port_fs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x2, [x8]
	ldr	w4, [x0, #16]
Lloh0:
	adrp	x1, _cm_port_obj_type@GOTPAGE
Lloh1:
	ldr	x1, [x1, _cm_port_obj_type@GOTPAGEOFF]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	bl	_kobject_init_and_add
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_2:
Lloh4:
	adrp	x23, _CM_COUNTER_GROUPS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CM_COUNTER_GROUPS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w25, #0
	mov	x24, #0
	mov	x26, #0
Lloh6:
	adrp	x27, _counter_group_names@GOTPAGE
Lloh7:
	ldr	x27, [x27, _counter_group_names@GOTPAGEOFF]
Lloh8:
	adrp	x21, _cm_counter_obj_type@GOTPAGE
Lloh9:
	ldr	x21, [x21, _cm_counter_obj_type@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	ldr	x8, [x27]
	ldr	w4, [x8, x24]
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	bl	_kobject_init_and_add
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	sub	w25, w25, #1
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w20, #0
	b	LBB0_11
LBB0_7:
	mov	x20, x0
	cbz	w25, LBB0_10
; %bb.8:
	sub	x21, x24, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_kobject_put
	sub	x21, x21, #4
	cmn	x21, #4
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_kobject_put
LBB0_11:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_port_obj_type,4,2           ; @cm_port_obj_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_CM_COUNTER_GROUPS,4,2          ; @CM_COUNTER_GROUPS
	.comm	_cm_counter_obj_type,4,2        ; @cm_counter_obj_type
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_counter_group_names,8,3        ; @counter_group_names
	.no_dead_strip	_cm_create_port_fs
.subsections_via_symbols
