	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pa64_solib_create_inferior_hook ## -- Begin function pa64_solib_create_inferior_hook
	.p2align	4, 0x90
_pa64_solib_create_inferior_hook:       ## @pa64_solib_create_inferior_hook
	.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
	xorl	%eax, %eax
	callq	_remove_solib_event_breakpoints
	movq	_symfile_objfile@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_bfd_section_size
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movq	_dld_cache@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_read_dynamic_info
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_5:
	movq	_DT_HP_DEBUG_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	orl	(%rax), %ecx
	movq	_DT_HP_DEBUG_CALLBACK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_target_write_memory
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_7:
	movq	_exec_bfd@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_bfd_section_size
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_alloca
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_bfd_get_section_contents
	movq	_gnutarget@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bfd_openr
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %rbx
	movq	_bfd_object@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bfd_check_format
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	callq	_read_pc
	movq	%rax, %r14
	subq	(%rbx), %r14
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_bfd_lookup_symbol
	leaq	(%r14,%rax), %rdi
	addq	$4, %rdi
	callq	_create_solib_event_breakpoint
	movq	%rax, %rdi
	callq	_make_breakpoint_permanent
	jmp	LBB0_12
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_warning
LBB0_12:
	movq	%rbx, %rdi
	callq	_bfd_close
LBB0_13:
	movq	_so_list_head@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_xfree
	movq	(%rbx), %rbx
	movq	%rbx, (%r14)
	testq	%rbx, %rbx
	jne	LBB0_14
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_symtab_users             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_symfile_objfile,8,3            ## @symfile_objfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".dynamic"

	.comm	_dld_cache,8,2                  ## @dld_cache
L_.str.1:                               ## @.str.1
	.asciz	"Unable to read the .dynamic section."

	.comm	_DT_HP_DEBUG_PRIVATE,4,2        ## @DT_HP_DEBUG_PRIVATE
	.comm	_DT_HP_DEBUG_CALLBACK,4,2       ## @DT_HP_DEBUG_CALLBACK
L_.str.2:                               ## @.str.2
	.asciz	"Unable to modify dynamic linker flags."

	.comm	_exec_bfd,4,2                   ## @exec_bfd
L_.str.3:                               ## @.str.3
	.asciz	".interp"

	.comm	_gnutarget,4,2                  ## @gnutarget
	.comm	_bfd_object,4,2                 ## @bfd_object
L_.str.4:                               ## @.str.4
	.asciz	"Unable to grok dynamic linker %s as an object file"

L_.str.5:                               ## @.str.5
	.asciz	"__dld_break"

	.comm	_so_list_head,8,3               ## @so_list_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pa64_solib_create_inferior_hook ; -- Begin function pa64_solib_create_inferior_hook
	.p2align	2
_pa64_solib_create_inferior_hook:       ; @pa64_solib_create_inferior_hook
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_remove_solib_event_breakpoints
Lloh0:
	adrp	x19, _symfile_objfile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _symfile_objfile@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_bfd_section_size
	cbz	w0, LBB0_11
; %bb.3:
Lloh4:
	adrp	x19, _dld_cache@GOTPAGE
Lloh5:
	ldr	x19, [x19, _dld_cache@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_read_dynamic_info
	cbnz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_5:
Lloh8:
	adrp	x8, _DT_HP_DEBUG_PRIVATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DT_HP_DEBUG_PRIVATE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w0, [x19]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _DT_HP_DEBUG_CALLBACK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DT_HP_DEBUG_CALLBACK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x1, x19
	mov	w2, #4
	bl	_target_write_memory
	cbz	w0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_7:
Lloh16:
	adrp	x22, _exec_bfd@GOTPAGE
Lloh17:
	ldr	x22, [x22, _exec_bfd@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_14
; %bb.8:
	mov	x19, x0
	ldr	w0, [x22]
	mov	x1, x19
	bl	_bfd_section_size
	mov	x21, x0
	bl	_alloca
	mov	x20, x0
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x21
	bl	_bfd_get_section_contents
Lloh20:
	adrp	x8, _gnutarget@GOTPAGE
Lloh21:
	ldr	x8, [x8, _gnutarget@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bfd_openr
	cbz	x0, LBB0_14
; %bb.9:
	mov	x19, x0
Lloh23:
	adrp	x8, _bfd_object@GOTPAGE
Lloh24:
	ldr	x8, [x8, _bfd_object@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_bfd_check_format
	cbz	w0, LBB0_12
; %bb.10:
	bl	_read_pc
	mov	x20, x0
	ldr	x21, [x19]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_bfd_lookup_symbol
	sub	x8, x20, x21
	add	x8, x8, x0
	add	x0, x8, #4
	bl	_create_solib_event_breakpoint
	bl	_make_breakpoint_permanent
	b	LBB0_13
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_warning
LBB0_13:
	mov	x0, x19
	bl	_bfd_close
LBB0_14:
Lloh30:
	adrp	x20, _so_list_head@GOTPAGE
Lloh31:
	ldr	x20, [x20, _so_list_head@GOTPAGEOFF]
	ldr	x19, [x20]
	cbz	x19, LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_xfree
	ldr	x19, [x19]
	str	x19, [x20]
	cbnz	x19, LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_clear_symtab_users
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_symfile_objfile,8,3            ; @symfile_objfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".dynamic"

	.comm	_dld_cache,8,2                  ; @dld_cache
l_.str.1:                               ; @.str.1
	.asciz	"Unable to read the .dynamic section."

	.comm	_DT_HP_DEBUG_PRIVATE,4,2        ; @DT_HP_DEBUG_PRIVATE
	.comm	_DT_HP_DEBUG_CALLBACK,4,2       ; @DT_HP_DEBUG_CALLBACK
l_.str.2:                               ; @.str.2
	.asciz	"Unable to modify dynamic linker flags."

	.comm	_exec_bfd,4,2                   ; @exec_bfd
l_.str.3:                               ; @.str.3
	.asciz	".interp"

	.comm	_gnutarget,4,2                  ; @gnutarget
	.comm	_bfd_object,4,2                 ; @bfd_object
l_.str.4:                               ; @.str.4
	.asciz	"Unable to grok dynamic linker %s as an object file"

l_.str.5:                               ; @.str.5
	.asciz	"__dld_break"

	.comm	_so_list_head,8,3               ; @so_list_head
.subsections_via_symbols
