	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_rewrite_hook
_run_rewrite_hook:                      ## @run_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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_find_hook
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, -88(%rbp)
	movq	%rbx, -80(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_start_command
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_strbuf_addf
	movq	_SIGPIPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sigchain_push
	movl	-88(%rbp), %edi
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %esi
	callq	_write_in_full
	movl	-88(%rbp), %edi
	callq	_close
	movq	%r14, %rdi
	callq	_strbuf_release
	movl	(%rbx), %edi
	callq	_sigchain_pop
	leaq	-96(%rbp), %rdi
	callq	_finish_command
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"post-rewrite"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s %s\n"

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.no_dead_strip	_run_rewrite_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function run_rewrite_hook
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_run_rewrite_hook:                      ; @run_rewrite_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_find_hook
	str	x0, [sp, #32]
	cbz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, xzr, [sp, #40]
	add	x8, sp, #32
	str	x8, [sp, #8]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	str	x21, [sp, #24]
	add	x0, sp, #8
	bl	_start_command
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_oid_to_hex
	mov	x20, x0
	mov	x0, x19
	bl	_oid_to_hex
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	mov	x2, x20
	bl	_strbuf_addf
Lloh14:
	adrp	x19, _SIGPIPE@GOTPAGE
Lloh15:
	ldr	x19, [x19, _SIGPIPE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_sigchain_push
	ldr	w0, [sp, #16]
	ldp	w2, w1, [sp]
	bl	_write_in_full
	ldr	w0, [sp, #16]
	bl	_close
	mov	x0, sp
	bl	_strbuf_release
	ldr	w0, [x19]
	bl	_sigchain_pop
	add	x0, sp, #8
	bl	_finish_command
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"post-rewrite"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s %s\n"

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.no_dead_strip	_run_rewrite_hook
.subsections_via_symbols
