	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function devcgroup_create
_devcgroup_create:                      ## @devcgroup_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.6:
	callq	_cgroup_to_devcgroup
	movq	%rax, %r15
	movq	_devcgroup_mutex@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_dev_exceptions_copy
	movl	%eax, %ebx
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.7:
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	_DEVCG_DEFAULT_ALLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEVCG_DEFAULT_ALLOW,4,2        ## @DEVCG_DEFAULT_ALLOW
	.comm	_devcgroup_mutex,4,2            ## @devcgroup_mutex
	.no_dead_strip	_devcgroup_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function devcgroup_create
_devcgroup_create:                      ; @devcgroup_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	ldr	x0, [x21]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_cgroup_to_devcgroup
	mov	x21, x0
Lloh3:
	adrp	x22, _devcgroup_mutex@GOTPAGE
Lloh4:
	ldr	x22, [x22, _devcgroup_mutex@GOTPAGEOFF]
	mov	x0, x22
	bl	_mutex_lock
	add	x1, x21, #8
	mov	x0, x20
	bl	_dev_exceptions_copy
	mov	x20, x0
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_mutex_unlock
	cbz	w20, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_6:
Lloh8:
	adrp	x8, _DEVCG_DEFAULT_ALLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEVCG_DEFAULT_ALLOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEVCG_DEFAULT_ALLOW,4,2        ; @DEVCG_DEFAULT_ALLOW
	.comm	_devcgroup_mutex,4,2            ; @devcgroup_mutex
	.no_dead_strip	_devcgroup_create
.subsections_via_symbols
