	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_post_rewrite_hook
_run_post_rewrite_hook:                 ## @run_post_rewrite_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -32(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_find_hook
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_argv_array_push
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_am_path
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_xopen
	movl	%eax, -32(%rbp)
	movl	$1, -48(%rbp)
	movq	%r14, -40(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_run_command
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_close
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"post-rewrite"

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

L_.str.2:                               ## @.str.2
	.asciz	"rewritten"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.no_dead_strip	_run_post_rewrite_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_post_rewrite_hook
_run_post_rewrite_hook:                 ; @run_post_rewrite_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_find_hook
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	mov	x8, sp
	add	x21, x8, #20
	mov	x0, x21
	bl	_argv_array_push
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_am_path
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_xopen
	str	w0, [sp, #16]
	mov	w8, #1
	str	w8, [sp]
	str	x19, [sp, #8]
	mov	x0, sp
	bl	_run_command
	mov	x19, x0
	ldr	w0, [sp, #16]
	bl	_close
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"post-rewrite"

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

l_.str.2:                               ; @.str.2
	.asciz	"rewritten"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.no_dead_strip	_run_post_rewrite_hook
.subsections_via_symbols
