	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create
_create:                                ## @create
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_archive_write_disk_new
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_failure
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_write_header
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_write_finish_entry
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	movq	%rbx, %rdi
	callq	_archive_write_free
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	movq	%r12, %rdi
	callq	_archive_entry_pathname
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_failure
	movq	%r12, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_S_ISGID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	-40(%rbp), %ebx
	movl	%ebx, -40(%rbp)
	jmp	LBB0_3
LBB0_1:
	movl	-40(%rbp), %ebx
LBB0_3:
	movq	_MODE_MASK@GOTPCREL(%rip), %r14
	andl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_archive_entry_mode
	movq	_UMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	andl	(%r14), %esi
	movl	%ebx, %edi
	callq	_assertEqualInt
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_AE_IFDIR,8,3                   ## @AE_IFDIR
	.comm	_S_ISGID,4,2                    ## @S_ISGID
	.comm	_MODE_MASK,4,2                  ## @MODE_MASK
	.comm	_UMASK,4,2                      ## @UMASK
	.no_dead_strip	_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create
_create:                                ; @create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_archive_write_disk_new
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	bl	_failure
	mov	x0, x21
	mov	x1, x19
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_assertEqualIntA
	mov	x0, x21
	bl	_archive_write_finish_entry
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_assertEqualIntA
	mov	x0, x21
	bl	_archive_write_free
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_entry_pathname
	add	x1, sp, #8
	bl	_stat
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	x1, x20
	bl	_failure
	mov	x0, x19
	bl	_archive_entry_filetype
Lloh2:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _S_ISGID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_ISGID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #8]
LBB0_3:
Lloh8:
	adrp	x21, _MODE_MASK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MODE_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w20, w9, w8
	mov	x0, x19
	bl	_archive_entry_mode
Lloh10:
	adrp	x8, _UMASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UMASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x21]
	and	w1, w8, w9
	mov	x0, x20
	bl	_assertEqualInt
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_AE_IFDIR,8,3                   ; @AE_IFDIR
	.comm	_S_ISGID,4,2                    ; @S_ISGID
	.comm	_MODE_MASK,4,2                  ; @MODE_MASK
	.comm	_UMASK,4,2                      ; @UMASK
	.no_dead_strip	_create
.subsections_via_symbols
