	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpmp_populate_dir
_bpmp_populate_dir:                     ## @bpmp_populate_dir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_seqbuf_eof
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	leaq	1(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	%ecx, %esi
	movq	-48(%rbp), %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	_debugfs_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file
	testq	%rax, %rax
	je	LBB0_22
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_seqbuf_eof
	testl	%eax, %eax
	jne	LBB0_1
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	callq	_seqbuf_read_u32
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, -72(%rbp)
	jl	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_seqbuf_read_u32
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_seqbuf_read_str
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax
	movq	_DEBUGFS_S_ISDIR@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_debugfs_create_dir
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_bpmp_populate_dir
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	movq	_DEBUGFS_S_IRUSR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	$0, %ecx
	andq	%rax, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_DEBUGFS_S_IWUSR@GOTPCREL(%rip), %rdx
	andq	(%rdx), %rax
	je	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_17:
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_18:
	movq	%rbx, %rdi
	movl	$-4, %esi
	callq	_seqbuf_seek
	jmp	LBB0_1
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_1:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DEBUGFS_S_ISDIR,8,3            ## @DEBUGFS_S_ISDIR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEBUGFS_S_IRUSR,8,3            ## @DEBUGFS_S_IRUSR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_DEBUGFS_S_IWUSR,8,3            ## @DEBUGFS_S_IWUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_debugfs_fops,4,2               ## @debugfs_fops
	.no_dead_strip	_bpmp_populate_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpmp_populate_dir
_bpmp_populate_dir:                     ; @bpmp_populate_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_seqbuf_eof
	cbz	w0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	add	x23, x20, #1
Lloh0:
	adrp	x25, _DEBUGFS_S_ISDIR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEBUGFS_S_ISDIR@GOTPAGEOFF]
Lloh2:
	adrp	x27, _S_IRUSR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _S_IRUSR@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DEBUGFS_S_IWUSR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DEBUGFS_S_IWUSR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _S_IWUSR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _S_IWUSR@GOTPAGEOFF]
Lloh8:
	adrp	x24, _debugfs_fops@GOTPAGE
Lloh9:
	ldr	x24, [x24, _debugfs_fops@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x9, _DEBUGFS_S_IRUSR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DEBUGFS_S_IRUSR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w10, [x27]
	tst	x9, x8
	csel	w9, wzr, w10, eq
	ldr	x10, [x28]
	ldr	w11, [x26]
	tst	x10, x8
	csel	w8, wzr, w11, eq
	orr	w1, w8, w9
	ldr	x0, [sp, #8]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	bl	_debugfs_create_file
	cbz	x0, LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_seqbuf_eof
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x19
	bl	_seqbuf_read_u32
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]
	cmp	x8, x20
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #16
	mov	x0, x19
	bl	_seqbuf_read_u32
	tbnz	w0, #31, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_seqbuf_read_str
	tbnz	w0, #31, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	tst	x9, x8
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_debugfs_create_dir
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	mov	x3, x23
	bl	_bpmp_populate_dir
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_14:
	mov	x0, x19
	mov	w1, #-4
	bl	_seqbuf_seek
	b	LBB0_1
LBB0_15:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DEBUGFS_S_ISDIR,8,3            ; @DEBUGFS_S_ISDIR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEBUGFS_S_IRUSR,8,3            ; @DEBUGFS_S_IRUSR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_DEBUGFS_S_IWUSR,8,3            ; @DEBUGFS_S_IWUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_debugfs_fops,4,2               ; @debugfs_fops
	.no_dead_strip	_bpmp_populate_dir
.subsections_via_symbols
