	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_directory                   ## -- Begin function ar_directory
	.p2align	4, 0x90
_ar_directory:                          ## @ar_directory
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	xorl	%esi, %esi
	callq	_open_inarch
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	_outfile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	jmp	LBB0_4
LBB0_3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_outfile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_ar_directory_doer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_map_over_list
	movq	%r15, %rdi
	callq	_bfd_close
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movq	_outfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_outfile,8,3                    ## @outfile
	.comm	_stdout,8,3                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Can't open file %s\n"

	.comm	_ar_directory_doer,4,2          ## @ar_directory_doer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_directory                   ; -- Begin function ar_directory
	.p2align	2
_ar_directory:                          ; @ar_directory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x1, #0
	bl	_open_inarch
	mov	x21, x0
Lloh0:
	adrp	x23, _outfile@GOTPAGE
Lloh1:
	ldr	x23, [x23, _outfile@GOTPAGEOFF]
	cbz	x19, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	str	x0, [x23]
	cbnz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _stdout@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x23]
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x22
	mov	x2, x19
	bl	_fprintf
	mov	x19, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _stdout@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x23]
LBB0_4:
Lloh15:
	adrp	x8, _ar_directory_doer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ar_directory_doer@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_map_over_list
	mov	x0, x21
	bl	_bfd_close
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x0, [x23]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fclose
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_outfile,8,3                    ; @outfile
	.comm	_stdout,8,3                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Can't open file %s\n"

	.comm	_ar_directory_doer,4,2          ; @ar_directory_doer
.subsections_via_symbols
