	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_dev_add_device
_fs_dev_add_device:                     ## @fs_dev_add_device
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %rbx
	callq	_strlen
	leaq	41(%rax), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r14
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	addq	$40, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_strlen
	leaq	41(%rax), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rbx
	addq	$40, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%rbx, (%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r13)
	movq	_OS_MUTEX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_malloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %rdi
	callq	_OSInitMutex
	movq	_devops_fs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$40, %edx
	callq	_memcpy
	movq	%r12, 16(%r14)
	movq	%r13, 24(%r14)
	movq	_STD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$4, %eax
	jl	LBB0_9
## %bb.6:
	movq	_devoptab_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	movl	$3, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rcx,%rdx,8)
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
LBB0_9:
	movq	%r13, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	jmp	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_free
	movq	%r13, %rdi
LBB0_14:
	callq	_free
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r14, (%rcx,%rdx,8)
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OS_MUTEX_SIZE,8,3              ## @OS_MUTEX_SIZE
	.comm	_devops_fs,4,2                  ## @devops_fs
	.comm	_STD_MAX,4,2                    ## @STD_MAX
	.comm	_devoptab_list,8,3              ## @devoptab_list
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_fs_dev_add_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_dev_add_device
_fs_dev_add_device:                     ; @fs_dev_add_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
	bl	_strlen
	add	x0, x0, #41
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
	add	x21, x0, #40
	mov	x0, x21
	mov	x1, x20
	bl	_strcpy
	mov	x0, x24
	bl	_strlen
	add	x0, x0, #41
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	add	x25, x0, #40
	mov	x0, x25
	mov	x1, x24
	bl	_strcpy
	str	x25, [x20]
	stp	w23, w22, [x20, #8]
Lloh0:
	adrp	x8, _OS_MUTEX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OS_MUTEX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_malloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_12
; %bb.5:
	bl	_OSInitMutex
Lloh3:
	adrp	x1, _devops_fs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _devops_fs@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #40
	bl	_memcpy
	stp	x21, x20, [x19, #16]
Lloh5:
	adrp	x8, _STD_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STD_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	cmp	w10, #4
	b.lt	LBB0_9
; %bb.6:
Lloh8:
	adrp	x8, _devoptab_list@GOTPAGE
Lloh9:
	ldr	x8, [x8, _devoptab_list@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x8], #24
	sub	x10, x10, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	cmp	x11, x9
	b.eq	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #8
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_9:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
Lloh11:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_free
	mov	x0, x20
LBB0_13:
	bl	_free
LBB0_14:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #0
	str	x19, [x8]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OS_MUTEX_SIZE,8,3              ; @OS_MUTEX_SIZE
	.comm	_devops_fs,4,2                  ; @devops_fs
	.comm	_STD_MAX,4,2                    ; @STD_MAX
	.comm	_devoptab_list,8,3              ; @devoptab_list
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_fs_dev_add_device
.subsections_via_symbols
