	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_create
_dev_create:                            ## @dev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_DM_ANY_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%rsi), %edi
	callq	_check_name
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_DM_PERSISTENT_DEV_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	movl	20(%r14), %edi
	callq	_huge_decode_dev
	movl	%eax, %edi
	callq	_MINOR
	movl	%eax, %r15d
LBB0_3:
	leaq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_dm_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	movq	(%rsi), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rsi
	movq	-32(%rbp), %rdx
	callq	_dm_hash_insert
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_dm_put
	movq	-32(%rbp), %rdi
	callq	_dm_destroy
	jmp	LBB0_7
LBB0_6:
	movq	_DM_INACTIVE_PRESENT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	___dev_status
	movq	-32(%rbp), %rdi
	callq	_dm_put
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_ANY_MINOR,4,2               ## @DM_ANY_MINOR
	.comm	_DM_PERSISTENT_DEV_FLAG,4,2     ## @DM_PERSISTENT_DEV_FLAG
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ## @DM_INACTIVE_PRESENT_FLAG
	.no_dead_strip	_dev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_create
_dev_create:                            ; @dev_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _DM_ANY_MINOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_ANY_MINOR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x1, #16]
	bl	_check_name
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _DM_PERSISTENT_DEV_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_PERSISTENT_DEV_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_huge_decode_dev
	bl	_MINOR
	mov	x21, x0
LBB0_3:
	add	x1, sp, #8
	mov	x0, x21
	bl	_dm_create
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x1, xzr, x8, eq
	ldr	x2, [sp, #8]
	bl	_dm_hash_insert
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_dm_put
	ldr	x0, [sp, #8]
	bl	_dm_destroy
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	___dev_status
	ldr	x0, [sp, #8]
	bl	_dm_put
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_ANY_MINOR,4,2               ; @DM_ANY_MINOR
	.comm	_DM_PERSISTENT_DEV_FLAG,4,2     ; @DM_PERSISTENT_DEV_FLAG
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ; @DM_INACTIVE_PRESENT_FLAG
	.no_dead_strip	_dev_create
.subsections_via_symbols
