	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exec_file_attach               ## -- Begin function exec_file_attach
	.p2align	4, 0x90
_exec_file_attach:                      ## @exec_file_attach
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_exec_ops@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_unpush_target
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	_write_files@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_O_RDONLY@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.2:
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf_unfiltered              ## TAILCALL
LBB0_4:
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
LBB0_6:
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	leaq	-40(%rbp), %r9
	movl	%eax, %edi
	movl	$1, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_openp
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_perror_with_name
LBB0_8:
	movq	-40(%rbp), %rdi
	movq	_gnutarget@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_bfd_fdopenr
	movq	_exec_bfd@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	-40(%rbp), %rbx
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_10:
	movq	-40(%rbp), %rdi
	callq	_xstrdup
	movq	%rax, -40(%rbp)
	movq	_xfree@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_make_cleanup
	movl	(%r12), %edi
	movq	_bfd_object@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bfd_check_format
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	callq	_exec_close
	movq	-40(%rbp), %rbx
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_12:
	movl	(%r12), %edi
	leaq	4(%r14), %rsi
	movq	%r14, %rdx
	callq	_build_section_table
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	callq	_exec_close
	movq	-40(%rbp), %rbx
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_error
LBB0_14:
	xorl	%eax, %eax
	callq	_validate_files
	movl	(%r12), %edi
	callq	_set_gdbarch_from_file
	movq	_exec_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movq	%r15, %rdi
	callq	_exec_file_display_hook
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_ops,8,2                   ## @exec_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No executable file now.\n"

L_.str.1:                               ## @.str.1
	.asciz	"PATH"

	.comm	_write_files,8,3                ## @write_files
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_gnutarget,4,2                  ## @gnutarget
	.comm	_exec_bfd,4,2                   ## @exec_bfd
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\": could not open as an executable file: %s"

	.comm	_xfree,4,2                      ## @xfree
	.comm	_bfd_object,4,2                 ## @bfd_object
L_.str.3:                               ## @.str.3
	.asciz	"\"%s\": not in executable format: %s"

L_.str.4:                               ## @.str.4
	.asciz	"\"%s\": can't find the file sections: %s"

	.comm	_vmap,8,3                       ## @vmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exec_file_attach               ; -- Begin function exec_file_attach
	.p2align	2
_exec_file_attach:                      ; @exec_file_attach
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _exec_ops@GOTPAGE
Lloh1:
	ldr	x20, [x20, _exec_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_unpush_target
	cbz	x19, LBB0_11
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh4:
	adrp	x8, _write_files@GOTPAGE
Lloh5:
	ldr	x8, [x8, _write_files@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x5, sp, #8
	mov	w1, #1
	mov	x2, x19
	mov	w4, #0
	bl	_openp
	mov	x21, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_perror_with_name
LBB0_3:
	ldr	x0, [sp, #8]
Lloh14:
	adrp	x8, _gnutarget@GOTPAGE
Lloh15:
	ldr	x8, [x8, _gnutarget@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_bfd_fdopenr
Lloh17:
	adrp	x22, _exec_bfd@GOTPAGE
Lloh18:
	ldr	x22, [x22, _exec_bfd@GOTPAGEOFF]
	str	w0, [x22]
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x21, [sp, #8]
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_error
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_xstrdup
	mov	x1, x0
	str	x0, [sp, #8]
Lloh21:
	adrp	x8, _xfree@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_make_cleanup
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _bfd_object@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bfd_object@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_bfd_check_format
	cbnz	w0, LBB0_7
; %bb.6:
	bl	_exec_close
	ldr	x21, [sp, #8]
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x2, x0
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_error
LBB0_7:
	ldr	w0, [x22]
	add	x1, x20, #4
	mov	x2, x20
	bl	_build_section_table
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #0
	bl	_exec_close
	ldr	x20, [sp, #8]
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x2, x0
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_error
LBB0_9:
	bl	_validate_files
	ldr	w0, [x22]
	bl	_set_gdbarch_from_file
Lloh31:
	adrp	x0, _exec_ops@GOTPAGE
Lloh32:
	ldr	x0, [x0, _exec_ops@GOTPAGEOFF]
	bl	_push_target
	mov	x0, x19
	bl	_exec_file_display_hook
LBB0_10:
	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
LBB0_11:
	cbz	w21, LBB0_10
; %bb.12:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_printf_unfiltered
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_ops,8,2                   ; @exec_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No executable file now.\n"

l_.str.1:                               ; @.str.1
	.asciz	"PATH"

	.comm	_write_files,8,3                ; @write_files
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_gnutarget,4,2                  ; @gnutarget
	.comm	_exec_bfd,4,2                   ; @exec_bfd
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\": could not open as an executable file: %s"

	.comm	_xfree,4,2                      ; @xfree
	.comm	_bfd_object,4,2                 ; @bfd_object
l_.str.3:                               ; @.str.3
	.asciz	"\"%s\": not in executable format: %s"

l_.str.4:                               ; @.str.4
	.asciz	"\"%s\": can't find the file sections: %s"

	.comm	_vmap,8,3                       ; @vmap
.subsections_via_symbols
