	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_reg_file3
_create_reg_file3:                      ## @create_reg_file3
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	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), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_failure
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_archive_entry_set_size
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_write_header
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_assertEqualIntA
	leaq	_create_reg_file3.data(%rip), %rsi
	movq	%rbx, %rdi
	movl	$27, %edx
	callq	_archive_write_data
	movl	$5, %edi
	movl	%eax, %esi
	callq	_assertEqualInt
	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	%r14, %rdi
	callq	_archive_entry_pathname
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	-32(%rbp), %ebx
	movq	%r14, %rdi
	callq	_archive_entry_mode
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_failure
	movl	-32(%rbp), %ebx
	movq	%r14, %rdi
	callq	_archive_entry_mode
	movq	_UMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_assertEqualInt
	movl	-28(%rbp), %edi
	movl	$5, %esi
	callq	_assertEqualInt
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @create_reg_file3.data
_create_reg_file3.data:
	.asciz	"abcdefghijklmnopqrstuvwxyz"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"st.st_mode=%o archive_entry_mode(ae)=%o"

	.comm	_UMASK,4,2                      ## @UMASK
	.no_dead_strip	_create_reg_file3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_reg_file3
_create_reg_file3:                      ; @create_reg_file3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
	bl	_archive_write_disk_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_failure
	mov	x0, x19
	mov	w1, #5
	bl	_archive_entry_set_size
	mov	x0, x20
	mov	x1, x19
	bl	_archive_write_header
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_assertEqualIntA
Lloh2:
	adrp	x1, _create_reg_file3.data@PAGE
Lloh3:
	add	x1, x1, _create_reg_file3.data@PAGEOFF
	mov	x0, x20
	mov	w2, #27
	bl	_archive_write_data
	mov	x1, x0
	mov	w0, #5
	bl	_assertEqualInt
	mov	x0, x20
	bl	_archive_write_finish_entry
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_assertEqualIntA
	mov	x0, x20
	bl	_archive_write_free
	mov	x1, x0
	mov	w0, #0
	bl	_assertEqualInt
	mov	x0, x19
	bl	_archive_entry_pathname
	add	x1, sp, #24
	bl	_stat
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w20, [sp, #24]
	mov	x0, x19
	bl	_archive_entry_mode
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_failure
	ldr	w20, [sp, #24]
	mov	x0, x19
	bl	_archive_entry_mode
Lloh6:
	adrp	x8, _UMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UMASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_assertEqualInt
	ldr	w0, [sp, #28]
	mov	w1, #5
	bl	_assertEqualInt
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_create_reg_file3.data:                 ; @create_reg_file3.data
	.asciz	"abcdefghijklmnopqrstuvwxyz"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"st.st_mode=%o archive_entry_mode(ae)=%o"

	.comm	_UMASK,4,2                      ; @UMASK
	.no_dead_strip	_create_reg_file3
.subsections_via_symbols
