	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_disk_node                ## -- Begin function alloc_disk_node
	.p2align	4, 0x90
_alloc_disk_node:                       ## @alloc_disk_node
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$24, %edi
	movl	%r15d, %edx
	callq	_kmalloc_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	12(%rax), %r12
	movq	%r12, %rdi
	callq	_init_part_stats
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_disk_expand_part_tbl
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_free_part_stats
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%r12, (%rax)
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_rand_initialize_disk
	movq	%rbx, %rdi
	callq	_disk_to_dev
	movq	_block_class@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%rbx, %rdi
	callq	_disk_to_dev
	movq	_disk_type@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	callq	_disk_to_dev
	movq	%rax, %rdi
	callq	_device_initialize
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_media_change_notify_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_block_class,4,2                ## @block_class
	.comm	_disk_type,4,2                  ## @disk_type
	.comm	_media_change_notify_thread,4,2 ## @media_change_notify_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_disk_node                ; -- Begin function alloc_disk_node
	.p2align	2
_alloc_disk_node:                       ; @alloc_disk_node
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w0, #24
	mov	x2, x21
	bl	_kmalloc_node
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x22, x19, #12
	mov	x0, x22
	bl	_init_part_stats
	cbz	w0, LBB0_4
; %bb.2:
	str	w21, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_disk_expand_part_tbl
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_free_part_stats
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x22, [x8]
	str	w20, [x19, #4]
	mov	x0, x19
	bl	_rand_initialize_disk
	mov	x0, x19
	bl	_disk_to_dev
Lloh6:
	adrp	x8, _block_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _block_class@GOTPAGEOFF]
	str	x8, [x0, #8]
	mov	x0, x19
	bl	_disk_to_dev
Lloh8:
	adrp	x8, _disk_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _disk_type@GOTPAGEOFF]
	str	x8, [x0]
	mov	x0, x19
	bl	_disk_to_dev
	bl	_device_initialize
	add	x0, x19, #8
Lloh10:
	adrp	x8, _media_change_notify_thread@GOTPAGE
Lloh11:
	ldr	x8, [x8, _media_change_notify_thread@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_block_class,4,2                ; @block_class
	.comm	_disk_type,4,2                  ; @disk_type
	.comm	_media_change_notify_thread,4,2 ; @media_change_notify_thread
.subsections_via_symbols
