	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_mknod                  ## -- Begin function generic_mknod
	.p2align	4, 0x90
_generic_mknod:                         ## @generic_mknod
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	__EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.5:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_AT_PWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_N_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %rax
	movq	_N_PARENT_DIR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_path_normalize
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	%r13, %rdi
	callq	_find_mount_and_trim_path
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.9:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	*%rbx
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_10:
	movl	%r12d, %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	%r12d, %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	je	LBB0_7
LBB0_12:
	movq	__EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	__EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_mount_release
LBB0_16:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	__EPERM,4,2                     ## @_EPERM
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_AT_PWD,4,2                     ## @AT_PWD
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ## @N_SYMLINK_NOFOLLOW
	.comm	_N_PARENT_DIR_WRITE,4,2         ## @N_PARENT_DIR_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_mknod                  ; -- Begin function generic_mknod
	.p2align	2
_generic_mknod:                         ; @generic_mknod
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_S_ISDIR
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_S_ISLNK
	cbz	x0, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, __EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w21, [x8]
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
	mov	x0, x21
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_superuser
	cbz	w0, LBB0_10
LBB0_7:
	mov	x24, sp
Lloh8:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh13:
	adrp	x8, _AT_PWD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AT_PWD@GOTPAGEOFF]
Lloh15:
	adrp	x9, _N_SYMLINK_NOFOLLOW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _N_SYMLINK_NOFOLLOW@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _N_PARENT_DIR_WRITE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _N_PARENT_DIR_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, x21
	mov	x2, x22
	bl	_path_normalize
	tbnz	w0, #31, LBB0_13
; %bb.8:
	mov	x0, x22
	bl	_find_mount_and_trim_path
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.9:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	blr	x8
	mov	x21, x0
	b	LBB0_15
LBB0_10:
	mov	x0, x20
	bl	_S_ISBLK
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_S_ISCHR
	cbz	x0, LBB0_7
LBB0_12:
Lloh22:
	adrp	x8, __EPERM@GOTPAGE
Lloh23:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	mov	x21, x0
	b	LBB0_16
LBB0_14:
Lloh24:
	adrp	x8, __EPERM@GOTPAGE
Lloh25:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
LBB0_15:
	mov	x0, x23
	bl	_mount_release
LBB0_16:
	mov	sp, x24
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	__EPERM,4,2                     ; @_EPERM
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_AT_PWD,4,2                     ; @AT_PWD
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ; @N_SYMLINK_NOFOLLOW
	.comm	_N_PARENT_DIR_WRITE,4,2         ; @N_PARENT_DIR_WRITE
.subsections_via_symbols
