	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_som_solib_remove_inferior_hook ## -- Begin function som_solib_remove_inferior_hook
	.p2align	4, 0x90
_som_solib_remove_inferior_hook:        ## @som_solib_remove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_save_inferior_ptid
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lookup_minimal_symbol
	movq	%rax, %rdi
	callq	_SYMBOL_VALUE_ADDRESS
	movl	%eax, %ebx
	leaq	-28(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_target_read_memory
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_extract_unsigned_integer
	movq	_DLD_FLAGS_HOOKVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_store_unsigned_integer
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_target_write_memory
	movq	%r14, %rdi
	callq	_do_cleanups
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__dld_flags"

	.comm	_DLD_FLAGS_HOOKVALID,4,2        ## @DLD_FLAGS_HOOKVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_som_solib_remove_inferior_hook ; -- Begin function som_solib_remove_inferior_hook
	.p2align	2
_som_solib_remove_inferior_hook:        ; @som_solib_remove_inferior_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_save_inferior_ptid
	mov	x20, x0
	mov	x0, x19
	bl	_pid_to_ptid
Lloh0:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_lookup_minimal_symbol
	bl	_SYMBOL_VALUE_ADDRESS
	mov	x19, x0
	add	x1, sp, #12
	mov	w2, #4
	bl	_target_read_memory
	add	x0, sp, #12
	mov	w1, #4
	bl	_extract_unsigned_integer
Lloh5:
	adrp	x8, _DLD_FLAGS_HOOKVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DLD_FLAGS_HOOKVALID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w2, w0, w8
	add	x0, sp, #12
	mov	w1, #4
	bl	_store_unsigned_integer
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_target_write_memory
	mov	x0, x20
	bl	_do_cleanups
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__dld_flags"

	.comm	_DLD_FLAGS_HOOKVALID,4,2        ; @DLD_FLAGS_HOOKVALID
.subsections_via_symbols
