	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_close_all_done             ## -- Begin function bfd_close_all_done
	.p2align	4, 0x90
_bfd_close_all_done:                    ## @bfd_close_all_done
	.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	%rdi, %rbx
	callq	_bfd_cache_close
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_write_direction@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	_EXEC_P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.3:
	movl	12(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_umask
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_umask
	movl	12(%rbx), %edi
	movq	_S_IXUSR@GOTPCREL(%rip), %rax
	movq	_S_IXGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_S_IXOTH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%r15d
	andl	%ecx, %r15d
	orl	-32(%rbp), %r15d
	andl	$511, %r15d                     ## imm = 0x1FF
	movl	%r15d, %esi
	callq	_chmod
LBB0_5:
	movq	%rbx, %rdi
	callq	__bfd_delete_bfd
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_direction,8,3            ## @write_direction
	.comm	_EXEC_P,4,2                     ## @EXEC_P
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_close_all_done             ; -- Begin function bfd_close_all_done
	.p2align	2
_bfd_close_all_done:                    ; @bfd_close_all_done
	.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	x19, x0
	bl	_bfd_cache_close
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _write_direction@GOTPAGE
Lloh1:
	ldr	x9, [x9, _write_direction@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _EXEC_P@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXEC_P@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_umask
	mov	x21, x0
	bl	_umask
	ldr	w0, [x19, #12]
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _S_IXGRP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S_IXGRP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _S_IXOTH@GOTPAGE
Lloh13:
	ldr	x11, [x11, _S_IXOTH@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh14:
	ldr	w10, [x11]
	orr	w9, w9, w10
	bic	w9, w9, w21
	orr	w8, w9, w8
	and	w1, w8, #0x1ff
	bl	_chmod
LBB0_5:
	mov	x0, x19
	bl	__bfd_delete_bfd
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_write_direction,8,3            ; @write_direction
	.comm	_EXEC_P,4,2                     ; @EXEC_P
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
.subsections_via_symbols
