	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_dir                        ## -- Begin function add_dir
	.p2align	4, 0x90
_add_dir:                               ## @add_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_dirfd@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	js	LBB0_7
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	incl	%ebx
	movl	%ebx, -64(%rbp)
	movzwl	(%r12), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	%r15d, -56(%rbp)
	movq	(%r13), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_write
	cmpl	%ebx, %eax
	jne	LBB0_8
## %bb.5:
	movq	(%r13), %rdi
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_write
	cmpl	$24, %eax
	jne	LBB0_8
## %bb.6:
	movq	_dircnt@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	$1, %edi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_paxwarn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dirfd,8,3                      ## @dirfd
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to store mode and times for directory: %s"

	.comm	_dircnt,4,2                     ## @dircnt
L_.str.1:                               ## @.str.1
	.asciz	"Unable to store mode and times for created directory: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_dir                        ; -- Begin function add_dir
	.p2align	2
_add_dir:                               ; @add_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x23, _dirfd@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dirfd@GOTPAGEOFF]
	ldr	x0, [x23]
	tbnz	x0, #63, LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh2:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_lseek
	str	w0, [sp, #28]
	tbnz	w0, #31, LBB0_7
; %bb.2:
	add	w22, w22, #1
	ldrh	w8, [x21]
	stp	w22, w8, [sp, #8]
	ldur	d0, [x21, #4]
	stur	d0, [sp, #20]
	str	w20, [sp, #16]
	ldr	x0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_write
	cmp	w0, w22
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x23]
	add	x1, sp, #8
	mov	w2, #24
	bl	_write
	cmp	w0, #24
	b.ne	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _dircnt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dircnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	w0, #1
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_paxwarn
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_dirfd,8,3                      ; @dirfd
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to store mode and times for directory: %s"

	.comm	_dircnt,4,2                     ; @dircnt
l_.str.1:                               ; @.str.1
	.asciz	"Unable to store mode and times for created directory: %s"

.subsections_via_symbols
