	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hook_install_locked
_hook_install_locked:                   ## @hook_install_locked
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HOOK_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	_hooks@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_seq_try_load_hooks
	movl	%eax, %edi
	callq	_assert
	cmpl	$0, -48(%rbp)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	$1, -48(%rbp)
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_seq_store_hooks
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_nhooks@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_atomic_load_u
	leaq	1(%rax), %rsi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_atomic_store_u
	addq	(%r12), %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOOK_MAX,4,2                   ## @HOOK_MAX
	.comm	_hooks,8,3                      ## @hooks
	.comm	_nhooks,4,2                     ## @nhooks
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.no_dead_strip	_hook_install_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hook_install_locked
_hook_install_locked:                   ; @hook_install_locked
	.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
Lloh0:
	adrp	x22, _HOOK_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HOOK_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh2:
	adrp	x21, _hooks@GOTPAGE
Lloh3:
	ldr	x21, [x21, _hooks@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x8, x20
	add	x0, sp, #8
	bl	_seq_try_load_hooks
	bl	_assert
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
	mov	w9, #1
	stp	w9, w8, [sp, #8]
	ldr	x8, [x21]
	add	x0, x8, x20
	add	x1, sp, #8
	bl	_seq_store_hooks
Lloh4:
	adrp	x22, _ATOMIC_RELAXED@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ATOMIC_RELAXED@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x19, _nhooks@GOTPAGE
Lloh7:
	ldr	x19, [x19, _nhooks@GOTPAGEOFF]
	mov	x0, x19
	bl	_atomic_load_u
	add	x1, x0, #1
	ldr	w2, [x22]
	mov	x0, x19
	bl	_atomic_store_u
	ldr	x8, [x21]
	add	x0, x8, x20
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HOOK_MAX,4,2                   ; @HOOK_MAX
	.comm	_hooks,8,3                      ; @hooks
	.comm	_nhooks,4,2                     ; @nhooks
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.no_dead_strip	_hook_install_locked
.subsections_via_symbols
