	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_ide_entries
_make_ide_entries:                      ## @make_ide_entries
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_proc_ide_root@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_make_proc_ide
LBB0_2:
	movq	_proc_ide@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_proc_mkdir
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	movq	_S_IRUGO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	callq	_create_proc_entry
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	$0, 16(%rax)
	movq	_proc_ide_read_media@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	$0, (%rax)
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%rbx, %rcx
	callq	_snprintf
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_proc_symlink
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_proc_ide_root,8,3              ## @proc_ide_root
	.comm	_proc_ide,4,2                   ## @proc_ide
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"media"

	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_proc_ide_read_media,4,2        ## @proc_ide_read_media
L_.str.1:                               ## @.str.1
	.asciz	"ide0/%s"

	.no_dead_strip	_make_ide_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_ide_entries
_make_ide_entries:                      ; @make_ide_entries
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _proc_ide_root@GOTPAGE
Lloh4:
	ldr	x20, [x20, _proc_ide_root@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_make_proc_ide
LBB0_2:
Lloh5:
	adrp	x8, _proc_ide@GOTPAGE
Lloh6:
	ldr	x8, [x8, _proc_ide@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_proc_mkdir
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh8:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _S_IRUGO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S_IRUGO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_proc_entry
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x0, #16]
Lloh16:
	adrp	x8, _proc_ide_read_media@GOTPAGE
Lloh17:
	ldr	x8, [x8, _proc_ide_read_media@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	xzr, [x0]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	ldr	x1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_proc_symlink
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_proc_ide_root,8,3              ; @proc_ide_root
	.comm	_proc_ide,4,2                   ; @proc_ide
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"media"

	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_proc_ide_read_media,4,2        ; @proc_ide_read_media
l_.str.1:                               ; @.str.1
	.asciz	"ide0/%s"

	.no_dead_strip	_make_ide_entries
.subsections_via_symbols
