	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __opendir_common
___opendir_common:                      ## @__opendir_common
	.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
	movl	%edx, %r14d
	movl	%esi, %r13d
	movl	%edi, %r15d
	movl	$88, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	$0, 24(%rax)
	movl	%r15d, (%rax)
	movl	%r13d, 4(%rax)
	addq	$72, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	%rax, 48(%rbx)
	leaq	80(%rbx), %rdi
	callq	_LIST_INIT
	movq	48(%rbx), %rax
	movq	$0, (%rax)
	movq	$0, 40(%rbx)
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %ecx
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	testl	%edx, %edx
	cmovel	%ecx, %r12d
	movq	_DTF_NODUP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.2:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	__fstatfs
	testq	%rax, %rax
	js	LBB0_13
## %bb.3:
	movl	-44(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_MNT_UNION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	jne	LBB0_5
LBB0_8:
	movl	%r12d, 8(%rbx)
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.10:
	movl	(%rbx), %edi
	movl	8(%rbx), %edx
	movq	%rbx, %rcx
	addq	$32, %rcx
	movq	%rax, %rsi
	callq	__getdirentries
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	js	LBB0_11
## %bb.15:
	movq	___DTF_SKIPREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	__filldir
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movq	___DTF_READALL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_17
LBB0_16:
	movq	$0, 16(%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_17
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.12:
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	24(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movl	%r15d, (%r14)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRBLKSIZ,4,2                  ## @DIRBLKSIZ
	.comm	_DTF_NODUP,4,2                  ## @DTF_NODUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unionfs"

	.comm	_MNT_UNION,4,2                  ## @MNT_UNION
	.comm	___DTF_READALL,4,2              ## @__DTF_READALL
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	___DTF_SKIPREAD,4,2             ## @__DTF_SKIPREAD
	.no_dead_strip	___opendir_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __opendir_common
___opendir_common:                      ; @__opendir_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #88
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.1:
	str	xzr, [x19, #24]
	stp	w21, w22, [x19]
	add	x8, x19, #72
	stp	xzr, xzr, [x19, #56]
	add	x0, x19, #80
	str	x8, [x19, #48]
	bl	_LIST_INIT
	ldr	x8, [x19, #48]
	str	xzr, [x8]
	str	xzr, [x19, #40]
	bl	_getpagesize
Lloh0:
	adrp	x8, _DIRBLKSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIRBLKSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	cmp	w9, #0
	csel	w23, w0, w8, eq
Lloh3:
	adrp	x8, _DTF_NODUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DTF_NODUP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x21
	bl	__fstatfs
	tbnz	x0, #63, LBB0_15
; %bb.3:
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x9, _MNT_UNION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MNT_UNION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbnz	w8, LBB0_9
LBB0_5:
	str	w23, [x19, #8]
	mov	x0, x23
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.6:
	cbz	w20, LBB0_12
; %bb.7:
	mov	x1, x0
	ldr	w0, [x19]
	ldr	w2, [x19, #8]
	add	x3, x19, #32
	bl	__getdirentries
	str	x0, [x19, #16]
	tbnz	x0, #63, LBB0_13
; %bb.8:
Lloh11:
	adrp	x8, ___DTF_SKIPREAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___DTF_SKIPREAD@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	__filldir
	cbz	w0, LBB0_15
; %bb.10:
Lloh13:
	adrp	x8, ___DTF_READALL@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___DTF_READALL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_12:
	str	xzr, [x19, #16]
	str	xzr, [x19, #32]
	b	LBB0_16
LBB0_13:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh17:
	adrp	x10, _EINVAL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.14:
Lloh20:
	adrp	x9, _ENOTDIR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ENOTDIR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_15:
Lloh23:
	adrp	x20, _errno@GOTPAGE
Lloh24:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	ldr	x0, [x19, #24]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x19, #0
	str	w21, [x20]
LBB0_16:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRBLKSIZ,4,2                  ; @DIRBLKSIZ
	.comm	_DTF_NODUP,4,2                  ; @DTF_NODUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unionfs"

	.comm	_MNT_UNION,4,2                  ; @MNT_UNION
	.comm	___DTF_READALL,4,2              ; @__DTF_READALL
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	___DTF_SKIPREAD,4,2             ; @__DTF_SKIPREAD
	.no_dead_strip	___opendir_common
.subsections_via_symbols
