	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_cma_dev
_make_cma_dev:                          ## @make_cma_dev
	.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	%rsi, %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_filter_by_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cma_enum_devices_by_ibdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	8(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r12, %r13
	addq	$4, %r13
	leaq	L_.str(%rip), %rsi
	movq	_cma_ports_group_type@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	callq	_config_group_init_type_name
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_make_cma_ports
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	movq	_cma_device_group_type@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_config_group_init_type_name
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_configfs_add_default_group
	movq	%r14, %rdi
	callq	_cma_deref_dev
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_cma_deref_dev
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_filter_by_name,4,2             ## @filter_by_name
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ports"

	.comm	_cma_ports_group_type,4,2       ## @cma_ports_group_type
	.comm	_cma_device_group_type,4,2      ## @cma_device_group_type
	.no_dead_strip	_make_cma_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_cma_dev
_make_cma_dev:                          ; @make_cma_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _filter_by_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _filter_by_name@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cma_enum_devices_by_ibdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	add	x23, x19, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
Lloh11:
	adrp	x2, _cma_ports_group_type@GOTPAGE
Lloh12:
	ldr	x2, [x2, _cma_ports_group_type@GOTPAGEOFF]
	mov	x0, x23
	bl	_config_group_init_type_name
	mov	x0, x19
	mov	x1, x20
	bl	_make_cma_ports
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x2, _cma_device_group_type@GOTPAGE
Lloh14:
	ldr	x2, [x2, _cma_device_group_type@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_config_group_init_type_name
	mov	x0, x23
	mov	x1, x19
	bl	_configfs_add_default_group
	mov	x0, x20
	bl	_cma_deref_dev
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, #0
	neg	w22, w22
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x20
	bl	_cma_deref_dev
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_filter_by_name,4,2             ; @filter_by_name
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ports"

	.comm	_cma_ports_group_type,4,2       ; @cma_ports_group_type
	.comm	_cma_device_group_type,4,2      ; @cma_device_group_type
	.no_dead_strip	_make_cma_dev
.subsections_via_symbols
