	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hook_alloc
_hook_alloc:                            ## @hook_alloc
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	$0, 16(%rax)
	xorl	%edi, %edi
	callq	_time
	movl	%eax, 8(%r12)
	movl	%eax, 12(%r12)
	movl	4(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movl	$2, %ebx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_snprlcat
	movl	%ebx, %eax
	movq	(%r14,%rax,8), %rcx
	incl	%ebx
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_5:
	movl	4(%r12), %edi
	callq	_strlen
	cmpl	$3, %eax
	jb	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pjdlog_error
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	$24, %esi
	xorl	%eax, %eax
	callq	_pjdlog_error
	jmp	LBB0_8
LBB0_7:
	movq	_HOOKPROC_MAGIC_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_8:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate %zu bytes of memory for a hook."

L_.str.1:                               ## @.str.1
	.asciz	" %s"

L_.str.2:                               ## @.str.2
	.asciz	"Exec path too long, correct configuration file."

	.comm	_HOOKPROC_MAGIC_ALLOCATED,4,2   ## @HOOKPROC_MAGIC_ALLOCATED
	.no_dead_strip	_hook_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hook_alloc
_hook_alloc:                            ; @hook_alloc
	.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	x20, x1
	mov	x21, x0
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	str	xzr, [x19, #16]
	mov	x0, #0
	bl	_time
	stp	w0, w0, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	ldr	x3, [x20, #8]
	cbz	x3, LBB0_4
; %bb.2:
	mov	w22, #2
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	w1, #4
	mov	x2, x21
	bl	_snprlcat
	ldr	x3, [x20, w22, uxtw #3]
	add	w22, w22, #1
	cbnz	x3, LBB0_3
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_strlen
	cmp	w0, #3
	b.lo	LBB0_7
; %bb.5:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pjdlog_error
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_8
LBB0_6:
	mov	w8, #24
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pjdlog_error
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _HOOKPROC_MAGIC_ALLOCATED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOOKPROC_MAGIC_ALLOCATED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate %zu bytes of memory for a hook."

l_.str.1:                               ; @.str.1
	.asciz	" %s"

l_.str.2:                               ; @.str.2
	.asciz	"Exec path too long, correct configuration file."

	.comm	_HOOKPROC_MAGIC_ALLOCATED,4,2   ; @HOOKPROC_MAGIC_ALLOCATED
	.no_dead_strip	_hook_alloc
.subsections_via_symbols
