	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_command
_apply_command:                         ## @apply_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -48(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -64(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_strbuf_addstr
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_TRAILER_ARG_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_strbuf_replace
LBB0_2:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	_local_repo_env@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -72(%rbp)
	leaq	-80(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_capture_command
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_error
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	L_.str.1(%rip), %rdi
	callq	_xstrdup
	jmp	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_trim
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_5:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
	.comm	_TRAILER_ARG_STRING,4,2         ## @TRAILER_ARG_STRING
	.comm	_local_repo_env,4,2             ## @local_repo_env
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"running trailer command '%s' failed"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_apply_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_command
_apply_command:                         ; @apply_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	str	x10, [sp, #32]
Lloh6:
	adrp	x9, _CHILD_PROCESS_INIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	x8, [x9, #16]
	stp	x8, x10, [sp, #16]
	str	xzr, [sp, #48]
	add	x0, sp, #32
	bl	_strbuf_addstr
	cbz	x19, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _TRAILER_ARG_STRING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRAILER_ARG_STRING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #32
	mov	x2, x19
	bl	_strbuf_replace
LBB0_2:
	ldr	x8, [sp, #32]
	str	x8, [sp, #40]
	add	x8, sp, #40
	str	x8, [sp]
Lloh11:
	adrp	x8, _local_repo_env@GOTPAGE
Lloh12:
	ldr	x8, [x8, _local_repo_env@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	movi.2s	v0, #1
	str	d0, [sp, #8]
	mov	x0, sp
	add	x1, sp, #24
	mov	w2, #1024
	bl	_capture_command
	cbz	x0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x1, [sp, #32]
	bl	_error
	add	x0, sp, #24
	bl	_strbuf_release
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xstrdup
	b	LBB0_5
LBB0_4:
	add	x0, sp, #24
	bl	_strbuf_trim
	add	x0, sp, #24
	mov	x1, #0
	bl	_strbuf_detach
LBB0_5:
	mov	x19, x0
	add	x0, sp, #32
	bl	_strbuf_release
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
	.comm	_TRAILER_ARG_STRING,4,2         ; @TRAILER_ARG_STRING
	.comm	_local_repo_env,4,2             ; @local_repo_env
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"running trailer command '%s' failed"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_apply_command
.subsections_via_symbols
