	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_get_valid_name
_dev_get_valid_name:                    ## @dev_get_valid_name
	.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	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_dev_valid_name
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_alloc_name_ns              ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___dev_get_by_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	cmpq	%r15, %rdi
	je	LBB0_9
## %bb.8:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.no_dead_strip	_dev_get_valid_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_get_valid_name
_dev_get_valid_name:                    ; @dev_get_valid_name
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_dev_valid_name
	cbz	w0, LBB0_6
; %bb.1:
	cbz	w22, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_dev_alloc_name_ns
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	___dev_get_by_name
	cbz	x0, LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	ldr	x0, [x20]
	cmp	x0, x19
	b.eq	LBB0_11
; %bb.10:
Lloh4:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_strlcpy
LBB0_11:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.no_dead_strip	_dev_get_valid_name
.subsections_via_symbols
