	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_namespace_io
_create_namespace_io:                   ## @create_namespace_io
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %edx
	movl	$2, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %r12
	addq	$24, %r12
	movq	_namespace_io_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	leaq	16(%r14), %rdi
	movq	%rdi, 24(%rbx)
	callq	_dev_name
	movl	%eax, 20(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, 8(%rbx)
	movq	%r12, (%r15)
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_namespace_io_device_type,4,2   ## @namespace_io_device_type
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.no_dead_strip	_create_namespace_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_namespace_io
_create_namespace_io:                   ; @create_namespace_io
	.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	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w2, [x21]
	mov	w0, #2
	mov	w1, #8
	bl	_kcalloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _namespace_io_device_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _namespace_io_device_type@GOTPAGEOFF]
	str	x8, [x20, #32]
	add	x0, x19, #16
	mov	x22, x20
	str	x0, [x22, #24]!
	bl	_dev_name
Lloh4:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #16]
	ldp	x9, x8, [x19]
	add	x9, x8, x9
	sub	x9, x9, #1
	stp	x8, x9, [x20]
	str	x22, [x21]
	b	LBB0_5
LBB0_3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_kfree
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_namespace_io_device_type,4,2   ; @namespace_io_device_type
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.no_dead_strip	_create_namespace_io
.subsections_via_symbols
